• 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 file rename confusion - Never Mind
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finder file rename confusion - Never Mind


  • Subject: Re: Finder file rename confusion - Never Mind
  • From: Dick Huskey <email@hidden>
  • Date: Tue, 22 Feb 2005 12:32:46 -0500

Based upon the experience of one of the list members, I re-ran the script, & my experience was similar - it worked just fine.
Even the more complicated & deeper directory tree worked fine.


Another member asked about permissions, & that was not a factor

However, that was exactly what was blowing my mind - it was working previously then it stopped & I was stumped so I asked for more understanding.

So, in light of this less than solid information, I want to thank you all for replying and suggest that we just drop this subject.

Thanks.


On Feb 22, 2005, at 11:54, Adam K. Wuellner wrote:

On Feb 22, 2005, at 2:40 AM, Dick Huskey wrote:

tell application "Finder"
-- assumes:
-- 1) zx.0.txt exists in the folder ~/zxdir
set oldFileName to "zx.0.txt"
set newFileName to "zx.1.txt"
set the name of file oldFileName of folder "zxdir" of home to newFileName
end tell -- finder


The event log returns:
set name of file "zx.0.txt" of folder "zxdir" of home to "zx.1.txt"
"Finder got an error: Can't set name of file \"zx.0.txt\" of folder \"zxdir\" of home to \"zx.1.txt\"."


This works fine if the folder is home or desktop but not something within those same directories.

The script as you have it works fine for me.

OS X: 10.3.7
AS: 1.9.3


_______________________________________________ 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
References: 
 >Finder file rename confusion (From: Dick Huskey <email@hidden>)
 >Re: Finder file rename confusion (From: "Adam K. Wuellner" <email@hidden>)

  • Prev by Date: Re: Finder file rename confusion
  • Next by Date: Re: Finder file rename confusion
  • Previous by thread: Re: Finder file rename confusion
  • Next by thread: Re: Finder file rename confusion
  • Index(es):
    • Date
    • Thread