Skip to content

Instantly share code, notes, and snippets.

@dnnsmnstrr
Created February 20, 2025 09:14
Show Gist options
  • Save dnnsmnstrr/4c49ddd16e712fcd59f17df98c4447cb to your computer and use it in GitHub Desktop.
Save dnnsmnstrr/4c49ddd16e712fcd59f17df98c4447cb to your computer and use it in GitHub Desktop.
Raycast Script Command to start my coding playlist on shuffle
#!/usr/bin/osascript
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Play Coding Playlist
# @raycast.mode silent
# Optional parameters:
# @raycast.packageName Spotify
# @raycast.icon 💻
# Documentation:
# @raycast.author dnnsmnstrr
# @raycast.authorURL https://raycast.com/dnnsmnstrr
# @raycast.description Start the 1337 h4xX0r playlist for the next coding session
# Customization:
# 1. Copy URI of track or playlist from Spotify, e.g. your discover weekly
# 2. Adjust title and description of command
property uri : "spotify:user:spotify:playlist:0camicGxGNwB9YS66nAwtb"
tell application "Spotify"
set shuffling to true
play track uri
end tell
@dnnsmnstrr
Copy link
Author

dnnsmnstrr commented Feb 20, 2025

@dnnsmnstrr
Copy link
Author

dnnsmnstrr commented Feb 20, 2025

spotify:user:spotify:playlist:0camicGxGNwB9YS66nAwtb

@dnnsmnstrr
Copy link
Author

Template

property uri : "0camicGxGNwB9YS66nAwtb"

tell application "Spotify"
	set shuffling to true
	set playlistUri to "spotify:user:spotify:playlist:" & uri
	play track playlistUri
end tell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment