Find Protected 1.0 [MM2+3]
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.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
I like the idea of this, but I cant get it to work!
Getting the following error:
Any ideas?
I have got access right (admin on XP)
and the file is there!
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
I have got access right (admin on XP)
and the file is there!
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.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
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.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
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"?
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"?
Re: Find Protected 1.0 [MM2+3]
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.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Re: Find Protected 1.0 [MM2+3]
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!
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]
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
Any ideas?
-fk
Re: Find Protected 1.0 [MM2+3]
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.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Re: Find Protected 1.0 [MM2+3]
The system language is English.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.
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
-
- Posts: 23640
- Joined: Wed Aug 09, 2006 10:20 am
- Location: NJ, USA
- Contact:
Re: Find Protected 1.0 [MM2+3]
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.
Need help? Got a suggestion? Can't find something?
Please no PMs in reply to a post. Just reply in the thread.
Re: Find Protected 1.0 [MM2+3]
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.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Re: Find Protected 1.0 [MM2+3]
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.nohitter151 wrote:Why install the missing art script when MM already does that natively under Files to edit | Missing album art?
-fk