QDObs_SetDroppableFileTypes

QDObs_SetDroppableFileTypes(areaRef; areaRef):error
areaRef Longint Area reference
fileTypes Array text Droppable file types
error Longint Error result

Configure a QDrop area to accept specific file types

WARNING As the use of file types is discouraged on Mac OS X since 10.4, QDrop offers new and better plug-in area configuration options via the QD_SetDroppableFileExtensions and QD_SetDroppableFileUTIs commands. Use one of these commands instead of QD_SetDroppableFileTypes. QD_SetDroppableFileTypes still exists only for backwards compatibility.

Parameter areaRef is the reference to the plug-in area.

Parameter fileTypes is a text array specifying the file types accepted by the area. In addition to standard MacOS file types like "TEXT" and "PICT", QDrop uses a set of magic file types that provide extra matching criteria.
qd_anyFileMagic "any*" Accept any file
qd_folderMagic "dir*" Accept folders
qd_QTImageMagic "qti*" Accept image files supported by QuickTime
qd_QTMovieMagic "qtm*" Accept movie files supported by QuickTime

Related commands

QDObs_GetDroppableFileTypes Get the file types accepted by a QDrop area