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

Delay in the Finder


  • Subject: Delay in the Finder
  • From: Jim Brandt <email@hidden>
  • Date: Sat, 2 Mar 2002 10:47:51 -0600

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


TIA

Jim
_______________________________________________
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.

  • Follow-Ups:
    • Re: Delay in the Finder
      • From: Emmanuel <email@hidden>
    • Re: Delay in the Finder
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Open Applet
  • Next by Date: Re: Photoshop 6.0.1 Droplets and Applescript
  • Previous by thread: Re: Open Applet
  • Next by thread: Re: Delay in the Finder
  • Index(es):
    • Date
    • Thread