• 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: Delay in the Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Delay in the Finder


  • Subject: Re: Delay in the Finder
  • From: Paul Berkowitz <email@hidden>
  • Date: Sat, 02 Mar 2002 09:10:09 -0800

On 3/2/02 8:47 AM, "Jim Brandt" <email@hidden> wrote:

> Is there preferred way to tell a script to wait for a Finder function
> to complete?
>
> I am moving some files to the trash, then emptying the trash. The problem is,
> the empty trash command executes before the files are actually move to the
> trash folder. Thus, the empty trash command doesn't do anything.
>
> Here's the script:
>
> tell application "Finder"
> activate
> set root to startup disk as text
> set infomac_hold to root & "InfoMac: Hold"
> delete contents of folder infomac_hold
> empty trash
> end tell


I imagine you're in OS 9.x or 8.x, not X? It's for reasons like this that i
gave up on the Finder pre-OS X and used Jon's Commands (deleteFile, or
moveFile) and Akua Sweets (collate with deletion, or collate with the
trasher) for this and all functions moving files - and many others functions
too. The Finder would be very slow and frequently error - the file wouldn't
yet exist in its new location when the script moved on to the next line.

You can get get Jon's Commands and Akua Sweets scripting additions free at
http://www.osaxen.com.

So far, I haven't run into any such difficulties in OS X. (Which is a very
good thing since alternative osaxen don't exist here.) The Finder's
scripting has been transformed - for me, it's probably the greatest single
thing about using OS X.


--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Delay in the Finder (From: Jim Brandt <email@hidden>)

  • Prev by Date: Re: Photoshop 6.0.1 Droplets and Applescript
  • Next by Date: Speeding Up Scripts 101
  • Previous by thread: Delay in the Finder
  • Next by thread: Re: Delay in the Finder
  • Index(es):
    • Date
    • Thread