• 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: Manipulating multiple files in arbitrary applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Manipulating multiple files in arbitrary applications


  • Subject: Re: Manipulating multiple files in arbitrary applications
  • From: Peter Bunn <email@hidden>
  • Date: Wed, 14 Aug 2002 00:47:24 -0500

Hamish:

You can (usually) set a file's association with a given application by
matching the creator type of the file to that of the desired app. This
avoids opening the file altogether. The droplet below does not handle
nested folders, but other examples provided here on the list should help
with that.

on open
with timeout of 90 seconds
tell application "Finder"
set the_selection to every item of selection
repeat with This_Item in the the_selection
set the creator type of This_Item to "WXYZ" -- the creator type of
the app
end repeat
end tell
end timeout
end open

Best Of Luck.

Peter B.

-----
_______________________________________________
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: Re: do shell script with administrator privileges & shell commands
  • Next by Date: Re: Manipulating multiple files in arbitrary applications
  • Previous by thread: Re: Manipulating multiple files in arbitrary applications
  • Next by thread: Re: Manipulating multiple files in arbitrary applications
  • Index(es):
    • Date
    • Thread