Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how can i know from the java code that an applescript completed to run? - urgent



Hi all,

Need some urgent advise here...

I'm trying to invoke an apple script from the java code,

The issue is that the script runs a-synchronically, while I need it to run synchronically.

 

I'm using:

 

Process p = Runtime.getRuntime().exec(i_cmdLine);

retVal = p.waitFor();

 

the waitFor() returns after the script was started to run,

but it doesn't wait for the for the script to be completed.

 

I need some indication to know when the apple script completed its work. (in my case the script is generating some files, so I need to know when the files where generated)

 

Any idea?

 

Thanks

This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: Apple took Java 1.6 away... (From: Greg Guerin <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.