Platforms to show: All Mac Windows Linux Cross-Platform

Back to FolderItem class.

FolderItem.CreatorAppMBS as FolderItem

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Files MBS MacClassic Plugin ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the application that would be launched if you'd call the above Launch method, or NIL if no appropriate app can be located.
Example
dim docfile as folderitem // your document file
dim appfile as folderitem
appfile=docfile.CreatorAppMBS

This function doesn't work with bundles and should be only used on Mac OS 9.
Use Launch service functions on Mac OS X.

See also:

Some examples using this method:

FolderItem.CreatorAppMBS(creatorCode as String) as FolderItem

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Files MBS MacClassic Plugin ✅ Yes ❌ No ❌ No ✅ Yes All
Returns a folderitem to the Application which created this file for the given creator code on the volume of the folderitem.
Example
dim myvolume as folderitem // your volume
dim theFile as folderitem // your file
dim appfile as folderitem
dim ok as boolean
dim inFront as Boolean


appfile=myvolume.CreatorAppMBS("iCAB")
' or
ok = theFile.OpenWithAppMBS(myvolume.CreatorAppMBS("RSED"), inFront)

Returns the application that would be launched if you'd call the above Launch method and if the file had the specified creator code. Returns NIL if no appropriate app can be located.

This method allows you to open a document with a creator code that you specify instead of having to locate the application by your own. Here's an example on how to open any file with ResEdit (whose creator code is 'RSED'):

This function doesn't work with bundles and should be only used on Mac OS 9.
Use Launch service functions on Mac OS X.

See also:

Some examples using this method:

Blog Entries

The items on this page are in the following plugins: MBS MacClassic Plugin.


The biggest plugin in space...