• 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: question regarding file types
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: question regarding file types


  • Subject: Re: question regarding file types
  • From: Yvan KOENIG <email@hidden>
  • Date: Tue, 12 Sep 2006 21:59:33 +0200


Le 12 sept. 2006 à 21:32, Stan Cleveland a écrit : …

tell application "Finder"
set fileList to document files of folder someFolder whose name ends with
".mp3" or name ends with ".m4a"
end tell
tell application "Some Audio App"
repeat with thisFile in fileList
set thisFile to thisFile as text
open audio file thisFile
–– do something with the file
end repeat
end tell


why not

tell application "Finder"
set fileList to document files of folder someFolder whose ¬
name extension is in {"mp3", "m4a"}
end tell

Yvan KOENIG _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: question regarding file types (From: Stan Cleveland <email@hidden>)

  • Prev by Date: Re: question regarding file types
  • Next by Date: Re: Safari + contextual menu.
  • Previous by thread: Re: question regarding file types
  • Next by thread: [Q] How to present a Open Dialog box?
  • Index(es):
    • Date
    • Thread