View Issue Details

IDProjectCategoryView StatusLast Update
0004944MMW v4Framework: Scripts/Extensionspublic2008-11-28 12:07
Reporteruser_DaleAssigned To 
PrioritynoneSeverityminorReproducibilityalways
Status resolvedResolutionwon't fix 
Product Version3.1 
Summary0004944: Artists.Count returns incorrect number
DescriptionnumAlbums = theSongList.Albums.Count
numArtists = theSongList.Artists.Count
MsgBox("numArtists "&numArtists & Vbcrlf & "numAlbums "&numAlbums)

When I put the above in a script which is run whenever the node changes, It always reports numbersrelevant to the PREVIOUS node instead of the new one.

It also reports the artist count incorrectly sometimes

- It seams that it counts the Album artist and Artist - so if 1 track is in the node with an artist of "Sammy Davis" and an Album Artist of "Various Artists", it will report 2.

- this should be seperated into two properties - artists and album artists (or alternatively, only report the artists number and disregard the album artists number).
Additional InformationI have attached my viewMode script which intended to use this.
The released version only adds a right click menu to the nodes so you can set default view modes for each node. - But this attached version will give you a message box each time you change nodes withing the library node and you will see the incorrect number reports.

relevant code is between
TagsNo tags attached.
Attached Files
ViewMode.vbs (9,457 bytes)
Fixed in build

Relationships

related to 0003823 feedbackrusty Album view hyperlinks should change views 

Activities

jiri

2008-11-28 12:07

administrator   ~0015232

Well, these properties work this way, as needed e.g. for Export scripts. In case you need somewhat different functionality, it's better to write it yourself in VBScript (in order to keep MM COM interface reasonably simple).