I have used that script as a model but have made lots of changes because my goal and the script's purpose are different. However, your suggestion starts with what I consider an unacceptable step:
Copy one or more playlists into an empty folder
There may be more than one playlist in the folder (or more likely, high level file on a flash drive). I want the user of the script to be able to select one file.
Background:
We have many several copies of our music library paired with a portable MM. (I'm aware of 8 copies, but we occasionally clone more.) The library and the portable MM are either in the same directory on a computer or top level directories on a flash drive. The library has the same structure everywhere but each instance has different high level qualifiers and drive letter. Each MM database points to its local music library.
We want a playlist created on any copy to be able to be imported into any other copy regardless of the high level part of the library's path. We do not need to create any tracks not found in the library - there should not be any - but we need an exact match on the path name excluding a variable amount of high order stuff. And actually, we don't even need to create a playlist in the target MM; just putting the list in Now Playing is sufficient.
Therefore, lots of stuff in the original script gets removed and lots of stuff gets changed. But for now that need to process a directory rather than a file is a problem.
If I cannot select a file withing MM I can probably write a script that runs outside MM, building a temporary file with the correct paths for the local MM and then (somehow) doing an "Open withe MdeiaMonkey" which puts the playlist in Now Playing. (That might actually be quicker.)
I have used that script as a model but have made lots of changes because my goal and the script's purpose are different. However, your suggestion starts with what I consider an unacceptable step: [quote]Copy one or more playlists into an empty folder[/quote]
There may be more than one playlist in the folder (or more likely, high level file on a flash drive). I want the user of the script to be able to select one file.
Background:
We have many several copies of our music library paired with a portable MM. (I'm aware of 8 copies, but we occasionally clone more.) The library and the portable MM are either in the same directory on a computer or top level directories on a flash drive. The library has the same structure everywhere but each instance has different high level qualifiers and drive letter. Each MM database points to its local music library.
We want a playlist created on any copy to be able to be imported into any other copy regardless of the high level part of the library's path. We do not need to create any tracks not found in the library - there should not be any - but we need an exact match on the path name excluding a variable amount of high order stuff. And actually, we don't even need to create a playlist in the target MM; just putting the list in Now Playing is sufficient.
Therefore, lots of stuff in the original script gets removed and lots of stuff gets changed. But for now that need to process a directory rather than a file is a problem.
If I cannot select a file withing MM I can probably write a script that runs outside MM, building a temporary file with the correct paths for the local MM and then (somehow) doing an "Open withe MdeiaMonkey" which puts the playlist in Now Playing. (That might actually be quicker.)