• 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: Paul Berkowitz <email@hidden>
  • Date: Tue, 02 Sep 2003 09:58:21 -0700

On 9/2/03 9:23 AM, "Lorin Rivers" <email@hidden> wrote:

> 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?


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

Time to read an AppleScript book, Lorin?* Or the AS Language Guide, free at
Apple.com.

(*Lorin is a real programmer. Oops, a Real programmer as was.)


--
Paul Berkowitz
_______________________________________________
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.

References: 
 >Moving on even when a part fails (From: Lorin Rivers <email@hidden>)

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