OnExternalCommandReceived
Triggers a script to run 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.
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