Been doing some research and it looks like the MacOS X Finder just plainly ignores the requested type specifier and always returns something that resembles the AppleScript description of a file; like { document "bla" of folder "bleh" of startup disk }, but in something I can't quite place. It contains a bunch of OSTypes (seld, want, form, from, enum, obj, docf, cfol, indx, utxt) and UniCode text for the names of each item in the description. Each item returned by the Finder starts of with a list of entries which are either pointers to a document (docf), folder (cfol), or volume (disc/sdsk) descriptions later on in the file, starting with the docf (contains 'docf', 'from', 'obj ') and ending with the disk ('disc', 'from', 'null'). Then come the descriptions to which these items point, containing the OSTypes 'enum', 'indx', and a UniText string for the name of the item.
I don't know how to resolve this thing to a FSRef, anyone have any ideas?