• 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
How do I know when an open "is finished to run" ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: How do I know when an open "is finished to run" ?
      • From: KOENIG Yvan <email@hidden>
    • Re: How do I know when an open "is finished to run" ?
      • From: Skeeve <email@hidden>
  • Prev by Date: Re: What makes AppleScript difficult
  • Next by Date: Re: Changing the name of a file in the temporary items folder
  • Previous by thread: Change printer in Leopard
  • Next by thread: Re: How do I know when an open "is finished to run" ?
  • Index(es):
    • Date
    • Thread