Re: How do I know when an open "is finished to run" ?
Re: How do I know when an open "is finished to run" ?
- Subject: Re: How do I know when an open "is finished to run" ?
- From: Ed Stockly <email@hidden>
- Date: Mon, 10 Dec 2007 08:58:06 -0800
>>>I want to set the locations (new positions) of the compacted item and the decompacted folder. But my code does not "wait until the decompact process is done": I do not know how to achieve that.
I would use a repeat loop, with a one-second delay, and check the size of the file. When the size stops changing you can assume the file has finished expanding.
Alternatively, you may use a repeat loop (without the delay) and check the busy status of the file. This solution doesn't work reliably if the expanding file is on a remote volume and/or the expand file application is running on another mac.
HTH,
ES =
|
_______________________________________________
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