Re: Associate icon with file ext. / quick look
Re: Associate icon with file ext. / quick look
- Subject: Re: Associate icon with file ext. / quick look
- From: Sean McBride <email@hidden>
- Date: Mon, 22 Oct 2012 11:54:07 -0400
- Organization: Rogue Research Inc.
On Wed, 17 Oct 2012 13:38:45 +0200, Jean Suisse said:
>My scientific cocoa app (10.6-10.8) records acquired data from devices
>and store them in human-readable UTF8 text files that have specific
>extensions (different from .txt). I have two questions related to file
>extensions, default application, icons and preview in quick look to
>submit to your expertise.
>
>The app that collects and stores the data is not the same as the one
>that is used to view the data (third-party text editor).
>I have found how to tell launch services to open the files with the
>third-party text editor, but I can't find how to associate the icon of
>my app with all the files extensions I use. How can I do that using
>cocoa or a shell script ? – this is my first question.
>
>Secondly, how can I tell quick look to preview the-said files just like
>it would any other text file ?
Jean,
From the sounds of it, it might be best if you just use ".txt" for your human readable text files. QuickLook will then generate previews, and the user's preferred text editor will open the file when double clicked.
Cheers,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden