Re: File association using file magic

2014-01-24 Thread Charles Srstka
On Jan 24, 2014, at 9:02 PM, Kyle Sluder wrote: >> On Jan 24, 2014, at 5:27 PM, Charles Srstka wrote: >> >> Well, that's for a good reason, you see. If your app were able to change >> users' preferences, it might be able to... erm... take over... uh... file >> associations. >> >> Hrm. > > Y

Re: File association using file magic

2014-01-24 Thread SevenBits
On Jan 24, 2014, at 10:02 PM, Kyle Sluder wrote: >> On Jan 24, 2014, at 5:27 PM, Charles Srstka wrote: >> >> Well, that's for a good reason, you see. If your app were able to change >> users' preferences, it might be able to... erm... take over... uh... file >> associations. >> >> Hrm. > >

Re: File association using file magic

2014-01-24 Thread Kyle Sluder
> On Jan 24, 2014, at 5:27 PM, Charles Srstka wrote: > > Well, that's for a good reason, you see. If your app were able to change > users' preferences, it might be able to... erm... take over... uh... file > associations. > > Hrm. You don’t see that as a problem? Install SuperFunGame from th

Re: File association using file magic

2014-01-24 Thread Charles Srstka
On Jan 24, 2014, at 5:53 PM, SevenBits wrote: > On Jan 24, 2014, at 4:49 PM, Charles Srstka wrote: > >> On Jan 24, 2014, at 1:25 PM, SevenBits wrote: >> >>> I personally hate this, especially if your app reads file types other apps >>> share with you. For instance, one of my programs opens I

Re: File association using file magic

2014-01-24 Thread SevenBits
On Jan 24, 2014, at 4:49 PM, Charles Srstka wrote: > On Jan 24, 2014, at 1:25 PM, SevenBits wrote: > >> I personally hate this, especially if your app reads file types other apps >> share with you. For instance, one of my programs opens ISO files, and one >> user emailed to tell me my app was

Re: File association using file magic

2014-01-24 Thread Charles Srstka
On Jan 24, 2014, at 1:25 PM, SevenBits wrote: > I personally hate this, especially if your app reads file types other apps > share with you. For instance, one of my programs opens ISO files, and one > user emailed to tell me my app was opening every time he clicked on it. Now, > it was his fau

Re: File association using file magic

2014-01-24 Thread SevenBits
On Jan 24, 2014, at 1:30 PM, Jerry Krinock wrote: > > On 2014 Jan 24, at 08:56, Sean McBride wrote: > >> OS X has a one-to-one mapping of extension to UTI and so doesn't deal well >> if two different applications declaring different UTIs for the same >> extension. Just another case to look

Re: File association using file magic

2014-01-24 Thread Jerry Krinock
On 2014 Jan 24, at 08:56, Sean McBride wrote: > OS X has a one-to-one mapping of extension to UTI and so doesn't deal well if > two different applications declaring different UTIs for the same extension. > Just another case to look out for… In particular, prepare for support requests from us

Re: File association using file magic

2014-01-24 Thread Sean McBride
On Fri, 24 Jan 2014 10:04:05 +0100, Remco Poelstra said: >Thanks for both responses. I think I'll try to do both. Register all >known file extensions, so the known ones get a nice document icon and >the suggestion to open it with my app. And accept all other types, just >in case someone comes up w

Re: File association using file magic

2014-01-24 Thread Uli Kusterer
On 22 Jan 2014, at 15:33, Remco Poelstra wrote: > I'm writing an app which has to import files without a fixed file extension. > There are about 10 different commonly used file extensions around. You can specify a whole list of file extensions in your Info.plist for each document class. That w

Re: File association using file magic

2014-01-24 Thread Remco Poelstra
Op 22 jan. 2014, om 15:33 heeft Remco Poelstra het volgende geschreven: > I'm writing an app which has to import files without a fixed file extension. > There are about 10 different commonly used file extensions around. > Is it possible to associate a file to my app based on the file contents?

Re: File association using file magic

2014-01-23 Thread Charles Srstka
On Jan 22, 2014, at 8:33 AM, Remco Poelstra wrote: > I'm writing an app which has to import files without a fixed file extension. > There are about 10 different commonly used file extensions around. > Is it possible to associate a file to my app based on the file contents? Much > like how file

Re: File association using file magic

2014-01-23 Thread Ken Thomases
On Jan 22, 2014, at 8:33 AM, Remco Poelstra wrote: > I'm writing an app which has to import files without a fixed file extension. > There are about 10 different commonly used file extensions around. > Is it possible to associate a file to my app based on the file contents? Much > like how file (

Re: File association

2009-01-19 Thread Mahaboob
I got all the contents from LS database and the prp extension is associated with TextEdit application. I got it like: handlerid:2224 extension: prp options: all roles: com.apple.t

Re: File association

2009-01-19 Thread Sean McBride
On 1/19/09 10:19 AM, Mahaboob said: >Sorry for the late reply. >When I'm trying like that I got the result as >kMDItemContentType = "dyn.ah62d4rv4ge81a6xu" > >I didn't understand anything from this. That's a 'dynamic UTI', you can google it. And if you try the same for other extensions? Maybe d

Re: File association

2009-01-18 Thread Mahaboob
Hi, Sorry for the late reply. When I'm trying like that I got the result as kMDItemContentType = "dyn.ah62d4rv4ge81a6xu" I didn't understand anything from this. On 1/16/09 8:32 PM, "Sean McBride" wrote: > On 1/16/09 6:01 PM, Mahaboob said: > >> I noticed that the problem is only with the "p

Re: File association

2009-01-16 Thread Sean McBride
On 1/16/09 6:01 PM, Mahaboob said: >I noticed that the problem is only with the "prp" extension. >When I'm replacing it with another extensions it is working fine. >But, I need the "prp" extension. Could it be that you have another application that also claims the .prp extension? Mac OS does not

Re: File association

2009-01-16 Thread Mahaboob
Hi, I noticed that the problem is only with the "prp" extension. When I'm replacing it with another extensions it is working fine. But, I need the "prp" extension. On 1/16/09 11:07 AM, "Mahaboob" wrote: > > Hi, > I set the Exported Type UTIs and Imported type UTIs.Now when I'm taking the > ge

Re: File association

2009-01-15 Thread Benjamin Stiglitz
Document Tyoe Name : myApplication CFBundleTypeExtensions : prp Document OS Type : Role : Editor Handler rank : Owner Then run it and saved the project. Then I double click the saved project, but it opens in TextEdit. Is there any other keys I need to set? You need to set a unique document

Re: File association

2009-01-15 Thread Mahaboob
Hi, I gone through the documentation and did in the info.plist file like: Document Tyoe Name : myApplication CFBundleTypeExtensions : prp Document OS Type : Role : Editor Handler rank : Owner Then run it and saved the project. Then I double click the saved project, but it opens in TextEdit.

Re: File association

2009-01-14 Thread Benjamin Stiglitz
> I saved the project using NSArchiver with an extension say .myExtension. And > also I opened the saved project by unachieved it from menu. Now I need to > open the saved project when double clicking on it. > > How can I do this file association? See the Runtime Configuration Guidelines: