• 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
Display Dialog handling trouble
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Display Dialog handling trouble


  • Subject: Display Dialog handling trouble
  • From: "W. Thomas Leroux" <email@hidden>
  • Date: Mon, 19 Mar 2007 01:25:06 -0400

Hey there folks.

I'm puttering around in Applescript again and seem to have gotten
stuck - the code:

if warn_before_sending is "yes" then set the_reply to display dialog
"Is this working: " & "" buttons {"No", "Yes"}

if the_reply is "No" then
	set update to "No"
else
	set update to "Yes"
end if

if update is equal to "yes" then
	display dialog "UPDATING YES! : " & update & return & "reply:" & the_reply
end if

The response:
"Can't make {button returned:\"Yes\"} into type string."

What I'm trying to do is if they click yes, do one thing and if they
click no, to return to the main loop.  I know I'm not handling the
reply correctly, but for the life of me I can't seem to find a
reference on how to handle it.

Any suggestions?

Thanks!

Tom

--
All about me!
http://www.leroux.ca
_______________________________________________
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: Display Dialog handling trouble
      • From: kai <email@hidden>
    • Re: Display Dialog handling trouble
      • From: Andrew Oliver <email@hidden>
    • Re: Display Dialog handling trouble
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Getting at some Hidden Clipboard Contents
  • Next by Date: Re: Display Dialog handling trouble
  • Previous by thread: Re: Choose File Crashing Finder
  • Next by thread: Re: Display Dialog handling trouble
  • Index(es):
    • Date
    • Thread