Page 2 of 3

Posted: Fri Mar 07, 2008 11:41 am
by trixmoto
On line 77 "Protected" needs to be translated into Polish, I'd have thought.

Posted: Tue Apr 15, 2008 11:20 am
by sommo
I like the idea of this, but I cant get it to work!
Getting the following error:

Code: Select all

File [Path to script] cannot be opened:
The file is unavailable or you may not have permission to open access it
Any ideas?
I have got access right (admin on XP)
and the file is there!

Posted: Tue Apr 15, 2008 3:07 pm
by trixmoto
Does the error have a line number?

Posted: Tue Apr 15, 2008 5:23 pm
by sommo
Error #13 - M$ VBS runtime error
Type mismatch 'FindProtected'
Line 1, Column 0

Posted: Wed Apr 16, 2008 3:00 am
by trixmoto
Ooops! There was a problem with the installation package. Either download it again (I've fixed it) or simply open "Scripts.ini" in a text editor, find the [FindProtected] section and change the "Filename" to "Auto\FindProtected.vbs".

Posted: Wed Jun 18, 2008 11:26 am
by vbfischer
Out of curiosity, I was stepping through the code, trying to figure out how it determined what was protected or not. I have some m4p tracks that are protected and it wasn't picking t hem up.

So, I quickly got confused pretty close to the beginning:

Dim app : Set app = CreateObject("Shell.Application")
Dim fol : Set fol = app.Namespace(SDB.ApplicationPath)

I think I understand this. fol is now the folder where the application .exe is located, for example: c:\Program Files\Media Monkey.

Then this line kind of tripped me up:
Dim i : i = 0
For i = 0 To 34
If fol.GetDetailsOf(fol.Items,i) = "Protected" Then
Exit For
End If
Next

Found a reference for GetDetailsOf here:
http://msdn.microsoft.com/en-us/library ... S.85).aspx

basically, is it going through every item, and the 1st 34 columns trying to find one named "Protected"?

Posted: Wed Jun 18, 2008 1:04 pm
by vbfischer
Ohh.. ok, I get it.

PLayed around with PowerShell, and figured out it was the columns in Explorer you were trying to find. The "Protected" column. And *.m4p's don't show that as being protected... Ok, I understand..

Thanks.

Re: Find Protected 1.0 [MM2+3]

Posted: Thu Jun 19, 2008 6:23 am
by trixmoto
Yes, that's exactly what it's trying to do, it's trying to find an Explorer column called "Protected", and then check this column for each track.

Re: Find Protected 1.0 [MM2+3]

Posted: Sat Jun 28, 2008 12:27 pm
by sommo
I would just like to say a thank you trixmoto, for this addon!
This is one of the reason why I use MediaMonkey!
It is really helpful and I do use it :)
Keep up the good work & Happy coding!

Re: Find Protected 1.0 [MM2+3]

Posted: Tue Dec 09, 2008 4:38 pm
by fahking fk
Installed the script. Ran it, scanned the library, found no protected files when I know there are many. Nothing in the Files to Edit node.
Any ideas?
-fk

Re: Find Protected 1.0 [MM2+3]

Posted: Wed Dec 10, 2008 5:09 am
by trixmoto
Is your operation system language different from English? If so you might need to open the .vbs file in a text editor and translate the "Protected" string.

Re: Find Protected 1.0 [MM2+3]

Posted: Fri Dec 12, 2008 12:04 am
by fahking fk
trixmoto wrote:Is your operation system language different from English? If so you might need to open the .vbs file in a text editor and translate the "Protected" string.
The system language is English.
I have run the scan numerous times and still no dice. (nice script by the way)
I also installed the Missing Album Art script, ran the scan, and came up empty.

It is a puzzlement.
-fk

Re: Find Protected 1.0 [MM2+3]

Posted: Fri Dec 12, 2008 12:26 am
by nohitter151
Why install the missing art script when MM already does that natively under Files to edit | Missing album art?

Re: Find Protected 1.0 [MM2+3]

Posted: Fri Dec 12, 2008 5:54 am
by trixmoto
I'm not sure, but I think the "Files To Edit" node lists tracks which don't have any artwork tags. My "Missing Album Art" script looks at artwork tags which link to external files and checks that the files exist, listing any tracks which have broken links.

Re: Find Protected 1.0 [MM2+3]

Posted: Sat Dec 13, 2008 10:25 am
by fahking fk
nohitter151 wrote:Why install the missing art script when MM already does that natively under Files to edit | Missing album art?
I installed the Missing Art Script when the Find Protected Script didn't work as a test. Since neither script seems to be working with my Library than something must be awry.

-fk