osx - Applescript changes : copy the result as list isn't the same -
Some of my applets running recently on computers have recently discovered a bug that asks bug questions Ask applescript and try to find two answers: the answer to the text and the button that has returned is basically like this script:
display dialog is "this is a question" default Answer "Text" button {{"button1", "button2", "button3"} as a result of the copy {"the_text", "the_button"}
list Of The copy of the copy is the only way in which I have to save the two answers, but here's the problem: In 10.7, applescript returns the result to this command: returning the text, the button returned and in 10.9, applescript result in reverse order Lets, first button, then text. So it is impossible to use the answer. Do you know in a way that I can save both answers and work it on 10.9 to 10.7?
Try:
set {text return: the_text, return Button: The "button 1", "button2", "button3"}
edit the default answer "text answer" button "This is a question" to display the dialog: the_button} dialog
By coagulating the result in a list, you can no longer
compare this:
display dialog "This is a question "Default answer" text answer "button {" button 1 "," button2 "," button3 "}
with:
display dialog "This is a A question is "default answer" text answer "button {" button 1 "," button2 "," button3 "} return results as a list
Comments
Post a Comment