Re: How do I get contents of a folder for renaming purposes?
Re: How do I get contents of a folder for renaming purposes?
- Subject: Re: How do I get contents of a folder for renaming purposes?
- From: Michelle Steiner <email@hidden>
- Date: Mon, 30 Apr 2007 07:12:15 -0700
On Apr 30, 2007, at 3:33 AM, Patrik B. wrote:
How can I get the contents of a folder on OS 10.4.9?
set prefixes to {"ITA", "FRE", "GER", "HEB", "JAP", "RUS"}
set b to choose folder
tell application "Finder"
set c to path to temporary items
set da_files to files of b
repeat with dis_file in da_files
repeat with prefix in prefixes
set dupe to duplicate dis_file to c
set new_name to prefix & "-" & name of dupe
set name of dupe to new_name
move file new_name of c to b
end repeat
end repeat
end tell
--
It is not who I am underneath, but what I do, that defines me.
_______________________________________________
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