• 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: Java program called within applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Java program called within applescript (From: Tobias Langlotz <email@hidden>)

  • Prev by Date: Java program called within applescript
  • Next by Date: Re: difficulty with list filtering
  • Previous by thread: Java program called within applescript
  • Next by thread: Filemaker 8.5 stored applescript problem
  • Index(es):
    • Date
    • Thread