• 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
Re: Exiting a script ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Exiting a script ? (From: Graham Anderson <email@hidden>)

  • Prev by Date: Exiting a script ?
  • Next by Date: RE:Exiting a script ? Figured it Out I think
  • Previous by thread: Exiting a script ?
  • Next by thread: Re: Exiting a script ?
  • Index(es):
    • Date
    • Thread