• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: A simple command of assigning multiple values doesn't work - does Apple break AS with every new version of OS X?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: ILJA SHEBALIN <email@hidden>
  • Date: Sun, 18 Jun 2017 16:28:03 +0300

I discovered something strange indeed. I wouldn't even think it can act in such
a manner: when I ran the original code, that I myself posted as an example and
that was reported by both Yvan and Jeremy as perfectly functional, it works.
However if I change just names of the variables, leaving the rest untouched, I
do get that error. You can make sure of that by following the YouTube link with
a video capture of the behavior:
https://youtu.be/_Q29C2pZL6s
18.06.2017, в 11:48, Yvan KOENIG написал(а):

>
>> Le 18 juin 2017 à 04:12, ILJA SHEBALIN <email@hidden> a écrit :
>>
>> Hello,
>>
>> I wouldn't write here had I known such a basic action as these 3 lines
>> wouldn't work! It worked on Snow Leopard, it doesn't on Lion.
>>
>> The code:
>>
>>
>> set {button returned:button_name, text returned:the_input} to ¬
>>                   (display dialog "Please enter a value:" default answer "")
>>
>>             display dialog "You clicked: " & button_name
>>             display dialog "You entered: " & the_input
>>
>>
>> The error message:
>> can't get button returned of {{text returned:\"\", button
>> returned:\"OK\"}}." number -1728 from button returned of {{text returned:"",
>> button returned:"OK"}}
>>
>>  What gives?
>
> I am accustomed to use :
>
> 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
>
>
> Yvan KOENIG running Sierra 10.12.5 in French (VALLAURIS, France) dimanche 18
> juin 2017 10:46:46
>
>
>
>
> _______________________________________________
> 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

 _______________________________________________
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

  • Follow-Ups:
    • 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>
References: 
 >A simple command of assigning multiple values doesn't work - does Apple break AS with every new version of OS X? (From: ILJA SHEBALIN <email@hidden>)
 >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>)

  • Prev by Date: Re: A simple command of assigning multiple values doesn't work - does Apple break AS with every new version of OS X?
  • Next by Date: Re: A simple command of assigning multiple values doesn't work - does Apple break AS with every new version of OS X?
  • Previous by thread: Re: A simple command of assigning multiple values doesn't work - does Apple break AS with every new version of OS X?
  • Next by thread: Re: A simple command of assigning multiple values doesn't work - does Apple break AS with every new version of OS X?
  • Index(es):
    • Date
    • Thread