I’d find it helpful to have a callback that’s something like:
procedure onPlaylistLoadFileDialogClose(playlistIndex : integer; filename : string);
If the user cancels the selection, the string would be empty (i.e. have zero length). The playlistIndex would be the X in the PLAYLIST X LOAD command (or perhaps more helpfully, it’s zero-based internal equivalent).
Cameron