If you do not want to delete playlists in Plex, then you should use /D from the command line. someone elses playlists or a playlist of video files) Playlists that contains content outside of the music library (eg.The following playlist types will not be deleted: As a result all non-smart Plex playlists solely associated with a music library (defined within the script) will be deleted and replaced. In order to keep playlists between iTunes and Plex in sync, the script treats iTunes as the primary store of playlists and mirrors the content to Plex. This script allows you to (optionally) upload your playlists to Plex. Command line options to prevent exporting of playlists and uploading of playlists (useful if trying to merge multiple playlists).Delete existing playlists on Plex and upload new ones.Replace paths in a playlist with ones that can be accessed on by other users/machines/software (for example, repoint paths to a NAS).Optionally write out the playlists using Linux file path convention and with Linux newline support.Define playlists to be ignored (based on their prefix and/or whether or not they are a smart playlist).Export the playlists to any folder, including network drives.⚠️ This script can delete playlists previously stored in Plex: See the "Plex warning" section for more details. on a NAS or a shared drive on another computer) and upload them to Plex. It can also (optionally) adjust the paths of playlists to support remote drives (eg. delay 0.5, with the value of the delay set appropriately.A script which connects to iTunes and exports all playlists in m3u format. Additionally, the use of the delay command may be necessary between events where appropriate, e.g. Have a look at the try statement and error statement in the AppleScript Language Guide. The onus is upon the user to add any error handling as may be appropriate, needed or wanted. Note: The example AppleScript code is just that and does not contain any error handling as may be appropriate. If you want to use the example AppleScript code without assigning a keyboard shortcut for the Export Playlist… command, then in place of keystroke "e" using command down use: click menu item "Export Playlist…" of ¬ Otherwise, additional coding will be necessary. This example AppleScript code assumes you've already once selected the Where: and Format: and will use the default names in the Save As:, none of which are the same, and there are no playlists currently at the Where: that would interfere with the limited example AppleScript code. Then in iTunes select the first playlist on the Sidebar and then run the script from Script Editor. To further semi-automate the process, you can use a bit of AppleScript in Script Editor.Įxample AppleScript code: activate application "iTunes"Ĭhange repeat 1 times to the number of times you want it to repeat. It's easy to get into a rhythm, select the first playlist, then ⌘E > enter > down-arrow > ⌘E > enter > down-arrow > etc. This allows me to easily bring up the Save dialog box without having to navigate the menus, and I can then just use the keyboard to easily walk through saving one playlist after the other. ![]() To semi-automate the process I assigned a keyboard shortcut of ⌘E to the Export Playlist… in System Preferences > Keyboard > Shortcuts > App Shortcuts, as shown the image below. This then brings up a Save dialog box, e.g.: Normally to export a playlist in iTunes one would, e.g., select the target playlist in the Sidebar and then click: File > Library > Export Playlist… Just using iTunes by itself, I do not know of a way to export multiple playlists at the same time, as one can only select one playlist in the Sidebar at a time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |