Application icon

Determining How an Action Was Started

At times you might want to know how an action was started (launched).

The Test Run Context statement can be used to determine if an action is running in the Batch Processor.

Various named variables return information about how an action was started:


  Named Variable  Description
Droplet FilesIf the action was started from a droplet created with the Run Action With a List of Dropped Files mode, the named variable will a list of the dropped items delimited by the Default List Delimiter (\~).
Droplet NameIf the action was started from a droplet, the named variable will contain the name of the droplet.
File Auto SelectedWhen the named variable is set to 1, the action was started without any selected files, but files were loaded. A single file was automatically selected. Note that this can only happen if the action has Always enabled in the Action Manager.
Pre Droplet Open ModeIf the action was started from a droplet created with the Load Dropped Files and Run Action mode, the named variable will contain a symbolic representation of the Open Mode prior to being modified by the droplet's forced Open Mode. The following characters are used:
A (Album Mode)
P (Playlist Mode)
+ (add to the file list)
- (replace the file list)
S (process subfolders)
X (do not process subfolders)
Run from Function ButtonThe action was started from a field function button's Multi Field Editor Actions context menu. The named variable contains the name of the field. When not empty, named variable Run from Multi Field Editor will be set to 1.
Run from Multi Field EditorWhen the named variable is set to 1, the action was run from the Multi Field Editor or from a field function button's Multi Field Editor Actions context menu. If named variable Run from Function Button is empty, the action was started from the Multi Field Editor, otherwise it was started from the specified function button.
Temporary File SuppliedWhen the named variable is set to 1, the action was started without any loaded files. A temporary file was supplied. Note that this can only happen if the action has Always enabled in the Action Manager.