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

Re: Finder or mounted volume lag in Leopard?


  • Subject: Re: Finder or mounted volume lag in Leopard?
  • From: Luther Fuller <email@hidden>
  • Date: Tue, 8 Jan 2008 10:15:44 -0600

On Jan 8, 2008, at 9:40 AM, Jim Skibbie wrote:
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


You should try this. It may not work, but you should try it ...

tell application "Finder"
	set name of thisFile to desiredName
	update item thisFile -- ADDED
	set n to name of thisFile
end tell

_______________________________________________
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
References: 
 >Finder or mounted volume lag in Leopard? (From: Jim Skibbie <email@hidden>)

  • Prev by Date: Finder or mounted volume lag in Leopard?
  • Next by Date: Re: Apple remote desktop script?
  • Previous by thread: Finder or mounted volume lag in Leopard?
  • Next by thread: How do you add a track not currently in iTunes to iTunes playlist using applescript
  • Index(es):
    • Date
    • Thread