Skip to content

Device ​

Device details, clipboard, appearance, and focus modes.

import Device;

connectToServers ​

Connects your computer to the specified file servers on the network. For example, you can connect to SMB/CIFS, NFS, FTP (read-only), or WebDAV servers.

connectToServers(smb:Computer.local: Text) -> File
ParameterTypeDefault
smb:Computer.localText—

Shortcuts action: is.workflow.actions.connecttoservers

copyToClipboard ​

Copies the result of the last action to the clipboard.

copyToClipboard(localOnly: Boolean, expireAt: Text, content: Any)
ParameterTypeDefault
localOnlyBooleanfalse
expireAtText—
contentAny—

Shortcuts action: is.workflow.actions.setclipboard

createAlarm ​

createAlarm(dateComponents: Any, label: Any, repeatSchedule: Number)
ParameterTypeDefault
dateComponentsAny—
labelAny—
repeatScheduleNumber—

Shortcuts action: com.apple.mobiletimer-framework.MobileTimerIntents.MTCreateAlarmIntent

ejectDisk ​

This action ejects a mounted disk or volume.

ejectDisk(disk: File)
ParameterTypeDefault
diskFile—

Shortcuts action: is.workflow.actions.ejectdisk

findDisplays ​

findDisplays(sortBy: Text, order: Enum, WFContentItemLimit: Boolean, WFContentItemLimitNumber: Number) -> Display
ParameterTypeDefault
sortByText—
orderLatest First | Oldest First—
WFContentItemLimitBooleanfalse
WFContentItemLimitNumberNumber5

Shortcuts action: is.workflow.actions.filter.displays

findWindows ​

findWindows(sortBy: Text, order: Enum, WFContentItemLimit: Boolean, WFContentItemLimitNumber: Number) -> Window
ParameterTypeDefault
sortByText—
orderLatest First | Oldest First—
WFContentItemLimitBooleanfalse
WFContentItemLimitNumberNumber5

Shortcuts action: is.workflow.actions.filter.windows

getAlarms ​

getAlarms()

Shortcuts action: com.apple.mobiletimer-framework.MobileTimerIntents.MTGetAlarmsIntent

getAllWallpapers ​

Gets all of your Lock Screen wallpapers, and returns them as output so you can use them with other actions.

getAllWallpapers(type: Enum) -> Poster
ParameterTypeDefault
typeAll | Current"All"

Shortcuts action: is.workflow.actions.posters.get

getBatteryStatus ​

Returns information about the battery and any charger connected to the device.

getBatteryStatus(get: Enum) -> Any
ParameterTypeDefault
getBattery Level | Is Charging | Is Connected to Charger | Charge Limit"Battery Level"

You can use this action to fetch the current battery percentage, whether your device is plugged into a charger or is charging, or get the current battery charge limit if one is enabled.

Shortcuts action: is.workflow.actions.getbatterylevel

getClipboard ​

Passes the contents of the clipboard to the next action.

getClipboard() -> Any

Shortcuts action: is.workflow.actions.getclipboard

getCurrentApp ​

Gets the current visible app.

getCurrentApp(scope: Enum) -> App
ParameterTypeDefault
scopeCurrent | Visible"Current"

Shortcuts action: is.workflow.actions.getcurrentapp

getCurrentFocus ​

Returns the currently active Focus.

getCurrentFocus() -> FocusMode

This action returns nothing if no Focus is active.

Shortcuts action: is.workflow.actions.dnd.getfocus

getCurrentIpAddress ​

Returns the local or external IP address of the device.

getCurrentIpAddress(address: Enum, type: Enum) -> Text
ParameterTypeDefault
addressExternal | Local"External"
typeIPv4 | IPv6"IPv4"

Shortcuts action: is.workflow.actions.getipaddress

getDeviceDetails ​

Gets information about the current device.

getDeviceDetails(get: Enum) -> Text
ParameterTypeDefault
getDevice Name | Device Hostname | Device Model | Device Is Watch | System Version | System Build Number | Screen Width | Screen Height | Current Volume | Current Brightness | Current Appearance | Device Is Locked"Device Name"

Shortcuts action: is.workflow.actions.getdevicedetails

getNetworkDetails ​

Gets information about the currently connected networks.

getNetworkDetails(network: Text, WFWiFiDetail: Enum, WFCellularDetail: Enum) -> Text
ParameterTypeDefault
networkText—
WFWiFiDetailNetwork Name | BSSID | Wi-Fi Standard | RX Rate | TX Rate | RSSI | Noise | Channel Number | Hardware MAC Address"Network Name"
WFCellularDetailCarrier Name | Radio Technology | Country Code | Is Roaming Abroad | Number of Signal Bars"Carrier Name"

Shortcuts action: is.workflow.actions.getwifi

getWhatsOnScreen ​

Gets the current content on screen, if available.

getWhatsOnScreen() -> File

Shortcuts action: is.workflow.actions.getonscreencontent

goToHomeScreen ​

Navigates to the Home Screen.

goToHomeScreen()

Shortcuts action: is.workflow.actions.returntohomescreen

hideApp ​

Hides one or all open applications. You can choose a list of apps to keep open.

hideApp(mode: Enum, app: Text, apps: Text)
ParameterTypeDefault
modeApp | All Apps"App"
appText—
appsText—

Shortcuts action: is.workflow.actions.hide.app

lockApp ​

Changes whether the selected application is locked. Locked apps require authentication to access.

lockApp(operation: Enum, app: Text)
ParameterTypeDefault
operationLock | Unlock | Toggle"Lock"
appText—

Shortcuts action: is.workflow.actions.lock.app

lockScreen ​

Locks the screen of this device.

lockScreen()

Shortcuts action: is.workflow.actions.lockscreen

logOutUser ​

Logs out the current user.

logOutUser()

Shortcuts action: is.workflow.actions.logout

moveWindow ​

Moves one or more windows to the specified location.

moveWindow(position: Enum, x: Number, y: Number, window: Window, bringToFront: Boolean, display: Text)
ParameterTypeDefault
positionTop Left | Top Center | Top Right | Middle Left | Center | Middle Right | Bottom Left | Bottom Center | Bottom Right | Coordinates"Center"
xNumber—
yNumber—
windowWindow—
bringToFrontBooleantrue
displayText—

Shortcuts action: is.workflow.actions.movewindow

putDisplayToSleep ​

Puts the display(s) of this Mac to sleep.

putDisplayToSleep()

Shortcuts action: is.workflow.actions.displaysleep

quitApp ​

Quits one or all open applications. You can choose a list of apps to keep open.

quitApp(mode: Enum, apps: Text, app: Text, askToSaveChanges: Boolean)
ParameterTypeDefault
modeApp | All Apps"App"
appsText—
appText—
askToSaveChangesBooleantrue

Shortcuts action: is.workflow.actions.quit.app

resizeWindow ​

Resizes one or more windows to the specified width and height.

resizeWindow(configuration: Enum, width: Number, height: Number, window: Window, bringToFront: Boolean)
ParameterTypeDefault
configurationFit Screen | Top Half | Bottom Half | Left Half | Right Half | Top Left Quarter | Top Right Quarter | Bottom Left Quarter | Bottom Right Quarter | Dimensions"Fit Screen"
widthNumber—
heightNumber—
windowWindow—
bringToFrontBooleantrue

Shortcuts action: is.workflow.actions.resizewindow

Searches for content in the system that matches the specified text.

search(text: Text, type: Text, WFSpotlightSearchLimit: Number) -> Any
ParameterTypeDefault
textText—
typeText"All"
WFSpotlightSearchLimitNumber5

Shortcuts action: is.workflow.actions.spotlightsearch

searchInPasswords ​

Opens Passwords and searches for the given text.

searchInPasswords(text: Text)
ParameterTypeDefault
textText—

Shortcuts action: is.workflow.actions.openpasswords

setFocus ​

Sets the specified Focus on or off.

setFocus(operation: Enum, state: Boolean, until: Enum, event: Any, time: Text, focus: Text)
ParameterTypeDefault
operationTurn | Toggle"Turn"
stateBooleanfalse
untilTurned Off | Time | I Leave | Event Ends"Turned Off"
eventAny—
timeText—
focusText—

Shortcuts action: is.workflow.actions.dnd.set

setWallpaperPhoto ​

Sets the wallpaper to the specified image.

setWallpaperPhoto(image: Image, wallpaperLocation: Enum, showPreview: Boolean, perspectiveZoom: Boolean, wallpaper: Text, cropToSubject: Boolean, legibilityBlur: Boolean) -> Poster
ParameterTypeDefault
imageImage—
wallpaperLocationLock Screen | Home ScreenLock Screen,Home Screen
showPreviewBooleantrue
perspectiveZoomBooleanfalse
wallpaperText—
cropToSubjectBooleantrue
legibilityBlurBooleantrue

Shortcuts action: is.workflow.actions.wallpaper.set

shutDown ​

Shuts down or restarts your device.

shutDown(mode: Enum)
ParameterTypeDefault
modeShut Down | Restart"Shut Down"

Shortcuts action: is.workflow.actions.reboot

sleep ​

Put this Mac to sleep.

sleep()

Shortcuts action: is.workflow.actions.sleep

splitScreenApps ​

Open the specified apps in split screen mode.

splitScreenApps(WFPrimaryAppIdentifier: Text, WFSecondaryAppIdentifier: Text, ratio: Enum)
ParameterTypeDefault
WFPrimaryAppIdentifierText—
WFSecondaryAppIdentifierText—
ratio½ + ½ | ⅔ + ⅓"½ + ½"

Shortcuts action: is.workflow.actions.splitscreen

startScreenSaver ​

Starts the screen saver selected in the Desktop & Screen Saver preference pane.

startScreenSaver()

Shortcuts action: is.workflow.actions.startscreensaver

startTimer ​

Starts a timer in the Clock app for the specified amount of time.

startTimer(duration: Number)
ParameterTypeDefault
durationNumber—

Shortcuts action: is.workflow.actions.timer.start

switchBetweenWallpapers ​

Switches the current Lock Screen wallpaper.

switchBetweenWallpapers(wallpaper: Text)
ParameterTypeDefault
wallpaperText—

If the wallpaper has a linked Focus, this action will set the Focus, too.

Shortcuts action: is.workflow.actions.posters.switch

takeScreenshot ​

Take a screenshot of the device's screen.

takeScreenshot(type: Enum, selection: Enum, captureMainDisplayOnly: Boolean, ignoreContextualAssistanceLayers: Boolean) -> Image
ParameterTypeDefault
typeFull Screen | Interactive"Full Screen"
selectionWindow | Custom"Window"
captureMainDisplayOnlyBooleanfalse
ignoreContextualAssistanceLayersBooleanfalse

Shortcuts action: is.workflow.actions.takescreenshot

toggleAlarm ​

toggleAlarm(alarm: Any, operation: Number)
ParameterTypeDefault
alarmAny—
operationNumber—

Shortcuts action: com.apple.mobiletimer-framework.MobileTimerIntents.MTToggleAlarmIntent

vibrateDevice ​

Vibrates the device for a short amount of time.

vibrateDevice(hapticPattern: Enum)
ParameterTypeDefault
hapticPatternDefault | Up Direction | Down Direction | Success | Failure | Retry | Start | Stop | Click"Default"

Shortcuts action: is.workflow.actions.vibrate

watchMeDo ​

Records and plays back mouse and keyboard events.

watchMeDo(userEvent: Any, playbackSpeed: Number)
ParameterTypeDefault
userEventAny—
playbackSpeedNumber1

Shortcuts action: is.workflow.actions.watchmedo