realbasic-nug
[Top] [All Lists]

Re: Any way to figure out what file an application can open?

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Any way to figure out what file an application can open?
From: Tim Jones <tjmac at tolisgroup dot com>
Date: Tue, 27 Feb 2007 11:56:18 -0700
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <20070227175247 dot 45E9D7021C2 at mail dot verex dot com> <DF749190-6C1C-45B9-86ED-8AAA59CEB5FF at tribu dot ch>
On Feb 27, 2007, at 10:55 AM, Arnaud Nicolet wrote:

> Oh yes, thank you!
>
> Le 27 févr. 07 à 18:52 Soir, joe at strout dot net a écrit:
>
>> On Feb 27, 2007, at 17:21 UTC, Arnaud Nicolet wrote:
>>
>>> In the Mac OS 9 days, it was possible to open an application's
>>> resource fork and look in the "BNDL" to discover what files the
>>> application could open.
>>>
>>> Now, in Mac OS X, is it possible in any way?
>>
>> Yes, you have to go poking about in its info.plist file (or 'plst' #0
>> resource).

Or - if you use MBS plugins, you can call (against a FolderItem "f"):

        f.LaunchServicesApplicationForItemMBS(-1).Name

To get the actual name of the default application (or determine that  
one doesn't exist).

Tim
--
Tim Jones
tjmac at tolisgroup dot com

Remember:       Amateurs...built the ark.
                        Professionals...built the Titanic


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>