Well, once you have a file or alias, this will work:

           tell application "System Events" to set name of myFile to newName

But it looks like you have a string instead of a file or alias.  If it's a
Macintosh path, you can just use

          set myFile to (file pathName)

if it's a POSIX path, you can use

         set myFile to (POSIX file pathName)



On Sat, Jan 30, 2010 at 12:19 PM, Chuck Pelto <[log in to unmask]> wrote:

> Sooooo.....
>
> ....since Jon's Commands no longer work under Snow Leopard....
>
> ....how does one rename a file? I've tried numerous variations on what WAS
> a simple activity but nothing seems to work.
>
>
> Here's the latest of an hours worth of beating my head against the
> monitor....only to leave slobber all over it....
>
>                set fileNameNew to (fileNameNew & mySuffix) as string -- new
> name for file
>
>                set filePath to (srcFolder & fileName) as string -- path to
> file to be renamed
>
>                set file name of file filePath to fileNameNew
>



-- 
Mark J. Reed <[log in to unmask]>