• 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: Moving on even when a part fails
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Moving on even when a part fails


  • Subject: Re: Moving on even when a part fails
  • From: email@hidden
  • Date: Tue, 2 Sep 2003 17:51:04 +0100

Put all your "tell" blocks in "try" blocks:

try
tell application "foo"
activate
end tell
end try

I have script that automates a group of application launchings and things those apps need to do after launching.

tell application "foo"
activate
end tell

tell application "bar"
connect to thingie using settings {blah blah}
end tell

tell application "Finder"
open application "GooglieMooglie.app" of blah
end tell

If the "bar" app fails, the script stops, even though the code that follows the end tell of "bar" is still something I want to occur. How can I make the script continue?

Thanks, oh wise ones...
--
DizzyPenguin  autoMAC-it
mailto:email@hidden
visit: http://www.dizzypenguin.com/automac-it/
_______________________________________________
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: Moving on even when a part fails
      • From: email@hidden
References: 
 >Moving on even when a part fails (From: Lorin Rivers <email@hidden>)

  • Prev by Date: Re: Fetch
  • Next by Date: Re: Launch, then hide an app
  • Previous by thread: Moving on even when a part fails
  • Next by thread: Re: Moving on even when a part fails
  • Index(es):
    • Date
    • Thread