Reference > Script triggers reference > OnExternalCommandReceived
 
OnExternalCommandReceived
Performs a script when the user presses one of the following buttons on the lock screen or on an external device: stop, play, pause, toggle play/pause, play next, play previous, or begin or end seeking forward or backward.
When the script runs
After the event has been processed.
Modes in which the trigger can be used
Browse and Find modes.
Result
None.
Compatibility 
 
Where the script trigger is activated 
Supported 
FileMaker Pro 
No 
FileMaker Server 
No 
FileMaker Go 
Yes 
Custom Web Publishing 
No 
FileMaker WebDirect 
No 
Runtime solution 
No 
Originated in 
FileMaker Pro 14.0
Notes 
Use the Get(TriggerExternalEvent) function to return the event that activated the script trigger.
Related topics 
Setting up script triggers
Setting script triggers for layouts
Setting script triggers for objects