Re: renaming files with applescript
Re: renaming files with applescript
- Subject: Re: renaming files with applescript
- From: Luther Fuller <email@hidden>
- Date: Wed, 22 Oct 2008 18:05:23 -0500
On Oct 22, 2008, at 5:41 PM, email@hidden wrote:
Hi I am trying to rename some files with applescript
I have two variables, oldName and newName
I think the old file needs to be referred to with an alias.
set name of <file alias> to <string>
Something like this ...
tell applcation "Finder"
set fileAlias to "Users:richsimpson:Desktop:apc.jpg" as alias
set newName to "Users:richsimpson:Desktop:test.jpg"
set name of fileAlias to newName
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden