Script for GrowlTunes Notification?

The Growl forums have moved to Google Groups, this forum is read only.
Locked
TheLastShack
Harmless
Posts: 21
Joined: Tue Jan 25, 2005 5:28 am
Location: Santa Barbara, CA, US
Contact:

Script for GrowlTunes Notification?

Post 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!
TheLastShack
Harmless
Posts: 21
Joined: Tue Jan 25, 2005 5:28 am
Location: Santa Barbara, CA, US
Contact:

Post by TheLastShack »

Anyone? :D I'm pretty sure there has to be a way to do it... I just don't know how.
User avatar
The_Tick
Cocoaforge Admin
Posts: 4642
Joined: Thu Dec 02, 2004 6:06 am
Contact:

Post by The_Tick »

There actually isn't a way, currently.
TheLastShack
Harmless
Posts: 21
Joined: Tue Jan 25, 2005 5:28 am
Location: Santa Barbara, CA, US
Contact:

Post 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!
IngmarStein
Latté
Posts: 63
Joined: Fri Dec 03, 2004 5:35 pm

Post 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.
TheLastShack
Harmless
Posts: 21
Joined: Tue Jan 25, 2005 5:28 am
Location: Santa Barbara, CA, US
Contact:

Post 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.
IngmarStein
Latté
Posts: 63
Joined: Fri Dec 03, 2004 5:35 pm

Post 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
TheLastShack
Harmless
Posts: 21
Joined: Tue Jan 25, 2005 5:28 am
Location: Santa Barbara, CA, US
Contact:

Post 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?
InTheLight
Harmless
Posts: 3
Joined: Mon May 02, 2005 4:01 am

Post by InTheLight »

I use the "CheckRating" script that comes with Growl set to a QS Trigger to show the current information. Works great.
Third
Harmless
Posts: 5
Joined: Sun Jun 26, 2005 5:44 am

Post 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.
User avatar
The_Tick
Cocoaforge Admin
Posts: 4642
Joined: Thu Dec 02, 2004 6:06 am
Contact:

Post 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.
adambrown
Latté
Posts: 59
Joined: Mon Apr 18, 2005 8:24 pm

Post 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
User avatar
zaudragon
Growl Team
Posts: 1852
Joined: Sat Dec 04, 2004 5:05 am
Location: Kensington, CA, USA
Contact:

Post 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?
Blog | X(tras)
Communists code without classes.
adambrown
Latté
Posts: 59
Joined: Mon Apr 18, 2005 8:24 pm

Post 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!
inkhead
Harmless
Posts: 12
Joined: Fri Apr 01, 2005 2:54 am

Post by inkhead »

you edited the code out?

I get the same error how can I fix this?
DeltaTee
Latté
Posts: 71
Joined: Sun Jun 05, 2005 7:58 pm
Contact:

Post by DeltaTee »

Code: Select all

tell application "GrowlTunes" to show current track
adambrown
Latté
Posts: 59
Joined: Mon Apr 18, 2005 8:24 pm

Post 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
inkhead
Harmless
Posts: 12
Joined: Fri Apr 01, 2005 2:54 am

Post 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
Locked