RE:Exiting a script ? Figured it Out I think
RE:Exiting a script ? Figured it Out I think
- Subject: RE:Exiting a script ? Figured it Out I think
- From: Graham Anderson <email@hidden>
- Date: Sat, 22 Jan 2005 18:43:50 -0800
--Get IP
set localhostip to ¬
do shell script "ifconfig | grep 'broadcast' | awk '{print $6}'"
if localhostip = "" then
set notConnected to true
display dialog "You must be connected to the Internet to see the
Fonovisa Player" buttons "quit" giving up after 5 with icon stop
return notConnected -- seems to exit the script
else
set notConnected to false -- go on with with script
end if
_______________________________________________
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