• 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
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]

A simple command of assigning multiple values doesn't work - does Apple break AS with every new version of OS X?


  • Subject: 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 05:12:15 +0300

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?
 _______________________________________________
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>
  • Prev by Date: Re: Startup Disk
  • 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: Unmounted disks
  • 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