' 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.
Cogito cogito ergo cogito sum. (Ambrose Bierce)
I drink therefore I am. (Monty Python)
Vista 32bit Home Premium SP2 / MM3.2.1.1297 Gold / Last.Fm 1.0.2.22 / IE8
Dell Inspiron 530 (1.8 Core2 / 2GB)
Skin: Vitreous Blue
Scripts: Add/Remove Playstat|Advanced Duplicate Find & Fix|Album Art Tagger|Backup|Batch Art Finder|Calculate Cover Size|Case&Leading Zero Fixer|DB_Audit|DB_Clean|DB_Schema|Event Logger|Genre Finder|Lyricator|Magic Nodes|MM2VLC|Monkey Rok|MusicIP Tagger|PUID Generator|RegExp Find & Replace|Right Click for Scripts|Scriptreloader|SQL Viewer|Stats(Filtered)|Tagging Inconsistencies
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?
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.
Cogito cogito ergo cogito sum. (Ambrose Bierce)
I drink therefore I am. (Monty Python)
Vista 32bit Home Premium SP2 / MM3.2.1.1297 Gold / Last.Fm 1.0.2.22 / IE8
Dell Inspiron 530 (1.8 Core2 / 2GB)
Skin: Vitreous Blue
Scripts: Add/Remove Playstat|Advanced Duplicate Find & Fix|Album Art Tagger|Backup|Batch Art Finder|Calculate Cover Size|Case&Leading Zero Fixer|DB_Audit|DB_Clean|DB_Schema|Event Logger|Genre Finder|Lyricator|Magic Nodes|MM2VLC|Monkey Rok|MusicIP Tagger|PUID Generator|RegExp Find & Replace|Right Click for Scripts|Scriptreloader|SQL Viewer|Stats(Filtered)|Tagging Inconsistencies
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?