Page 1 of 1

Script for GrowlTunes Notification?

Posted: Wed Jun 15, 2005 8:23 pm
by TheLastShack
I would like to know if there is a way, via AppleScript (since I am using Quicksilver) to call up the GrowlTunes iTunes notification on-demand. I would like to have the option, like in Synergy, to press a hotkey combination and have the notification pop up. Thanks for any help!

Posted: Thu Jun 16, 2005 9:14 pm
by TheLastShack
Anyone? :D I'm pretty sure there has to be a way to do it... I just don't know how.

Posted: Fri Jun 17, 2005 1:11 am
by The_Tick
There actually isn't a way, currently.

Posted: Fri Jun 17, 2005 1:22 am
by TheLastShack
The_Tick wrote:There actually isn't a way, currently.
Ah, okay. I guess I'll live... do you know if there will be a way in the future, either via a script or GrowlTunes? Thanks again!

Posted: Fri Jun 17, 2005 8:20 am
by IngmarStein
I've just added AppleScript support for GrowlTunes. You will be able to bind the script

Code: Select all

tell application "GrowlTunes" to show current track
to a qs trigger.

Posted: Fri Jun 17, 2005 8:36 am
by TheLastShack
IngmarStein wrote:I've just added AppleScript support for GrowlTunes. You will be able to bind the script

Code: Select all

tell application "GrowlTunes" to show current track
to a qs trigger.
Thanks! Will this be added in the next release? Also, since I do not know AppleScript very well, what would the script be required to include other than that line? Thanks again.

Posted: Fri Jun 17, 2005 11:11 am
by IngmarStein
TheLastShack wrote:Will this be added in the next release?
Yes
TheLastShack wrote: Also, since I do not know AppleScript very well, what would the script be required to include other than that line?
Nothing

Posted: Fri Jun 17, 2005 10:06 pm
by TheLastShack
I downloaded the newest beta, and the script works. However, now there is a problem with GrowlTunes displaying the current rating. If I change the rating of a song, either via script or iTunes, then use the script to call up the notification, it shows the older rating from the time the song started playing. If I skip ahead one song, then back, it shows the correct rating.

I may be mistaken, but is this due to GrowlTunes caching the song's information when it starts?

Posted: Sat Jun 18, 2005 3:46 am
by InTheLight
I use the "CheckRating" script that comes with Growl set to a QS Trigger to show the current information. Works great.

Posted: Sun Jun 26, 2005 5:50 am
by Third
You can use Growl for all QS notifications, and let QS monitor iTunes tracks. Make sure that you have the Notification Hub and the iTunes plugins installed. I assigned a trigger is QS to bring up the iTunes notification, but if you tell QS to monitor tracks, the notification comes up whenever the track changes.

Posted: Sun Jun 26, 2005 6:15 am
by The_Tick
A lot of people do that, the difference is that growltunes will go out and grab images from amazon, and last I check the quicksilver plugin won't.

Posted: Mon Jun 27, 2005 10:13 pm
by adambrown
Im trying to build a script for Adium, and i want growl to show the current ly playing track, this snippet doesnt seem to be working:

Code: Select all

tell application "GrowlTunes" to activate

show current track

end tell
Help! lol

Adam

Posted: Tue Jun 28, 2005 12:35 am
by zaudragon
adambrown wrote:Im trying to build a script for Adium, and i want growl to show the current ly playing track, this snippet doesnt seem to be working:

Code: Select all

tell application "GrowlTunes" to activate

show current track

end tell
Help! lol

Adam
First, you don’t have to tell it to activate since it’ll do that anyways.
Second, are you sure you have the latest beta?

Posted: Tue Jun 28, 2005 8:23 am
by adambrown
lol nope.. updating now

EDIT:

Here is the script in its entirety, when i try and compile i get a 'expected end of line etc but found identifier' error

<snip>

EDIT 2:

Never mind fixed it!

Posted: Thu Aug 18, 2005 4:59 am
by inkhead
you edited the code out?

I get the same error how can I fix this?

Posted: Thu Aug 18, 2005 10:27 am
by DeltaTee

Code: Select all

tell application "GrowlTunes" to show current track

Posted: Thu Aug 18, 2005 12:51 pm
by adambrown
For those who want it:

Code: Select all

//iBRB V.1.0 (C) Adam Brown 2005
set wait to 0.013
tell application "iTunes"
	activate
	pause
	display dialog "Click OK to Continue Playing." giving up after 900
end tell

tell application "GrowlTunes" to show current track
wait
tell application "iTunes"
	play
end tell

Posted: Thu Aug 18, 2005 8:42 pm
by inkhead
Thank you,

I actually did it with Synergy installed. My whole reasoning is I do not want the bezel to show when I'm sitting in front of my computer. A giant info bezel across my screen while I'm working isn't productive.

However when I am walking around (I use my keyspan remote) I'd like to see the bezel when I glance at the screen from up to 20 feet away.

So now my keyspan buttons (on the remote) are linked to this applescript solution:

http://forums.cocoaforge.com/viewtopic.php?t=4433