logo       

command-line tweaking of "Open With..." settings?: msg#00081

lang.perl.macosx

Subject: command-line tweaking of "Open With..." settings?

I have an AppleScript Application which I wish to have launched
whenever a file named "*.xyz" is double-clicked. I can do this
using the Finder's Get Info dialog (ie, "Open With...", then
"Other...", then "Change All..."), but I want to do this from an
installation shell script, so I need a "command line" solution.

I have tracked the setting down to the file

/Library/Preferences/com.apple.LaunchServices.plist

but the contents of the setting that Get Info creates are rather
obscure (to me), so I don't know how to replicate them.

Clues? Suggestions?

-r
--
email: rdm@xxxxxxxx; phone: +1 650-873-7841
http://www.cfcl.com - Canta Forda Computer Laboratory
http://www.cfcl.com/Meta - The FreeBSD Browser, Meta Project, etc.



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise