Skip to content

Instantly share code, notes, and snippets.

@rameshdharan
Last active August 29, 2015 14:17
Show Gist options
  • Save rameshdharan/603dd6e24ccd77e121b7 to your computer and use it in GitHub Desktop.
Save rameshdharan/603dd6e24ccd77e121b7 to your computer and use it in GitHub Desktop.
Script to set Apple Messages app status based on current playing song in Radiant Player.
on idle
tell application "Radiant Player"
set artist to current song artist
set track to current song name
set trackUrl to current song url
set playerState to player state
end tell
tell application "Messages"
if status is available then
if playerState is 2 then
set status message to ("♫ " & (artist as string) & " | " & (track as string))
end if
end if
end tell
return 5
end idle
@rameshdharan
Copy link
Author

  • Based on this similar script for Spotify: http://forums.macrumors.com/showthread.php?t=1418925.
  • To use this:
    • Paste into AppleScript editor
    • File->Export..., File Format: Application, Stay open after run
    • Open the package contents for the saved application, edit Info.plist and add the following to suppress Dock icon and menu: LSBackgroundOnly 1

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