Re: Java program called within applescript
Re: Java program called within applescript
- Subject: Re: Java program called within applescript
- From: Doug McNutt <email@hidden>
- Date: Sun, 13 May 2007 13:06:44 -0600
At 20:58 +0200 5/13/07, Tobias Langlotz wrote:
>
>repeat 40 times
> set this_result to do shell script "java -jar example.jar"
>end repeat
>
> So here my question: Is it possible to continue with the applescript even the Java program quits with an error and how to achieve this?!
>From memory - needs to be tested.
repeat 40 times
try
set this_result to do shell script "java -jar example.jar"
on error
-- do what you need to do
end try
end repeat
--
Applescript syntax is like English spelling:
Roughly, though not thoroughly, thought through.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden