Created
April 3, 2024 15:48
-
-
Save hamstu/68c453cffac3ce64fedd3e90b498a510 to your computer and use it in GitHub Desktop.
Arc Switch Space Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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