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
r 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 fault, as he set the file association, but he blamed me. >>> >>> Users can be so annoying sometimes.

Re: File association using file magic

2014-01-24 Thread SevenBits
mailed to tell me my app was opening every time he clicked on it. Now, >> it was his fault, as he set the file association, but he blamed me. >> >> Users can be so annoying sometimes. > > Not necessarily the user's fault; I've seen it happen often that > LaunchS

Re: File association using file magic

2014-01-24 Thread Charles Srstka
; it was his fault, as he set the file association, but he blamed me. > > Users can be so annoying sometimes. Not necessarily the user's fault; I've seen it happen often that LaunchServices just decides to make some other app the default, even though there's an OS-provided ap

Re: File association using file magic

2014-01-24 Thread SevenBits
gt; • Forget what it was for > • Ditto for other apps claiming the same <.whatever> 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 h

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 (

File association using file magic

2014-01-23 Thread Remco Poelstra
Hi, 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 (1) determines a file's type? Or should I simply regi

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
ject when double clicking on it. >> >> How can I do this file association? > > See the Runtime Configuration Guidelines: > <http://developer.apple.com/documentation/MacOSX/Conceptual/BPRuntimeConfig/Ar > ticles/PListKeys.html#//apple_ref/doc/uid/20001431-101685> &g

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 Gu

File association

2009-01-13 Thread Mahaboob
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? Where I need to write code for unarchiving its content

Re: Setting "Open With" program/file association programmatically (command line or script)

2008-09-23 Thread Jeffrey R. Kelley
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 PROTECTED] ITCS - Campus Computing Sites University of Michigan On Sep 23, 2008, at 8:20 AM, Pierre Guilluy wrote

Setting "Open With" program/file association programmatically (command line or script)

2008-09-23 Thread Pierre Guilluy
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 u