Re: rename many files ?
Re: rename many files ?
- Subject: Re: rename many files ?
- From: Jon Pugh <email@hidden>
- Date: Mon, 17 Feb 2003 08:47:52 -0800
At 2:52 PM +0100 2/17/03, Christian Vinaa wrote:
>
set myPart to "2"
>
renameFile file "a" of folder "y" to myPart & " a"
>
renameFile file "b" of folder "y" to myPart & " b"
>
renameFile file "c" of folder "y" to myPart & " c"
>
renameFile file "d" of folder "y" to myPart & " d"
>
renameFile file "e" of folder "y" to myPart & " e"
>
>
(uses Jon's Commands)
You can't use Finder object references with Jon's Commands. You need to use file or string paths.
renameFile "disk:y:a" to (myPart & " a")
Finder references work only in the Finder, just to confuse you.
Jon
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.