Advanced Report 6.4 - Updated 24/06/2014

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 »

The CSS file is copied to your report path (H:\tempo\images\report.css for you) and this is the copy that should be opened when this button is clicked. Can you please confirm...

1) The above CSS file exists in this location.
2) Notepad is in this location: %windir%\system32\notepad.exe.
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.
guermantes
Posts: 22
Joined: Mon Oct 03, 2005 6:58 am

Post by guermantes »

I can confirm both 1 and 2.

I cleaned out my h:\tempo directory.
Started MM.
Created a report.
Everything fine and report.css created in \images subfolder.
But same error when trying to edit css after this.

Since the error message mention 'permission denied' I checked the file attributes for report.css and it is only set to archive, neither read-only nor hidden is activated.
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

If you hit Start, Run and type...

%windir%\system32\notepad.exe H:\tempo\images\report.css

...into the command line, what happens?
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.
guermantes
Posts: 22
Joined: Mon Oct 03, 2005 6:58 am

Post by guermantes »

... report.css opens in notepad....

I guess problem-solving had been easier if it didn't.. :-(
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

Well all my script does is the equivalent of that. The error message seems to be saying that the script has been denied permission when requested access to the file system. Is it possible this is a security issue? Do you have an anti-virus or malware blocker which might be blocking this script from accessing your file system?
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.
guermantes
Posts: 22
Joined: Mon Oct 03, 2005 6:58 am

Post by guermantes »

There it is. In my ZoneAlarm logs it shows up as a blocked spawn process. Mediamonkey.exe is prevented from accessing notepad.exe.

I know my way around my firewall pretty well but I can't find out how I can specify an exception rule so that to allow mediamonkey to access notepad. I allowed program interaction, aloowed it to access my computer generally but nothing helps.

Perhaps I will just go ahead and edit the report.css in notepad manually... rather than turning off my firewall....
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

Yeah, manually opening notepad is probably the simple option! :)
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.
MusicATL
Posts: 4
Joined: Thu Aug 31, 2006 5:40 pm

Character Formatting on Hosting Service?

Post by MusicATL »

Hello - A quick question for you. If I access the AdvancedReport index.html from my local machine, it displays great. But if I upload it all to a hosting service such as Lunarpages and access it from there, it displays with strange square characters everywhere except for those characters which are part of links (as if UTF-8 is not specified).

However, this does not happen with the standard MM HTML reports (e.g. Track Listing) or AdvancedReportModify...

Any quick suggesetions? This musts be something simple I'm not doing right...do I need to edit the index/CSS file to specify a particular character formatting?

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

Post by trixmoto »

You could try putting this lines in the <head> section of the html file...

Code: Select all

<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
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.
MusicATL
Posts: 4
Joined: Thu Aug 31, 2006 5:40 pm

Character Formatting: I found the problem

Post by MusicATL »

Hello again -

I discovered the problem: It seems that AdvancedReport writes its output html file in Unicode encoding.

On the other hand, the standard report script included in MM (e.g. Report Track List (HTML)) and AdvancedReportModify all produce their output html files with ANSI encoding.

That is what was causing the problem: my hosting service (lunarpages) seems to serve up the ANSI html files properly, but the Unicode file produced unreadable characters in a browser.

If I open the html file produced by AdvancedReport in an editor, and then do a Save-As, by default it will prompt me to save it with Unicode encoding. If I change this to ANSI and hit Save, then I upload this to the hosting service, the problem is solved. I tried putting lines as you suggested in the <head> section of the html file, but that didn't seem to help as the file itself is unicode encoded.

So my question: would it be possible to edit the .vbs script and include additional syntax to force ANSI encoding on the output files?

Or, better yet, might it be possible (as a future enhancement) to include an option in the Advanced Report Settings dialog to enable the user to explicitly select Unicode or ANSI encoding?

Thanks for your help!
MusicATL
Posts: 4
Joined: Thu Aug 31, 2006 5:40 pm

Character Formatting: Solutions

Post by MusicATL »

Here's one way of solving the problem:

To force AdvancedReport to output ANSI files rather than Unicode, I edited the AdvancedReport.vbs as follows:

Find:
Set fout = fso.CreateTextFile(href, True, True)

Replace With:
Set fout = fso.CreateTextFile(href, True, False)

The last T/F governs the output format, True=Unicode, False=Ansi.

However, per my earlier suggestion, I still tend to think that it would still be nice to have a setting in the Report Preferences Dialog where the user can easily select Unicode or Ansi for the output. What do you think?
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

Unicode support was only added in this last version, after many people requested it! The next version will have an option to switch it off though.
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.
MusicATL
Posts: 4
Joined: Thu Aug 31, 2006 5:40 pm

Thanks!

Post by MusicATL »

Trixmoto - just wanted to say thanks for your help in the Unicode issue, and to say that AdvancedReport is EXCELLENT.

I've read through the suggestions people have made, I look forward to your next release. A suggestion I would add to the list of ideas:

How about a preference selection that would enable the Album List that appears for each Artist to be sorted by Year (rather than Alphabetical)? If I add year to the Album mask, it seems it appears only when viewing the individual album (with the tracks listed underneath), rather than when viewing an artist (and the albums listed underneath.

Again, thanks for an excellent script.
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

New version (4.0) has all of the requested features and options (except filters) added, as far as I'm aware. I have not added filters because this would involve a major rewrite of the way the script works. The changes I have made include...

- Added option to control ASCII or Unicode output
- Fixed CSS not available for edit before report has been run
- Fixed report images and CSS overwritten by defaults
- Added "Top" links to artist and album, in single file mode
- Added separate artist and album heading styles
- Added option to apply album mask to artist list
- Added option to create track details as links to the music files
- Added option to create report as a frame set
- Added option to sort albums by year
- Added option to only generate new images

Please remember to provide feedback! :D
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.
tommae88
Posts: 126
Joined: Thu Jul 14, 2005 10:38 pm
Location: minnesota, US

Post by tommae88 »

hmm, i'm having a MediaMonkey vbscript runtime error error reported on line 551 and col. 6, i have the same exact error on the ARModify script, its the fout.WriteLine line, i have AdvancedReport 4.0 and MM 2.5.4.978 (I have the latest version of ARModify too.) it says it is an invalid procedure call or argument =/, i would love it if i could get this cleared up so any help would be appreciated as well
Post Reply