How do I know when an open "is finished to run" ?
How do I know when an open "is finished to run" ?
- Subject: How do I know when an open "is finished to run" ?
- From: Emile Schwarz <email@hidden>
- Date: Mon, 10 Dec 2007 17:20:51 +0100
Hi all,
this is a part of a larger project. I do not found a solution to that
problem.
It is enough to say that I open a compacted file (either a zip or a rar
file) using (as a testing code):
tell application "Finder"
-- get a reference to the item I want to open
set TargetItem to item 1 of front window
-- get a reference as alias to this file
set CompactedItem to TargetItem as alias
-- open the compacted item (decompress the file)
open CompactedItem
-- Here I have the problem
end tell
Nota: this is a hand written code 'cause I actually am using a Windows
machine (the Macintosh is not handly).
At the line "-- Here I have the problem" 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.
Any idea ?
TIA,
Emile
PS: the final stage will be an AppleScript application, I will then drop
a folder with a compacted item and do the above and some other
processing stuff (take one image file, generate two smaller images and
save them in the dropped folder; at last, I will set one of these newly
created images as the folder background image).
_______________________________________________
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