--- Jeff Justice <[EMAIL PROTECTED]> wrote:

> Here's what eventually worked:
> 
>    Dim AppTypes as New FileType
> 
>    AppTypes.Name="Application Types"
>    AppTypes.MacType="appl;APPL"
> 
>    Dim f as FolderItem = GetOpenFolderItem(AppTypes.MacType)
>    if f <> Nil then
>      MsgBox f.AbsolutePath
>    end if
> 
> I don't understand why this won't though:
> 
>    Dim AppTypes as New FileType
> 
>    AppTypes.Name="Application Types"
>    AppTypes.Extensions="app" (or .app, or APP, or .APP or .app
> with a  
> space)
> 
>    Dim f as FolderItem = GetOpenFolderItem(AppTypes.Extensions)
>    if f <> Nil then
>      MsgBox f.AbsolutePath
>    end if

For historical reasons, the Mac relies more on Mac Type codes
than on extensions, meaning that if a file has a Mac Type, the OS
will classify it based on Type rather than by extension.  In
other words, it will basically ignore the extension, and go by
Type alone.

The original rationale was that it spared the user from having to
memorize a bunch of cryptic 3-letter "codes" for which files were
which type, but (IMHO) that's a rather archaic point of view
since the Internet got big.

For better or worse, though, RB follows the Apple convention
here.


Mark Nutter

Quick and easy regex creation and debugging!
http://www.bucktailsoftware.com/products/regexplorer/

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to