Re: Finder or mounted volume lag in Leopard?
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