Re: How to set the name of open-with application for a specific file?

2009-08-02 Thread MATSUMOTO Satoshi
I have found an undocumented api to do this. I think this api is not opened to the public because of the security reason. Satoshi On 2009/07/31, at 22:00, MATSUMOTO Satoshi wrote: Dear Jerry Krinock, On 2009/07/31, at 21:43, Jerry Krinock wrote: Activate Finder. Select a subject document

Re: How to set the name of open-with application for a specific file?

2009-08-02 Thread Kyle Sluder
On Aug 2, 2009, at 6:00 PM, MATSUMOTO Satoshi sato...@mac.com wrote: I have found an undocumented api to do this. Then please don't use it. :) There is no guarantee that undocumented API will continue to function on any previous, future, or even current version of the OS. I think this

Re: How to set the name of open-with application for a specific file?

2009-08-02 Thread Harry Jordan
(Not sure why this didn't get sent to the list the first time round, but here it is for the Google bots to pick up) The place to look is the Launch Services Reference, in particular the LSSetDefaultRoleHandlerForContentType() function. I haven't used the setter functions myself, but it looks

Re: How to set the name of open-with application for a specific file?

2009-08-02 Thread Quincey Morris
On Aug 2, 2009, at 20:09, Harry Jordan wrote: The place to look is the Launch Services Reference, in particular the LSSetDefaultRoleHandlerForContentType() function. I haven't used the setter functions myself, but it looks reasonable. Hope that helps. My interpretation was the the OP wants to

Re: How to set the name of open-with application for a specific file?

2009-08-01 Thread Alexander Bokovikov
On 31.07.2009, at 21:41, MATSUMOTO Satoshi sato...@mac.com wrote: I want to do this programmatically. The direct answer to this question is very easy - it's impossible. Why? Take a look here: http://developer.apple.com/technotes/tn/tn2017.html#Section3 Nevertheless, if I understand it

Re: How to set the name of open-with application for a specific file?

2009-07-31 Thread Kyle Sluder
On Jul 31, 2009, at 12:40 AM, 慧 松本 sato...@mac.com wrote: I want to change the name of the app used to open the file. You want to actually change the name of the application itself? Sorry, that's not yours to touch. The user might not even have the rights to make this modification

Re: How to set the name of open-with application for a specific file?

2009-07-31 Thread MATSUMOTO Satoshi
Kyle Sluder, thank you for your response. I want to choose a different application to associate with the file. Satoshi On 2009/07/31, at 16:53, Kyle Sluder wrote: On Jul 31, 2009, at 12:40 AM, 慧 松本 sato...@mac.com wrote: I want to change the name of the app used to open the file. You

Re: How to set the name of open-with application for a specific file?

2009-07-31 Thread Jerry Krinock
On 2009 Jul 31, at 01:02, MATSUMOTO Satoshi wrote: I want to choose a different application to associate with the file. Off-topic but, oh well, you wouldn't have known Activate Finder. Select a subject document file. In main menu click File Get Info. In the Info Window which

Re: How to set the name of open-with application for a specific file?

2009-07-31 Thread MATSUMOTO Satoshi
Dear Jerry Krinock, On 2009/07/31, at 21:43, Jerry Krinock wrote: Activate Finder. Select a subject document file. In main menu click File Get Info. In the Info Window which appears, click Open with... and if desired click the Change All button. Thank you for your kind advice. :-) I

Re: How to set the name of open-with application for a specific file?

2009-07-31 Thread Jerry Krinock
On 2009 Jul 31, at 06:00, MATSUMOTO Satoshi wrote: I want to do this programmatically. I don't know if there are API to do this programatically or not. Search Xcode documentation for functions that Start With LS. ___ Cocoa-dev mailing list