Applescript assistence grabbing current track info

Discuss Decibel, a high quality audio player.
Post Reply
thnetos
Posts: 5
Joined: Tue Dec 04, 2012 3:58 pm

Applescript assistence grabbing current track info

Post by thnetos » Tue Dec 04, 2012 10:15 pm

I'm having some trouble grabbing the currently playing track with Applescript, here's is what I'm trying to do:

Code: Select all

tell application "Decibel"
	set currentTrack to title of nowPlaying
	growlNotify("Currently Playing", currentTrack)
end tell

using terms from application "GrowlHelperApp"
	-- Register Growl
	tell application "GrowlHelperApp"
		register as application "Decibel" all notifications {"Alert"} default notifications {"Alert"} icon of application "Decibel.app"
	end tell
	
	on growlNotify(growlTitle, growlDescription)
		tell application "GrowlHelperApp"
			notify with name "Alert" title growlTitle description growlDescription application name "Decibel"
		end tell
	end growlNotify
end using terms from
Anyone have any pointers for "set currentTrack to title of nowPlaying"? This is the part I don't have correct. (I'm not really an Applescript expert).

User avatar
sbooth
Site Admin
Posts: 2445
Joined: Fri Dec 23, 2005 7:45 am
Location: USA
Contact:

Re: Applescript assistence grabbing current track info

Post by sbooth » Tue Dec 04, 2012 11:45 pm

Did you check out the Growl notifier plugin? You can activate it from the Preferences plug-in pane.

thnetos
Posts: 5
Joined: Tue Dec 04, 2012 3:58 pm

Re: Applescript assistence grabbing current track info

Post by thnetos » Tue Dec 04, 2012 11:55 pm

Yea, I use that also, however I like having a keybinding to display the currently playing track without bringing the player up at any time. (I forget what song is playing or paused quite frequently).

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest