Growl For Windows Notification 1.4

Post a reply

Visual Confirmation

To prevent automated access and spam, you are required to confirm that you are human. Please place a check mark next to all images of monkeys or apes. If you cannot see any images, please contact the Board Administrator.

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Topic review
   

Expand view Topic review: Growl For Windows Notification 1.4

Re: Growl For Windows Notification 1.4

Post by CitizenDee » Tue Oct 16, 2012 9:25 pm

Just to add to this, if you register MediaMonkey with Growl first, you can setup an event for a track change. You can then have the Growl notification titled "MediaMonkey" instead of "GrowlNotify" and can add something meaningful before the track name.

To do this change the growlnotify line in the script to (and I'm remembering this from having done it a while ago so there may be an error here)

Code: Select all
cmd = chr(34)&loc&"\growlnotify.exe"&chr(34)&" /t:"&chr(34)&"Now Playing..."&chr(34)&" /i:"&chr(34)&bar&chr(34)&" "&chr(34)&arti&"\n"&"''"&name&"''\n"&albu&chr(34)&" /a:"&chr(34)&"MediaMonkey"&chr(34)&" /r:"&chr(34)&"New Track"&chr(34)

This registers the application as "MediaMonkey" and creates a new event called "New Track" that you can see in the Growl UI after running the above. You should only have to run that once, then change the line to

Code: Select all
cmd = chr(34)&loc&"\growlnotify.exe"&chr(34)&" /t:"&chr(34)&"Now Playing..."&chr(34)&" /i:"&chr(34)&bar&chr(34)&" "&chr(34)&arti&"\n"&"''"&name&"''\n"&albu&chr(34)&" /a:"&chr(34)&"MediaMonkey"&chr(34)&" /n:"&chr(34)&"New Track"&chr(34)

and leave it that way. This tells Growl that the registered program is calling a notification for the event you created above, with the title of "Now Playing..." (which you can also change to whatever you want.

Cheers,
D

Re: Growl For Windows Notification 1.4

Post by fizzjob » Tue Sep 25, 2012 9:06 am

Just wanted to note that the script works with Snarl without any modifications as well.

Re: Growl For Windows Notification 1.4

Post by starsoccer » Sun Feb 19, 2012 9:29 am

I have the same problem. Also I am running 64bit if that could matter.

I fixed it by deleting the folder of scripts in roaming. if that doesnt work do the same thing for the scripts in program files

Re: Growl For Windows Notification 1.4

Post by reneald » Sun Feb 19, 2012 5:42 am

Never mind. I didn't read the last posts in this thread. Moved the files to the specified folder and it works now.

Re: Growl For Windows Notification 1.4

Post by reneald » Sun Feb 19, 2012 5:40 am

I am getting
Code: Select all
Error #=2147024894 -
File "W:\Users\USERNAME\AppData\Roaming\MediaMonkey\Scripts\Auto\Growl.vbs", line: 121, Column: 7

and
Code: Select all
Error executing script event. The system cannot find the file specified

everytime a new track begins. It started when I installed this extension, so I deleted it but the error messages keep on showing up. Then I installed the script again, figuring something went wrong the first time, but still the error messages keep showing up. Any suggestions on how to solve this?

Re: Growl For Windows Notification 1.4

Post by fizzjob » Wed Feb 08, 2012 10:47 am

Damn wrote:Just to let you know, in windows 7 64bit the installer seems to put the files into

C:\Users\Username\AppData\Roaming\MediaMonkey\Scripts\Auto
instead of
C:\Program Files (x86)\MediaMonkey\Scripts\Auto
Which causes script errors.

If you manually move the contents into the proper program files directory it works fine
I don't think that's Windows 7, I think that's more a MM4 issue. I've been playing around with it, but can't seem to get things to work without manually moving the files to the Program Files directory.

Re: Growl For Windows Notification 1.4

Post by MMuser2011 » Sun Jan 29, 2012 12:16 pm

Yep, I can confirm this! Is this 'by design'?

On my Win7 Ultimate I found a 'strange' security setting:
The subdirectories and files in the directory
Code: Select all
C:\Users\MyUserName\AppData\Roaming\MediaMonkey\Scripts

let
EVERYONE (and some other entries)
access the content. The \Scripts directory itself and every other directory in C:\Users\MyName\AppData\Roaming\MediaMonkey don't show this behaviour. Is it only my system?

Re: Growl For Windows Notification 1.4

Post by Damn » Sat Jan 14, 2012 7:04 am

Just to let you know, in windows 7 64bit the installer seems to put the files into

C:\Users\Username\AppData\Roaming\MediaMonkey\Scripts\Auto
instead of
C:\Program Files (x86)\MediaMonkey\Scripts\Auto
Which causes script errors.

If you manually move the contents into the proper program files directory it works fine

Re: Growl For Windows Notification 1.4

Post by Midnite » Thu Jan 28, 2010 10:12 pm

I was getting the same "Runtime Error #70" issue reported above. After doing all but editing the registry to try and figure out why this script no longer had permissions it had from when I installed it until tonight, I ran CCleaner and cleared the %TEMP% files. Fixed the issue. I hate windows :)

I hope this fix works for any others experiencing the problem.

I love the script. Thanks for writing it!

BTW
Windows 7 Professional 64-bit
MM v3.2.0.1294

Re: Growl For Windows Notification 1.4

Post by Erich T. Wade » Wed Dec 23, 2009 1:27 am

fizzjob wrote:
flashx_454 wrote:
fizzjob wrote:That line copies the album artwork to your %TEMP% folder. Are you using Vista or Windows 7? If so, are you running MM as Administrator? If not, MM may not have permissions to write to your %TEMP% folder.

I am using XP


Strange, I'm also running XP and not getting this.

Open up growl.vbs in a text editor and try changing this:

Code: Select all
If fso.FileExists(artw) Then
  fso.CopyFile artw,wsh.ExpandEnvironmentStrings("%TEMP%")&"\cover_growl.jpg"
  bar = wsh.ExpandEnvironmentStrings("%TEMP%")&"\cover_growl.jpg"

To this:

Code: Select all
If fso.FileExists(artw) Then
  fso.CopyFile artw,loc&"\cover_growl.jpg"
  bar = loc&"\cover_growl.jpg"

That'll write the album art into the script directory instead of the temp directory. Restart MM and see if the problem goes away or not.


I'm having the same problem running XP x64 pro (as admin). Interestingly, the above fix seemed to fix it for one session, after which the problem reappeared. (I've checked the version of the script installed in \scripts\auto, and it's still the modded version.)

I suspect the problem may be related to write permission on the folders -- \scripts\auto is read-only on my system, and for some reason gleefully changes it back to read-only after I manually make it writable. (I suspect that this is some sort of "security feature" in the OS, as all folders in "\Program Files (x86)" seem to share this behavior.) Doesn't explain why it worked at first -- maybe the write permissions were on for a set amount of time after installation? Then again, it didn't object just now when I created a new .bmp in the folder, so maybe I'm on a wild goose chase.

Any advice/things I can do to help track down this error? Thanks for making/supporting this script; it's really amazingly helpful.

Re: Growl For Windows Notification 1.4

Post by pkw115 » Sat Dec 12, 2009 11:51 pm

Fizzjob, I made the changes you suggested above and my ratings are now displayed. Many thanks for the help in allowing me to tweak the script the way I wanted it!!

Re: Growl For Windows Notification 1.4

Post by pkw115 » Tue Dec 08, 2009 9:30 am

Thanks for the reply Fizzjob, I'll give it a try.

Re: Growl For Windows Notification 1.4

Post by fizzjob » Mon Dec 07, 2009 4:20 pm

pkw115 wrote:Is this something I can turn on myself or would it require a new version of the script from you?

You can enable it yourself, if you want. I don't rate my music(!), so it's of limited interest to me.

The ratings are stored in the database as a numerical value, not as star ratings, so there's a bit of work to be done...

First off, insert the following down at the end of the .vbs file:

Code: Select all
Function TranslateRating(rating)
    Select Case rating
       Case 0
            TranslateRating = "0"
       Case 10
            TranslateRating = "½"
       Case 20
            TranslateRating = "*"
       Case 30
            TranslateRating = "*½"
       Case 40
            TranslateRating = "**"
       Case 50
            TranslateRating = "**½"
       Case 60
            TranslateRating = "***"
       Case 70
            TranslateRating = "***½"
       Case 80
            TranslateRating = "****"
       Case 90
            TranslateRating = "****½"
       Case 100
            TranslateRating = "*****"
       Case Else
            TranslateRating = "Unrated"
    End Select
End Function

Second, find the following line:

Code: Select all
cmd = chr(34)&loc&"\growlnotify.exe"&chr(34)&" /t:"&chr(34)&"MediaMonkey"&chr(34)&" /i:"&chr(34)&bar&chr(34)&" "&chr(34)&arti&"\n"&"''"&name&"''\n"&albu&chr(34)&" /a:MediaMonkey /r:"&chr(34)&"Now Playing"&chr(34)&","&chr(34)&"New Podcast"&chr(34)&" /n:"&chr(34)&"Now Playing"&chr(34)

...and modify it as seen below:

Code: Select all
cmd = chr(34)&loc&"\growlnotify.exe"&chr(34)&" /t:"&chr(34)&"MediaMonkey"&chr(34)&" /i:"&chr(34)&bar&chr(34)&" "&chr(34)&arti&"\n"&"''"&name&"''\n"&albu&"\n"&TranslateRating(rati)&chr(34)&" /a:MediaMonkey /r:"&chr(34)&"Now Playing"&chr(34)&","&chr(34)&"New Podcast"&chr(34)&" /n:"&chr(34)&"Now Playing"&chr(34)

Boom! Your ratings will appear underneath the album name. There are plenty of other details I pull from the database that I don't display, so you can pump as little or as much as you want to growlnotify. AFAIK, there's no way of sending graphics to growlnotify, so it's gonna be limited to ASCII text.

Re: Growl For Windows Notification 1.4

Post by pkw115 » Mon Dec 07, 2009 1:47 pm

fizzjob wrote:
pkw115 wrote:Fizzjob, Great script. I wonder if it would be possible for the track's rating to be displayed in the notification? Thanks.


Should be. The script already pulls that information, I just don't display it.



Fizzjob, Thanks for the reply. Is this something I can turn on myself or would it require a new version of the script from you?

Re: Growl For Windows Notification 1.4

Post by fizzjob » Mon Dec 07, 2009 12:52 pm

flashx_454 wrote:
fizzjob wrote:That line copies the album artwork to your %TEMP% folder. Are you using Vista or Windows 7? If so, are you running MM as Administrator? If not, MM may not have permissions to write to your %TEMP% folder.

I am using XP


Strange, I'm also running XP and not getting this.

Open up growl.vbs in a text editor and try changing this:

Code: Select all
If fso.FileExists(artw) Then
  fso.CopyFile artw,wsh.ExpandEnvironmentStrings("%TEMP%")&"\cover_growl.jpg"
  bar = wsh.ExpandEnvironmentStrings("%TEMP%")&"\cover_growl.jpg"

To this:

Code: Select all
If fso.FileExists(artw) Then
  fso.CopyFile artw,loc&"\cover_growl.jpg"
  bar = loc&"\cover_growl.jpg"

That'll write the album art into the script directory instead of the temp directory. Restart MM and see if the problem goes away or not.

Top