• 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
Programatically becoming the default application for a certain file type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Programatically becoming the default application for a certain file type


  • Subject: Programatically becoming the default application for a certain file type
  • From: Micah Grigonis <email@hidden>
  • Date: Mon, 26 Apr 2004 14:37:12 -0700

Hello fellow Cocoa Developers,

I was wondering if anyone has ever seen or heard of a way to programatically set a particular application to always be launched when a document of a particular type of file is double clicked. For instance in the finder, if you get info on a particular document, in the Get Info window you can do it. You do it by disclosing the Open With panel and then changing the application which opens that particular file and then clicking change all. I was wondering if there was either a way to do it programatically or with applescript or from the command line. I have looked at LaunchServices and it looks like it only supports getting the particular application which will open a particular file, but not setting the application. It looks as if NSWorkspace is also just able to inquire which application is bound to a particular file but unable to change that information. If anyone has any hints or info on undocumented API's that would be very helpful.

Thank you in advance,
Micah
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: RE: Table data not initializing
  • Next by Date: Re: Upper limit to how large an NSString (from url) can be?
  • Previous by thread: Re: Table data not initializing
  • Next by thread: Re: Table data not initializing [Solved]
  • Index(es):
    • Date
    • Thread