• 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: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
  • Follow-Ups:
    • Re: How do I get contents of a folder for renaming purposes?
      • From: Michelle Steiner <email@hidden>
References: 
 >How do I get contents of a folder for renaming purposes? (From: "Patrik B." <email@hidden>)

  • Prev by Date: Re: How do I get contents of a folder for renaming purposes?
  • Next by Date: Re: How do I get contents of a folder for renaming purposes?
  • Previous by thread: Re: How do I get contents of a folder for renaming purposes?
  • Next by thread: Re: How do I get contents of a folder for renaming purposes?
  • Index(es):
    • Date
    • Thread