Display Dialog handling trouble
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