On Apr 30, 2007, at 7:12 AM, Michelle Steiner wrote:
How can I get the contents of a folder on OS 10.4.9?
set prefixes to {"ITA", "FRE", "GER", "HEB", "JAP", "RUS"}
A slightly better way:
set prefixes to {"ITA", "FRE", "GER", "HEB", "JAP", "RUS"}
set b to choose folder
tell application "Finder"
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 (path to temporary items)) as alias
set name of dupe to prefix & "-" & name of dupe
move dupe to b
end repeat
end repeat
end tell
-- Michelle
--
We're surrounded. That simplifies the problem.