Re: Renaming multiple files
Re: Renaming multiple files
- Subject: Re: Renaming multiple files
- From: Chris Page <email@hidden>
- Date: Thu, 04 Dec 2008 06:10:36 -0800
On Dec 4, 2008, at 02:40 AM, Miguel Moya wrote: -Count the number of files of folder "A". -Starts a repeat command using the number of files. -Takes the first file of this folder, rename it always with the same name (always 1.xls) and move it to folder "B" overwriting the previous file. -Go to the next file.
tell application "Finder" to get files of folder "Input Files" of desktop returning folderItems
set i to 1 repeat with f in folderItems tell application "Finder" to move f to folder "Output Files" of desktop set the name of the result to (i as text) & ".xls" set i to i + 1 end repeat
-- Chris Page - AppleScripter
The other, other AppleScript Chris
|
_______________________________________________
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