The extensiontype( function returns the type code of the specified file (if any).
Parameters
This function has one parameter:extension – the extension you want to know about, for example .jpg, .txt, .gif, etc.
Description
This function returns the type code of the specified file (if any). The type code is a special 4 character codes that identifies the type of the file.
extensiontype(".jpg") ☞ JPEG
extensiontype(".html") ☞ TEXT
extensiontype(".mov") ☞ MOOV
Note: Type codes are leftovers from Mac OS 9 and earlier. They are not used by modern systems.
Here are some of the common type/creator codes that Panorama supports.
Type Code | Creator | Extensions | Notes |
---|---|---|---|
ZEPD | KASX | .pandb | Panorama Database |
KSET | KASX | .panset | Panorama File Set |
TEXT | .txt .html .css .csv | Text File | |
JPEG | .jpg .jpeg .jpe .jfif | JPEG Image File | |
PNGf | .png | PNG Image File | |
TIFF | .tiff .tif | TIFF Image File | |
GIFf | .gif | GIF Image File | |
PICT | .pict .pct .pic | PICT Image File (OS 9) | |
BMPf | .gif | BMP Image File (Windows) | |
PDF | .pdf | PDF Document (note space on end of type code) | |
8BPS | .psd | Photoshop File | |
MOOV | .mov .moov .qt | QuickTime Move File | |
WAVE | .wav | Audio File | |
MPEG | .mpg .mpeg .mp3 .mpe .mpa .mtv | MPEG Media File | |
AIFF | .aif .aiff | Audio File |
History
Version | Status | Notes |
10.0 | No Change | Carried over from Panorama 6.0 |