Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Rename all files in folder

Rename all files in folder
Thread Tools
Forum Regular
Join Date: Jun 2000
Location: China, Hong Kong
Status: Offline
Reply With Quote
Sep 11, 2000, 10:26 PM
 
How to write a applescript to rename all the files in the selected folder?
Kansir
Learning everyday,
Enjoy everyday.
     
Clinically Insane
Join Date: Apr 2000
Status: Offline
Reply With Quote
Sep 12, 2000, 03:38 AM
 
How do you want to rename them? Numerically? As the are dropped in?

Cipher13
     
kansir  (op)
Forum Regular
Join Date: Jun 2000
Location: China, Hong Kong
Status: Offline
Reply With Quote
Sep 12, 2000, 07:50 AM
 
I want to rename them into : NAME001, NAME002, .... NAMExxx.
A custom filename follow with a number as they are dropped in.
Kansir
Learning everyday,
Enjoy everyday.
     
Clinically Insane
Join Date: Apr 2000
Status: Offline
Reply With Quote
Sep 12, 2000, 06:29 PM
 
Ok I made something like that for a random startup screen app. I'll give it a shot when I have a chance and post back here.
If you want them to be renamed as they are dropped in, you realise it will have to be a folder action?

Cipher13
     
kansir  (op)
Forum Regular
Join Date: Jun 2000
Location: China, Hong Kong
Status: Offline
Reply With Quote
Sep 12, 2000, 08:28 PM
 
In fact, I am a novice. I don't understand what is folder action? I learn Applescript from Internet and Help files.
Do you have any web-site sugguest to me for learning Applescript!

By the way, thanks for your help.
Kansir
Learning everyday,
Enjoy everyday.
     
Clinically Insane
Join Date: Apr 2000
Status: Offline
Reply With Quote
Sep 12, 2000, 10:27 PM
 
No problem, thats what I'm here for
Um... I just learned it by mucking around with it... never looked it up before... anyone have any suggestions for sites?
A folder action is a script that executes on certain actions.
You 'attach' a script to a folder. For example, the action may be 'when new item dropped in, do this...' and when a new item is dropped into the folder, it will execute; however, if the folder is simply opened, it will not, get what I mean?
I'll try it out now

Cipher13
     
kansir  (op)
Forum Regular
Join Date: Jun 2000
Location: China, Hong Kong
Status: Offline
Reply With Quote
Sep 13, 2000, 08:48 PM
 
Cipher 13, I think I know what you are talking about. I am finding some useful information to write the script, too. Hope to dicuss with you later.
Kansir
Learning everyday,
Enjoy everyday.
     
Thomas S. England
Guest
Status:
Reply With Quote
Sep 14, 2000, 10:24 AM
 
For more scripting info, try: AppleScript Source Book

For a freeware that renames files, try:
http://ryandary.com/software/simplerename.html

I haven't tried out this software, just downloaded a day or so ago.

[This message has been edited by MacCanada (edited 09-15-2000).]
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:02 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2