Find Protected 1.0 [MM2+3]

Download and get help for different MediaMonkey for Windows 4 Addons.

Moderators: Peke, Gurus

trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

On line 77 "Protected" needs to be translated into Polish, I'd have thought.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
sommo

Post 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!
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

Does the error have a line number?
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
sommo

Post by sommo »

Error #13 - M$ VBS runtime error
Type mismatch 'FindProtected'
Line 1, Column 0
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post 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".
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
vbfischer
Posts: 20
Joined: Thu Feb 07, 2008 8:26 am

Post 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"?
vbfischer
Posts: 20
Joined: Thu Feb 07, 2008 8:26 am

Post 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.
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Re: Find Protected 1.0 [MM2+3]

Post 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.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
sommo

Re: Find Protected 1.0 [MM2+3]

Post 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!
fahking fk

Re: Find Protected 1.0 [MM2+3]

Post 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
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Re: Find Protected 1.0 [MM2+3]

Post 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.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
fahking fk

Re: Find Protected 1.0 [MM2+3]

Post 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
nohitter151
Posts: 23640
Joined: Wed Aug 09, 2006 10:20 am
Location: NJ, USA
Contact:

Re: Find Protected 1.0 [MM2+3]

Post by nohitter151 »

Why install the missing art script when MM already does that natively under Files to edit | Missing album art?
MediaMonkey user since 2006
Need help? Got a suggestion? Can't find something?

Please no PMs in reply to a post. Just reply in the thread.
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Re: Find Protected 1.0 [MM2+3]

Post 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.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
fahking fk

Re: Find Protected 1.0 [MM2+3]

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