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 PROTECTED]
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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/slauncha%40umich.edu

This email sent to [EMAIL PROTECTED]



Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to