Last active
August 29, 2015 14:17
-
-
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.
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
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 |
Author
rameshdharan
commented
Mar 16, 2015
- 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