Re: Setting "Open With" program/file association programmatically (command line or script)
Re: Setting "Open With" program/file association programmatically (command line or script)
- Subject: Re: Setting "Open With" program/file association programmatically (command line or script)
- From: "Jeffrey R. Kelley" <email@hidden>
- Date: Tue, 23 Sep 2008 09:21:42 -0400
Andrew Mortensen of the University of Michigan has created an
application, "duti," that does just this from the command line.
http://duti.sourceforge.net/
Jeffrey R. Kelley
email@hidden
ITCS - Campus Computing Sites
University of Michigan
On Sep 23, 2008, at 8:20 AM, Pierre Guilluy wrote:
Hello,
How would one bind an application to a given file type
programmatically?
The normal method is to select a file of the type, choose "get
Info", then "open with" and select an application to always open the
file type with.
What I would like to know is if it possible to do so either using
code, from the command line or via applescript.
Thanks in advance.
Pierre
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden