Re: A simple command of assigning multiple values doesn't work - does Apple break AS with every new version of OS X?
Re: A simple command of assigning multiple values doesn't work - does Apple break AS with every new version of OS X?
- Subject: Re: A simple command of assigning multiple values doesn't work - does Apple break AS with every new version of OS X?
- From: Yvan KOENIG <email@hidden>
- Date: Sun, 18 Jun 2017 16:17:17 +0200
What is the 5th button - the one resembling to a stack of document in your
Script Editor window ?
I never saw it before.
Is it introduced by a third party tool which may be the wrongdoer ?
Maybe you have installed a scripting addition with reserved words conflicting
with Standard Additions.
Here I got :
set {button_name, the_input} to {button returned, text returned} of (display
dialog "Please enter a value:" default answer "")
display dialog "You clicked: " & button_name
display dialog "You entered: " & the_input
(*
tell application "Script Editor"
display dialog "Please enter a value:" default answer ""
--> {button returned:"OK", text returned:"hi"}
display dialog "You clicked: OK"
--> {button returned:"OK"}
display dialog "You entered: hi"
--> {button returned:"OK"}
end tell
*)
set {button_clicked, text_entered} to {button returned, text returned} of
(display dialog "Please enter a value:" default answer "")
display dialog "You clicked: " & button_clicked
display dialog "You entered: " & text_entered
(*
tell application "Script Editor"
display dialog "Please enter a value:" default answer ""
--> {button returned:"OK", text returned:"yo"}
display dialog "You clicked: OK"
--> {button returned:"OK"}
display dialog "You entered: yo"
--> {button returned:"OK"}
end tell
*)
But it's difficult to diagnose because your editor doesn't use the same display
settings than mine.
Yvan KOENIG running Sierra 10.12.5 in French (VALLAURIS, France) dimanche 18
juin 2017 16:17:13
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden