• 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: Setting "Open With" program/file association programmatically (command line or script)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Setting "Open With" program/file association programmatically (command line or script) (From: Pierre Guilluy <email@hidden>)

  • Prev by Date: Re: Application frameworks for Objective-C?
  • Next by Date: Re: NSURLDownload resumeData always nil
  • Previous by thread: Setting "Open With" program/file association programmatically (command line or script)
  • Next by thread: Application frameworks for Objective-C?
  • Index(es):
    • Date
    • Thread