The filetypecreator( function returns the type and creator code of the specified file (if any).


This function has one parameter:

path – is a path to the file, including the file name (see Files and Folders for more information about file paths).


This function returns the type and creator code of the specified file (if any). The type code is a special 4 character codes that identifies the type of the file. The creator code is a special 4 character code that identifies what application created the file.

filetypecreator("/Users/tomswift/Dropbox/Photos/Boston City Flow.jpg") ☞ JPEG
filetypecreator("/Users/tomswift/Web/Home.html") ☞ TEXT 
filetypecreator("/Users/tomswift/Movies/First") ☞ MOOV

Note: Type and creator codes are leftovers from Mac OS 9 and earlier. They are not used by modern systems. The filetypecreator( function determines the type/creator codes based on the extension at the end of the filename. (If the file does not have an extension, or if the extension is unknown to Panorama, the function returns "".)

Common Type/Creator Codes

Here are some of the common type/creator codes that Panorama supports.

Type CodeCreatorExtensionsNotes
ZEPDKASX.pandbPanorama Database
KSETKASX.pansetPanorama File Set
TEXT.txt .html .css .csvText File
JPEG.jpg .jpeg .jpe .jfifJPEG Image File
PNGf.pngPNG Image File
TIFF.tiff .tifTIFF Image File
GIFf.gifGIF Image File
PICT.pict .pct .picPICT Image File (OS 9)
BMPf.gifBMP Image File (Windows)
PDF .pdfPDF Document (note space on end of type code)
8BPS.psdPhotoshop File .moov .qtQuickTime Move File
WAVE.wavAudio File
MPEG.mpg .mpeg .mp3 .mpe .mpa .mtvMPEG Media File
AIFF.aif .aiffAudio File
Legacy Syntax (Separate Folder and File Parameters)

In older versions of Panorama (6.0 and earlier) the filetypecreator( had two parameters, folderid and filename. To maintain compatibility with older databases, two parameters will still work, as shown in this example:


For new databases you’ll probably find it easier to use the single parameter mode.

See Also


10.0UpdatedCarried over from Panorama 6.0, but now may have either one parameter (path) or two (folder, path).