Skip to content

Instantly share code, notes, and snippets.

@hamstu
Created April 3, 2024 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hamstu/68c453cffac3ce64fedd3e90b498a510 to your computer and use it in GitHub Desktop.
Save hamstu/68c453cffac3ce64fedd3e90b498a510 to your computer and use it in GitHub Desktop.
Arc Switch Space Script
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Arc <NAME OF SPACE>
# @raycast.mode silent
# Optional parameters:
# @raycast.icon 🚀
# @raycast.packageName Arc
# Documentation:
# @raycast.description Open Arc <NAME OF SPACE> space
# @raycast.author hamstu
# @raycast.authorURL https://raycast.com/hamstu
# Run AppleScript command
osascript <<EOF
tell application "Arc"
tell front window
tell space "<NAME OF SPACE>" to focus
end tell
activate
end tell
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment