how to make an applescript fail
how to make an applescript fail
- Subject: how to make an applescript fail
- From: "spondita Madhuri Neog" <email@hidden>
- Date: Wed, 31 Mar 2010 12:58:45 +0530
- Thread-topic: how to make an applescript fail
Title: how to make an applescript fail
Hi all,
Thanks for the inputs. I am able to embed my applescript into my package.However I have one more doubt.I have an if else condition in my applescript. Both the if and else part displays a dialog box showing "OK" and "Cancel".What I want to do is when user clicks on "Cancel" I want the script to fail.I have embedded my applescript within shellscript by using "/usr/bin/osascript" << EOF. Please suggest how can I make the script fail.
My applescript is as follows :-
tell application "Finder"
activate
display dialog "you want to continue?"
set diag1button to button returned of result
if diag1button is "Ok" then
display dialog "You can continue"
else if diag1button is "Cancel" then
# (What shall I add here so that the script fails)#
end if
end tell
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden