EventScripts Icon

Available Events and Parameters

EventScripts can pass information to both AppleScripts and shell scripts that provide more detail about the event that triggered the script. For AppleScripts these are passed as a record of properties, for shell scripts arguments are passed.

The tables below show the property names and arguments for all the events supported by EventScripts. Ensure your copy of EventScripts is up to date to get the complete list of events.

Example scripts demonstrating how the parameters are passed from EventScripts to both AppleScripts and shell scripts are available here.

Mobile
Events
AppleScript
Record Properties
Shell Script
Arguments
EventScripts
Mobile
trigger
scriptPath
$1
$2
EventScripts
Mobile client found
trigger
scriptPath
$1
$2
EventScripts
Mobile client lost
trigger
scriptPath
$1
$2
Location
Events
AppleScript
Record Properties
Shell Script
Arguments
Location
updated
trigger
previousLatitude
previousLongitude
latitude
longitude
scriptPath
$1
$2
$3
$4
$5
$6
Network
Events
AppleScript
Record Properties
Shell Script
Arguments
Internet became
available
trigger
scriptPath
$1
$2
Internet became
unavailable
trigger
scriptPath
$1
$2
External IP changedtrigger
previousAddress
ipAddress
scriptPath
$1
$2
$3
$4
Wireless network changedtrigger
SSID
previousSSID
BSSID
scriptPath
$1
$2
$3
$4
$5
Volume
Events
AppleScript
Record Properties
Shell Script
Arguments
Volume mountedtrigger
volumeName
volumePath
scriptPath
$1
$2
$3
$4
Volume will unmounttrigger
volumeName
volumePath
scriptPath
$1
$2
$3
$4
Volume unmountedtrigger
volumeName
volumePath
scriptPath
$1
$2
$3
$4
Computer
Events
AppleScript
Record Properties
Shell Script
Arguments
Computer will shutdowntrigger
scriptPath
$1
$2
Computer will sleeptrigger
scriptPath
$1
$2
Computer wakestrigger
scriptPath
$1
$2
General
Events
AppleScript
Record Properties
Shell Script
Arguments
Screenshot takentrigger
screenshotName
screenshotPath
screenshotType
scriptPath
$1
$2
$3
$4
$5
Desktop picture changedtrigger
imagePath
scriptPath
$1
$2
$3
Spaces
Events
AppleScript
Record Properties
Shell Script
Arguments
Spaces changedtrigger
scriptPath
$1
$2
Entered fullscreentrigger
bundleCode
applicationName
applicationPath
scriptPath
$1
$2
$3
$4
$5
Download EventsAppleScript
Record Properties
Shell Script
Arguments
File Downloadedtrigger
downloadedFile
scriptPath
$1
$2
$3
Apple Remote EventsAppleScript
Record Properties
Shell Script
Arguments
Apple Remote Uptrigger
buttonHeld
scriptPath
$1
$2
$3
Apple Remote Downtrigger
buttonHeld
scriptPath
$1
$2
$3
Apple Remote Lefttrigger
buttonHeld
scriptPath
$1
$2
$3
Apple Remote Righttrigger
buttonHeld
scriptPath
$1
$2
$3
Apple Remote Centertrigger
buttonHeld
scriptPath
$1
$2
$3
Apple Remote Play/Pausetrigger
buttonHeld
scriptPath
$1
$2
$3
Apple Remote Menutrigger
buttonHeld
scriptPath
$1
$2
$3
Bluetooth EventsAppleScript
Record Properties
Shell Script
Arguments
Bluetooth became availabletrigger
scriptPath
$1
$2
Bluetooth became unavailabletrigger
scriptPath
$1
$2
Bluetooth device foundtrigger
deviceName
deviceAddress
scriptPath
$1
$2
$3
$4
Bluetooth device losttrigger
deviceName
deviceAddress
scriptPath
$1
$2
$3
$4
Time Machine
Events
AppleScript
Record Properties
Shell Script
Arguments
Time Machine backup completedtrigger
backupPath
scriptPath
$1
$2
$3
Time Machine volume mountedtrigger
backupVolume
scriptPath
$1
$2
$3
Screen
Events
AppleScript
Record Properties
Shell Script
Arguments
Screensaver startedtrigger
scriptPath
$1
$2
Screensaver will stoptrigger
scriptPath
$1
$2
Screensaver stoppedtrigger
scriptPath
$1
$2
Screen did sleeptrigger
scriptPath
$1
$2
Screen did waketrigger
scriptPath
$1
$2
Screen password lockedtrigger
scriptPath
$1
$2
Screen password unlockedtrigger
scriptPath
$1
$2
Application
Events
AppleScript
Record Properties
Shell Script
Arguments
Application will launchtrigger
bundleCode
applicationName
applicationPath
scriptPath
$1
$2
$3
$4
$5
Application launchedtrigger
bundleCode
applicationName
applicationPath
scriptPath
$1
$2
$3
$4
$5
Application quittrigger
bundleCode
applicationName
applicationPath
scriptPath
$1
$2
$3
$4
$5
Browser
Events
AppleScript
Record Properties
Shell Script
Arguments
Safari will launchtrigger
bundleCode
applicationName
applicationPath
scriptPath
$1
$2
$3
$4
$5
Safari launchedtrigger
bundleCode
applicationName
applicationPath
scriptPath
$1
$2
$3
$4
$5
Safari quittrigger
bundleCode
applicationName
applicationPath
scriptPath
$1
$2
$3
$4
$5
Firefox will launchtrigger
bundleCode
applicationName
applicationPath
scriptPath
$1
$2
$3
$4
$5
Firefox launchedtrigger
bundleCode
applicationName
applicationPath
scriptPath
$1
$2
$3
$4
$5
Firefox quittrigger
bundleCode
applicationName
applicationPath
scriptPath
$1
$2
$3
$4
$5
Google Chrome will launchtrigger
bundleCode
applicationName
applicationPath
scriptPath
$1
$2
$3
$4
$5
Google Chrome launchedtrigger
bundleCode
applicationName
applicationPath
scriptPath
$1
$2
$3
$4
$5
Google Chrome quittrigger
bundleCode
applicationName
applicationPath
scriptPath
$1
$2
$3
$4
$5
iTunes
Events
AppleScript
Record Properties
Shell Script
Arguments
iTunes track changedtrigger
album
track
artist
scriptPath
$1
$2
$3
$4
$5
iTunes will launchtrigger
bundleCode
applicationName
applicationPath
scriptPath
$1
$2
$3
$4
$5
iTunes launchedtrigger
bundleCode
applicationName
applicationPath
scriptPath
$1
$2
$3
$4
$5
iTunes quittrigger
bundleCode
applicationName
applicationPath
scriptPath
$1
$2
$3
$4
$5