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

Exiting a script ?


  • Subject: Exiting a script ?
  • From: Graham Anderson <email@hidden>
  • Date: Sat, 22 Jan 2005 18:08:11 -0800

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Exiting a script ?
      • From: Gnarlodious <email@hidden>
    • Re: Exiting a script ?
      • From: daniel <email@hidden>
  • Prev by Date: Re: Do shell script question - non sudoer user
  • Next by Date: Re: Exiting a script ?
  • Previous by thread: Re: What the !? two script variants to move a file - one works, the other doesn't?
  • Next by thread: Re: Exiting a script ?
  • Index(es):
    • Date
    • Thread