DefaultDirectories.ini (v2.1.43 onwards)

Torben, can you please confirm that the contents of the new DefaultDirectories.ini file should look something like this (note that this list is in alphabetic order!):

[DefaultDirectories] AddDirectoryBrowser=M:\music AddDirectoryTreeBrowser=M:\music AddPlaylistBrowser=C:\playlists AppendPlaylist=C:\playlists CartwallLoad=C:\cartsets CartwallSave=C:\cartsets DRS2006Import=c:\drs2006\database InsertFiles=M:\music OpenPlaylist=C:\playlists RunScript=c:\scripts SavePlaylist=C:\playlists SchedulerLoadList=C:\events SchedulerSaveList=C:\events SchedulerSelectFile=M:\music SchedulerSelectPlaylist=C:\playlists SchedulerSelectScript=c:\scripts SelectIcon=c:\mairlist\icons
… or is there now a different name in the first line?

Also, can you please confirm that the entries above represent ALL possible entries for ‘default directories?’

Finally, may I also politely suggest that the key names are tidied up and made more consistent? For example, there is currently CartwallSave and SavePlaylist—not very intuitive! I would suggest that the names are changed to the general format
<subobject, if any>
as in this sample:

[DefaultDirectories] BrowserDirectoryAdd=M:\music BrowserDirectoryTreeAdd=M:\music BrowserPlaylistAdd=C:\playlists CartwallLoad=C:\cartsets CartwallSave=C:\cartsets EventFileSelect=M:\music EventListLoad=C:\events EventListSave=C:\events EventPlaylistSelect=C:\playlists EventScriptSelect=c:\scripts IconSelect=c:\mairlist\icons ImportDRS2006=c:\drs2006\database PlaylistAppend=C:\playlists PlaylistInsertFile=M:\music PlaylistOpen=C:\playlists PlaylistSave=C:\playlists ScriptRun=c:\scripts

I think this would make the entries easier to find, and make the key names easier to guess if you can’t remember them ;). What do you think of this idea?

BFN
CAD

Let me please bring this thread back to the top, as someone ask a question about this feature lately.

I did a quick grep over the source code of v3, and these are the DefaultDirectories keys which are currently in use:

AddDirectoryBrowser
AddPlaylistBrowser
CartwallLoad
CartwallSave
DRS2006Import
InsertFiles
OpenPlaylist
RunScript
SaveDesktop
SavePlaylist
SchedulerLoadList
SchedulerSaveList
SelectIcon

I agree that the naming is rather inconsistent. Now that it’s in a config file of it’s own, I suggest that we make use of multiple sections:

[Playlist]
Load=...
Save=...
Append=..

Any thoughts?

Yes Torben, that does look like a good idea!

Would this be for V3.x (which I am not using yet) or V2.x?

BFN
CAD

OK, where shall this file reside?
I simply can’t get it working…

regards:
-Serge-

In the “config” folder, along with the other .ini files (you’ll find a lot of them there).

Cad, It think this makes only sense for v3.0. The stable release should only be changed if absolutely necessary (bug fixes etc.).

Unless I’m doing something fundamental wrong…

Nope, that does not work.
(And believe me, I use .ini files dayin-dayout. All my programs make use of it)

No really, I have no clue why it is not working, unless I blame it on Vista. Shall I try it on a XP machine?

regards:
-Serge-

Can you please post the file here so I can try it myself?

By the way, in the About dialog there’s a list with the corrent names and full path of all config files.

OK, here we go:

[DefaultDirectories] AddDirectoryBrowser=C:\Music AddDirectoryTreeBrowser=C:\mp3s AddPlaylistBrowser=C:\Playlists AppendPlaylist=C:\Playlists InsertFiles=C:\mp3s OpenPlaylist=C:\Playlists SavePlaylist=C:\Playlists

regards:
-Serge-

Any findings on this matter, Torben?

regards:
-Serge-

Sorry, not yet. I have been busy with some paperwork…

Serge: Are you using mAirList 2.x or 3.x?

BFN
CAD

I’m using 3.x

regards:
-Serge-

OK.

My example at the top of this thread was for v2.x. You are using v3.x, which does not support all the values which v.2x does (according to Torben’s grep listing above).

Specifically, in your file, you have two values which Torben says do not exist in v3:

AddDirectoryTreeBrowser
AppendPlaylist

I don’t know how Torben’s code works, but it’s possible that mAirList will stop reading the file beyond the first ‘invalid’ value?

I suggest you try removing those two values from your INI file and see if it makes a difference.

BFN
CAD

I agree with you Cad, but Torben threw me into this thread.
here’s where we came from:
http://forum.mairlist.com/index.php/topic,3608.0.html

so I should trust Torben that those defaults are (or should be) supported in 3.x as well…
I’m still investigating on mAirList 3.x and I’m a bit upset to see how few people support the 3.x development.
OK, the rule “never change a running system” always applies, but …

regards:
-Serge-

I have just tried it in v3.0, and it seems to work fine. I haven’t tried every single one, but those which I tested (e.g. InsertFiles, LoadPlaylist, …) were ok.

Damned!!!

I just tried it again an it seems to work except for SavePlaylist.
I poked around a bit and lo and behold, standard.mlt was overwriting the settings.
Especially the section…
Hmm, I wonder if it would maybe make sense to only use standard.mlt for this kind of functionality.
I mean use all current settings of the GUI and save it to this file.

regards:
-Serge-