MACSCRPT Archives

January 2010

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Sat, 30 Jan 2010 13:11:16 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (25 lines)
You've gotten a few good answers, here's one more that may require less editing of your scripts that depend on Jons Commands:



set fileNameNew to (fileNameNew & mySuffix) as string -- new name for file

set filePath to (srcFolder & fileName) as string -- path to file to be renamed

tell application "Finder" to set  name of file filePath to fileNameNew


HTH

ES

On Jan 30, 2010, at 9:19am, Chuck Pelto wrote:

> 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

ATOM RSS1 RSS2