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| Parameter | Type | Default |
|---|---|---|
smb:Computer.local | Text | — |
Shortcuts action: is.workflow.actions.connecttoservers
copyToClipboard
Copies the result of the last action to the clipboard.
copyToClipboard(localOnly: Boolean, expireAt: Text, content: Any)| Parameter | Type | Default |
|---|---|---|
localOnly | Boolean | false |
expireAt | Text | — |
content | Any | — |
Shortcuts action: is.workflow.actions.setclipboard
createAlarm
createAlarm(dateComponents: Any, label: Any, repeatSchedule: Number)| Parameter | Type | Default |
|---|---|---|
dateComponents | Any | — |
label | Any | — |
repeatSchedule | Number | — |
Shortcuts action: com.apple.mobiletimer-framework.MobileTimerIntents.MTCreateAlarmIntent
ejectDisk
This action ejects a mounted disk or volume.
ejectDisk(disk: File)| Parameter | Type | Default |
|---|---|---|
disk | File | — |
Shortcuts action: is.workflow.actions.ejectdisk
findDisplays
findDisplays(sortBy: Text, order: Enum, WFContentItemLimit: Boolean, WFContentItemLimitNumber: Number) -> Display| Parameter | Type | Default |
|---|---|---|
sortBy | Text | — |
order | Latest First | Oldest First | — |
WFContentItemLimit | Boolean | false |
WFContentItemLimitNumber | Number | 5 |
Shortcuts action: is.workflow.actions.filter.displays
findWindows
findWindows(sortBy: Text, order: Enum, WFContentItemLimit: Boolean, WFContentItemLimitNumber: Number) -> Window| Parameter | Type | Default |
|---|---|---|
sortBy | Text | — |
order | Latest First | Oldest First | — |
WFContentItemLimit | Boolean | false |
WFContentItemLimitNumber | Number | 5 |
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| Parameter | Type | Default |
|---|---|---|
type | All | 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| Parameter | Type | Default |
|---|---|---|
get | Battery 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() -> AnyShortcuts action: is.workflow.actions.getclipboard
getCurrentApp
Gets the current visible app.
getCurrentApp(scope: Enum) -> App| Parameter | Type | Default |
|---|---|---|
scope | Current | Visible | "Current" |
Shortcuts action: is.workflow.actions.getcurrentapp
getCurrentFocus
Returns the currently active Focus.
getCurrentFocus() -> FocusModeThis 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| Parameter | Type | Default |
|---|---|---|
address | External | Local | "External" |
type | IPv4 | IPv6 | "IPv4" |
Shortcuts action: is.workflow.actions.getipaddress
getDeviceDetails
Gets information about the current device.
getDeviceDetails(get: Enum) -> Text| Parameter | Type | Default |
|---|---|---|
get | Device 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| Parameter | Type | Default |
|---|---|---|
network | Text | — |
WFWiFiDetail | Network Name | BSSID | Wi-Fi Standard | RX Rate | TX Rate | RSSI | Noise | Channel Number | Hardware MAC Address | "Network Name" |
WFCellularDetail | Carrier 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() -> FileShortcuts 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)| Parameter | Type | Default |
|---|---|---|
mode | App | All Apps | "App" |
app | Text | — |
apps | Text | — |
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)| Parameter | Type | Default |
|---|---|---|
operation | Lock | Unlock | Toggle | "Lock" |
app | Text | — |
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)| Parameter | Type | Default |
|---|---|---|
position | Top Left | Top Center | Top Right | Middle Left | Center | Middle Right | Bottom Left | Bottom Center | Bottom Right | Coordinates | "Center" |
x | Number | — |
y | Number | — |
window | Window | — |
bringToFront | Boolean | true |
display | Text | — |
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)| Parameter | Type | Default |
|---|---|---|
mode | App | All Apps | "App" |
apps | Text | — |
app | Text | — |
askToSaveChanges | Boolean | true |
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)| Parameter | Type | Default |
|---|---|---|
configuration | Fit Screen | Top Half | Bottom Half | Left Half | Right Half | Top Left Quarter | Top Right Quarter | Bottom Left Quarter | Bottom Right Quarter | Dimensions | "Fit Screen" |
width | Number | — |
height | Number | — |
window | Window | — |
bringToFront | Boolean | true |
Shortcuts action: is.workflow.actions.resizewindow
search
Searches for content in the system that matches the specified text.
search(text: Text, type: Text, WFSpotlightSearchLimit: Number) -> Any| Parameter | Type | Default |
|---|---|---|
text | Text | — |
type | Text | "All" |
WFSpotlightSearchLimit | Number | 5 |
Shortcuts action: is.workflow.actions.spotlightsearch
searchInPasswords
Opens Passwords and searches for the given text.
searchInPasswords(text: Text)| Parameter | Type | Default |
|---|---|---|
text | Text | — |
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)| Parameter | Type | Default |
|---|---|---|
operation | Turn | Toggle | "Turn" |
state | Boolean | false |
until | Turned Off | Time | I Leave | Event Ends | "Turned Off" |
event | Any | — |
time | Text | — |
focus | Text | — |
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| Parameter | Type | Default |
|---|---|---|
image | Image | — |
wallpaperLocation | Lock Screen | Home Screen | Lock Screen,Home Screen |
showPreview | Boolean | true |
perspectiveZoom | Boolean | false |
wallpaper | Text | — |
cropToSubject | Boolean | true |
legibilityBlur | Boolean | true |
Shortcuts action: is.workflow.actions.wallpaper.set
shutDown
Shuts down or restarts your device.
shutDown(mode: Enum)| Parameter | Type | Default |
|---|---|---|
mode | Shut 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)| Parameter | Type | Default |
|---|---|---|
WFPrimaryAppIdentifier | Text | — |
WFSecondaryAppIdentifier | Text | — |
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)| Parameter | Type | Default |
|---|---|---|
duration | Number | — |
Shortcuts action: is.workflow.actions.timer.start
switchBetweenWallpapers
Switches the current Lock Screen wallpaper.
switchBetweenWallpapers(wallpaper: Text)| Parameter | Type | Default |
|---|---|---|
wallpaper | Text | — |
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| Parameter | Type | Default |
|---|---|---|
type | Full Screen | Interactive | "Full Screen" |
selection | Window | Custom | "Window" |
captureMainDisplayOnly | Boolean | false |
ignoreContextualAssistanceLayers | Boolean | false |
Shortcuts action: is.workflow.actions.takescreenshot
toggleAlarm
toggleAlarm(alarm: Any, operation: Number)| Parameter | Type | Default |
|---|---|---|
alarm | Any | — |
operation | Number | — |
Shortcuts action: com.apple.mobiletimer-framework.MobileTimerIntents.MTToggleAlarmIntent
vibrateDevice
Vibrates the device for a short amount of time.
vibrateDevice(hapticPattern: Enum)| Parameter | Type | Default |
|---|---|---|
hapticPattern | Default | 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)| Parameter | Type | Default |
|---|---|---|
userEvent | Any | — |
playbackSpeed | Number | 1 |
Shortcuts action: is.workflow.actions.watchmedo