Weird prompt with Answer
Posted: Tue Jan 12, 2016 6:47 am
When I first open my stack and run a script to identify non-existent items:
repeat with x = 1 to number of lines of selll
put word 1 of line x of selll into nmm
put "d" & char 1 of nmm into windy
if exists(cd nmm of wd windy) then
else
answer "Item"&&nmm&& "does not exist in stack"&&windy&". Please delete it from your list of selected items." with "OK"
exit mouseup
end if
end repeat
the "answer" prompt formats properly. However, after I run another script, the answer prompt goes berserk. For example, for the answer line above, if, say, nmm = 11111Q,
and windy = d6, it would return with the prompt "Item 11111Q" and the button would not be "OK" but rather "does not exist in stack d6. Please delete it from your list of selected items."
After it begins to act up like this, all of the other scripts with "answer" commands begin to do the same thing, using only the first word or two as the prompt and the rest as the response button title, and dropping the desired title defined with "with".
By the way, this was with LC 7, but I downloaded LC 8 and it is doing the same thing. Grateful for any ideas...
repeat with x = 1 to number of lines of selll
put word 1 of line x of selll into nmm
put "d" & char 1 of nmm into windy
if exists(cd nmm of wd windy) then
else
answer "Item"&&nmm&& "does not exist in stack"&&windy&". Please delete it from your list of selected items." with "OK"
exit mouseup
end if
end repeat
the "answer" prompt formats properly. However, after I run another script, the answer prompt goes berserk. For example, for the answer line above, if, say, nmm = 11111Q,
and windy = d6, it would return with the prompt "Item 11111Q" and the button would not be "OK" but rather "does not exist in stack d6. Please delete it from your list of selected items."
After it begins to act up like this, all of the other scripts with "answer" commands begin to do the same thing, using only the first word or two as the prompt and the rest as the response button title, and dropping the desired title defined with "with".
By the way, this was with LC 7, but I downloaded LC 8 and it is doing the same thing. Grateful for any ideas...