• 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: Halting a Script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Halting a Script


  • Subject: Re: Halting a Script
  • From: HomeLink USA <email@hidden>
  • Date: Wed, 25 Jun 2003 06:42:30 -0400

>At 6:57 pm -0400 24/6/03, HomeLink USA wrote:
>
>> I'm looking for a way to halt a script or go to the end of the script. Can a script "quit" itself?
>
>if not 2 * 2 = 5 then
> return
>end if
>beep


OS9
That doesn't do it. I get the beep and the script continues. Here's a sample portion:

tell application "Finder"
set AppsUp to ((the name of every application process) as string)
end tell
if AppsUp does not contain "SomeApp" then
tell application "Finder"
restart
--here's where I want the script to abort or jump to the end
end tell
end if
tell application "SomeOtherApp"
Do this stuff
end tell


--

________________________________
HOMELINK INTERNATIONAL
World's Largest
Home Exchange Organization
________________________________
Toll Free ......... 800-638-3841
International ..... 813-975-9825
Fax ............... 813-910-8144
P O Box 47747 * Tampa * FL 33647

email@hidden

http://www.swapnow.com USA Site
http://www.homelink.org all Sites
____________________________________
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Halting a Script
      • From: Nigel Smith <email@hidden>
References: 
 >Halting a Script (From: HomeLink USA <email@hidden>)
 >Re: Halting a Script (From: John Delacour <email@hidden>)

  • Prev by Date: dialog detection
  • Next by Date: Resizing the pasteboard in quark...
  • Previous by thread: Re: Halting a Script
  • Next by thread: Re: Halting a Script
  • Index(es):
    • Date
    • Thread