RE: newbie help - parsing pathnames to rename files
RE: newbie help - parsing pathnames to rename files
- Subject: RE: newbie help - parsing pathnames to rename files
- From: "Stockly, Ed" <email@hidden>
- Date: Thu, 28 Feb 2008 16:20:04 -0800
- Thread-topic: newbie help - parsing pathnames to rename files
>We have a very large database of graphic files, stored as follows:
> ~/resources/<account>/<project#>/<artist>/<nn?.extension>
>
> I've been asked to find a way to rename all of the graphic files to
> add the account code (6 characters), the project number (1 to 4
> digits), and optionally the artist's name in front of the existing 2
> or 3-character filename and 3-character extension.
>
This is the kind of thing appleScript does fairly well.
A good place to start is with a script (Replace Text in Item Names) that
came with your mac located in your user directory:
//Library/Scripts/Finder Scripts/Replace Text in Item Names.scpt
Open that in your script editor and start experimenting. That will show you
how to work on a few selected files. From there you can write scripts that
work on all files dropped on an icon, or all files in a folder the user
selects.
If you hit any roadblocks come back to this list with any questions.
HTH,
ES
_______________________________________________
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