• 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: Open Dialog via filename extension?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Open Dialog via filename extension?


  • Subject: Re: Open Dialog via filename extension?
  • From: Bill <email@hidden>
  • Date: Mon, 29 Dec 2003 22:44:49 +0800

-boo
wondering if an answer is a recursive cron job to fix all *.scpt files

May I suggest this one, to find out every *.scpt in a selected folder as alias list?

-- choose the folder
set tarPOSIX to quoted form of POSIX path of (choose folder)

-- without error trapping
-- briefly, find recursively in the selected folder, every items with the name ends with '.scpt' set y to every paragraph of (do shell script "find " & tarPOSIX & " -name '*.scpt'")

-- make a list of alias
set aList to {}
repeat with i in y
set end of aList to (contents of i) as POSIX file as alias
end repeat

Then loop thru aList & ask Finder to change the file type, I guess you know how to do this part ;-)

The shell command 'find' is helpful, do searching recursively & IMO, reliable than Finder's entire contents.


bill
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: mail.app save all attachments
  • Next by Date: Re: AppleScript CGI
  • Previous by thread: Re: Open Dialog via filename extension?
  • Next by thread: panning stereo sound
  • Index(es):
    • Date
    • Thread