Re: Setting the "Open with" attribute on a file
Re: Setting the "Open with" attribute on a file
- Subject: Re: Setting the "Open with" attribute on a file
- From: "Sean McBride" <email@hidden>
- Date: Thu, 2 Jun 2005 11:09:23 -0400
- Organization: Rogue Research
On 2005-06-01 21:21, Michael Rothwell said:
>I have a program that creates an MPEG file that I wish to open in VLC
>by default, rather than in Quicktime. How might I set the "open with"
>attribute for the MPEG file from within my program? I can "Get Info"
>on the file and set it there, so there must be some method for doing
>it that I am overlooking.
The rules that govern which app opens a given kind of file are determined
by Launch Services. The rules changes between OS releases. You might
start by looking at:
<http://developer.apple.com/documentation/Carbon/Conceptual/
LaunchServicesConcepts/LSCIntro/chapter_1_section_1.html>
Perhaps setting your file's creator to VLC's creator would do the trick,
assuming VLC specifies a creator, which it might not (as Cocoa app are
want to do, sadly).
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden