Re: Exiting a script ?
Re: Exiting a script ?
- Subject: Re: Exiting a script ?
- From: daniel <email@hidden>
- Date: Sat, 22 Jan 2005 18:41:42 -0800
I think you can simply "return" from the script, if you're at the
top-level (obviously, return from within a handler will just leave the
hander, not the whole script.)
Daniel
On Jan 22, 2005, at 6:08 PM, Graham Anderson wrote:
here's a dumb question...
--Get IP
set localhostip to ¬
do shell script "ifconfig | grep 'broadcast' | awk '{print $6}'"
-- if there is no IP address, exit the script
if (localhostip = "") then display dialog "You must be connected to
the Internet to see the Fonovisa Player" giving up after 5 with icon
stop
--quit here ...bypassing the rest of the code
how do I do this ?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
sweater.com
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:
This email sent to email@hidden