• 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: Strange Finder behaviour
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Strange Finder behaviour
      • From: Christopher Nebel <email@hidden>
References: 
 >Strange Finder behaviour (From: James Dessart <email@hidden>)

  • Prev by Date: Strange Finder behaviour
  • Next by Date: Re: No way to tell if an application is running without launching it?
  • Previous by thread: Strange Finder behaviour
  • Next by thread: Re: Strange Finder behaviour
  • Index(es):
    • Date
    • Thread