1274 SDB.SelectFolder [#6056]

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: 1274 SDB.SelectFolder [#6056]

Re: 1274 SDB.SelectFolder [#6056]

by Owyn » Wed Oct 21, 2009 4:22 am

Verified in 1276. Thanks.

Re: 1274 SDB.SelectFolder [#6056]

by rusty » Tue Oct 20, 2009 11:25 pm

Fixed in 1276.

-Rusty

Re: 1274 SDB.SelectFolder [#6056]

by Owyn » Mon Oct 19, 2009 9:08 am

Created "C:\MMDATA\Reports" folder.
Exported OPML to that folder (did not test new folder in dialog).
Reran Export script. Default now used properly.

Re: 1274 SDB.SelectFolder [#6056]

by Ludek » Mon Oct 19, 2009 9:03 am

Ok, it seems to be related to Vista and to the user folders. Could you confirm that it is related only the the C:\User folders and that for e.g. E:\MMExports\OPML\ directory it works fine?

Re: 1274 SDB.SelectFolder [#6056]

by Owyn » Mon Oct 19, 2009 8:55 am

No change. I double checked that About shows 1274 instead of 1275 that I had been running.

Re: 1274 SDB.SelectFolder [#6056]

by Ludek » Mon Oct 19, 2009 8:43 am

Edit: Could you please test by using this MediaMonkey.exe: http://rapidshare.com/files/295052285/M ... y.exe.html
Thx.

Re: 1274 SDB.SelectFolder [#6056]

by Owyn » Mon Oct 19, 2009 8:36 am

Yep. Vista Home Premium SP2 (see signature for fulll details).

Re: 1274 SDB.SelectFolder [#6056]

by Ludek » Mon Oct 19, 2009 8:35 am

I cannot reproduce, but I see one reason: I use Win XP Pro 32 and you uses Vista or Win7 64x, don't you?

Re: 1274 SDB.SelectFolder [#6056]

by Owyn » Mon Oct 19, 2009 6:22 am

Code: Select all

ExportOPML.vbs
--------------
  ' Let user select the output path
  Dim path
  path = iniF.StringValue( "Scripts", "LastExportOPMLDir")

  path = SDB.SelectFolder( path, SDB.Localize( "Select where to export the OPML file."))
---------------

MediaMonkey.ini
---------------
[Scripts]
LastExportOPMLDir=C:\Users\Ian\Documents\
---------------
The default report directory definitely exists.

When I run the script the selection dialog starts with no directory selected.

Edit: Added screen shot.
Image

Re: 1274 SDB.SelectFolder [#6056]

by Ludek » Mon Oct 19, 2009 6:06 am

Owyn, Rusty, I cannot reproduce here with 1275.
'Export subscribed podcasts' script works fine for me and it remember the last used path also after restarting of MM.

Could you please re-test and tell me whether it is specific to a kind of path, e.g. network paths only?

Thx.

Re: 1274 SDB.SelectFolder

by rusty » Sat Oct 17, 2009 8:51 pm

Re: 1274 SDB.SelectFolder

by Owyn » Sat Oct 17, 2009 8:50 am

This problem can be seen using the standard script Tools->Scripts->Export Subscribed Podcasts

1274 SDB.SelectFolder [#6056]

by Owyn » Sat Oct 17, 2009 7:10 am

Code snippet.

Code: Select all

 ' Open inifile and get last used directory
  Dim iniF
  Set iniF = SDB.IniFile

  ' Let user select the output path
  Dim path
  path = iniF.StringValue( "Scripts", "LastDB_AuditDir")

  path = SDB.SelectFolder( path, SDB.Localize( "Select where to create the Audit Report."))

  If path="" Then
    Exit Sub
  End If

  If Right( path, 1)<>"\" Then
    path = path & "\"
  End If

  ' Write selected directory to the ini file
  iniF.StringValue( "Scripts", "LastDB_AuditDir") = path
  Set iniF = Nothing
Since at least 1270 this code no longer works. The correct selected path is stored in mediamonkey.ini but the last used folder is not selected by default by SDB.SelectFolder.

Top