FindApp
Description: |
baFindApp returns the application associated with a file type. |
Platforms: |
Windows and Macintosh |
Usage: |
Result = baFindApp( Extension ) |
Arguments: |
String. |
Returns: |
String. |
Examples: |
Director: Authorware: |
Notes: |
On Windows, Microsoft guidelines state that if a program registers a file extension, and the path to the executable file is a long file name, then that name must be included in quotes. If an installation program doesn't follow these guidelines, then this function may fail. Specifically, if the path name to the executable contains a space, then this function will not be able to return the path to the executable. Adobe Acrobat Reader 3 is one program that does not register itself correctly - it does not place quotes around the executable name in the registry. The baFindApp function has been written around this particular problem with Acrobat, and will use other methods to locate Acrobat if it is asked to find the application associated with "pdf" files. You do not have to include the . with the extension.
On Macintosh, each application has it’s own unique four character
identifier eg, “CARO” for Acrobat, “MOSS” for Netscape, “MSIE” for Internet
Explorer. There are a number of shareware utilities available which will
tell you the creator type of a application, such as File Buddy by Laurence
Harris, or you can use baFileCreator. |
See also: |
baOpenFile |