• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How do I get contents of a folder for renaming purposes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:24:31 -0700

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.

 _______________________________________________
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

References: 
 >How do I get contents of a folder for renaming purposes? (From: "Patrik B." <email@hidden>)
 >Re: How do I get contents of a folder for renaming purposes? (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: How do I get contents of a folder for renaming purposes?
  • Next by Date: Convert Applescript to Javascript
  • Previous by thread: Re: How do I get contents of a folder for renaming purposes?
  • Next by thread: Complex AppleEvent with RealBasic
  • Index(es):
    • Date
    • Thread