• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: renaming files with applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >renaming files with applescript (From: email@hidden)

  • Prev by Date: renaming files with applescript
  • Next by Date: Re: renaming files with applescript
  • Previous by thread: renaming files with applescript
  • Next by thread: Re: renaming files with applescript
  • Index(es):
    • Date
    • Thread