Re: Strange Finder behaviour
Re: Strange Finder behaviour
- Subject: Re: Strange Finder behaviour
- From: Andrew Oliver <email@hidden>
- Date: Tue, 05 Oct 2004 12:41:09 -0700
On 10/5/04 11:37 AM, "James Dessart" <email@hidden> wrote:
> I'm getting some strange behaviour with the move command in Finder.
> Here's the immediately relevant code:
>
> set newFolder to make new folder at folder (tempFolder as alias)
> set the name of newFolder to versionString
> move toolsFolder to newFolder
>
> I know that toolsFolder is a valid folder, because I got its items
> earlier. But here's the exact error message:
>
> Finder got an error: Can't get folder "Tools" of folder
> "TemporaryItems" of folder "501" of folder "tmp" of item "private" of
> startup disk. (-1728)
>
> This error gets shown when the code above hits the move command.
This is probably a Finder update problem, where one hand of the Finder (the
part doing the move) hasn't noticed what the other hand (the part renaming
the folder) is doing.
The simplest solution is probably to:
set newfolder to make new folder at (tempfolder as alias) with properties
{name: versionString}
move toolsFolder to newFolder
In this way you don't need to rename the folder, and the Finder doesn't get
confused.
Andrew
:)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden