Skip to main content

Actr_RemoveFolderTrigger (function reference)

By January 1, 2024January 25th, 2024Online Help, Troi Activator Plug-in
Activator Plug-in > Functions reference > Actr_RemoveFolderTrigger
Activator Plug-in for FileMaker Pro

Actr_RemoveFolderTrigger

Removes a previously added folder trigger

SyntaxFunction badge

Actr_RemoveFolderTrigger ( switches; folderPath  )

Parameters

switches not used, reserved for future use. Leave blank or put "-Unused"
folderPath the path of the folder of which you want to remove the monitoring

Returned Result

Data type returned

Error code

Result

The returned result is an error code. An error always starts with 2 dollars, followed by the error code. You should always check for errors. Returned error codes can be:

0 no error
$$-50 paramErr there was an error with a parameter
$$-120 dirNFErr the monitor folder could not be found

Other errors may be returned.

Originated in

Activator Plug-in 6.0

Compatibility

FileMaker Pro 17 to 2023

Considerations

When you leave the folderPath parameter empty all folder triggers will be removed.

Example

Set Variable [ $ErrorCode ; Actr_RemoveFolderTrigger ( "-Unused" ; "/MacHD/incomingData/"  ) ]

This will remove the folder trigger of the folder “/MacHD/incomingData/”.

Set Variable [ $ErrorCode ; Actr_RemoveFolderTrigger ( "-Unused" ; "" ) ]

This will remove all the folder triggers.

Used in example file

FolderTrigger.fmp12

Related functionFunction badge

Actr_AddFolderTrigger

Related script stepScript step badge

Remove Folder Trigger

Related topics

Activator Plug-in online help (overview)


Online Help Page for Activator Plug-in for 17 to 2023 –> Actr_RemoveFolderTrigger (actrp4627) 2024-0125 14:46:27