Find Protected 1.0 [MM2+3]

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

Postby trixmoto » Fri Mar 07, 2008 11:41 am

On line 77 "Protected" needs to be translated into Polish, I'd have thought.
Check out my scripts at trixmoto.net and subscribe to my RSS feed for updates.
Also check out my Uniface blog.
Get a free Dropbox account! :o

Image
trixmoto
 
Posts: 9703
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK

Postby sommo » Tue Apr 15, 2008 11:20 am

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!
sommo
 
Posts: 122
Joined: Thu Nov 08, 2007 9:48 am

Postby trixmoto » Tue Apr 15, 2008 3:07 pm

Does the error have a line number?
Check out my scripts at trixmoto.net and subscribe to my RSS feed for updates.
Also check out my Uniface blog.
Get a free Dropbox account! :o

Image
trixmoto
 
Posts: 9703
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK

Postby sommo » Tue Apr 15, 2008 5:23 pm

Error #13 - M$ VBS runtime error
Type mismatch 'FindProtected'
Line 1, Column 0
sommo
 
Posts: 122
Joined: Thu Nov 08, 2007 9:48 am

Postby trixmoto » Wed Apr 16, 2008 3:00 am

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".
Check out my scripts at trixmoto.net and subscribe to my RSS feed for updates.
Also check out my Uniface blog.
Get a free Dropbox account! :o

Image
trixmoto
 
Posts: 9703
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK

Postby vbfischer » Wed Jun 18, 2008 11:26 am

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/bb787870(VS.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

Postby vbfischer » Wed Jun 18, 2008 1:04 pm

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

Re: Find Protected 1.0 [MM2+3]

Postby trixmoto » Thu Jun 19, 2008 6:23 am

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.
Check out my scripts at trixmoto.net and subscribe to my RSS feed for updates.
Also check out my Uniface blog.
Get a free Dropbox account! :o

Image
trixmoto
 
Posts: 9703
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK

Re: Find Protected 1.0 [MM2+3]

Postby sommo » Sat Jun 28, 2008 12:27 pm

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!
sommo
 
Posts: 122
Joined: Thu Nov 08, 2007 9:48 am

Re: Find Protected 1.0 [MM2+3]

Postby fahking fk » Tue Dec 09, 2008 4:38 pm

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

Re: Find Protected 1.0 [MM2+3]

Postby trixmoto » Wed Dec 10, 2008 5:09 am

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.
Check out my scripts at trixmoto.net and subscribe to my RSS feed for updates.
Also check out my Uniface blog.
Get a free Dropbox account! :o

Image
trixmoto
 
Posts: 9703
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK

Re: Find Protected 1.0 [MM2+3]

Postby fahking fk » Fri Dec 12, 2008 12:04 am

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

Re: Find Protected 1.0 [MM2+3]

Postby nohitter151 » Fri Dec 12, 2008 12:26 am

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

Re: Find Protected 1.0 [MM2+3]

Postby trixmoto » Fri Dec 12, 2008 5:54 am

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.
Check out my scripts at trixmoto.net and subscribe to my RSS feed for updates.
Also check out my Uniface blog.
Get a free Dropbox account! :o

Image
trixmoto
 
Posts: 9703
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK

Re: Find Protected 1.0 [MM2+3]

Postby fahking fk » Sat Dec 13, 2008 10:25 am

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

PreviousNext

Return to Need Help with Addons?

Who is online

Users browsing this forum: Google [Bot] and 10 guests