Programatically becoming the default application for a certain file type
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.