MACSCRPT Archives

January 2010

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Proportional Font
Show Text Part by Default
Condense Mail Headers

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

Print Reply
Mime-Version:
1.0 (Apple Message framework v1077)
Sender:
Macintosh Scripting Systems <[log in to unmask]>
Subject:
From:
Chuck Pelto <[log in to unmask]>
Date:
Sat, 30 Jan 2010 10:19:19 -0700
Content-Type:
text/plain; charset=us-ascii
Content-Transfer-Encoding:
quoted-printable
Reply-To:
Macintosh Scripting Systems <[log in to unmask]>
Parts/Attachments:
text/plain (15 lines)
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

ATOM RSS1 RSS2