• 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
Finder or mounted volume lag in Leopard?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Finder or mounted volume lag in Leopard?


  • Subject: Finder or mounted volume lag in Leopard?
  • From: Jim Skibbie <email@hidden>
  • Date: Tue, 08 Jan 2008 09:40:06 -0600
  • Thread-topic: Finder or mounted volume lag in Leopard?

Title: Finder or mounted volume lag in Leopard?
I have a script that has worked reliably in Tiger. However, I'm getting errors with the same script in Leopard. This script attempts to rename a file on an afp mounted volume. It seems there's some type of lag in the Finder doing it's thing so that when the second set n variable executes, the Finder still thinks the file is named the old name. Adding a 1 second delay seems to help, but it slows down the script.

Here's the code:

tell application "Finder"
       set name of thisFile to desiredName
       set n to name of thisFile
end tell

Below is the Apple Event Log for the above script:

tell application "Finder"
    set name of alias "Output Files:N021521A_P.ai426T001.pdf" to "021521A_P.pdf"
    -->    "021521A_P.pdf"
    get name of alias "Output Files:N021521A_P.ai426T001.pdf"
end tell

display dialog "Finder got an error: Can’t get alias \"Output Files:N021521A_P.ai426T001.pdf\".

Error number: -1728" buttons {
    "Cancel"
} default button 1 with icon stop
-- stopped

Has anyone seen similar results and have any suggestions?

Thanks.
 _______________________________________________
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: Finder or mounted volume lag in Leopard?
      • From: Luther Fuller <email@hidden>
  • Prev by Date: Apple remote desktop script?
  • Next by Date: Re: Finder or mounted volume lag in Leopard?
  • Previous by thread: Re: Apple remote desktop script?
  • Next by thread: Re: Finder or mounted volume lag in Leopard?
  • Index(es):
    • Date
    • Thread