Re: Moving on even when a part fails
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.