dougscripts.com

Exporting Info

January 22 2020 - 10:20 am

UPDATED: Make A Text List v6.1

For macOS 10.15 Catalina and later only. This script can assemble a list of tag information about the selected tracks (or tracks in the selected playlist) using a configurable pattern substitution string and provides the ability to export this formatted text to the clipboard, a text file or the Print Dialog.

Latest version:

  • Adds support for the Music app
  • Adds "Insert Only TABs" option to Token Field's Action Menu
  • Adds "Show [TAB] instead of real tab" option to accessory controls
  • Fixes issue when encountering tracks without location property
  • Fixes issue with date formatting
  • Performance enhancements

More information for Make A Text List v6.1 and download link is here.

December 12 2019 - 12:44 pm

UPDATED: Export Playlist As Text v4.0

For macOS 10.15 Catalina and later and the Music app only. This script will copy information about the tracks in the selected playlist to the clipboard thereby allowing you to paste it into a document of choice.

Latest version:

  • Accommodations for macOS 10.15 Catalina and the Music app
  • Performance and security enhancements

More information for Export Playlist As Text v4.0 and download link is here.

December 12 2019 - 8:12 am

UPDATED: Make A Text List v6.0

It only recently dawned on me that the TV app doesn't have any export features. So you can't export any kind of list of tracks in a playlist or library. Nor is there a Print menu, for that matter.

You realise, of course, that this means TV app users are being denied the ability to Generate Lists. Because Generating Lists is a thing that particular collectors and mavens do in earnest. Like, all the time. More time spent Generating Lists than viewing the media in the lists, actually.

There's nothing wrong with this. There's nothing wrong with this. There's nothing wrong with this. (A list! See?)

AppleScript has access to all the properties of all the tracks in the TV app. And this information can certainly be compiled and exported in a number of listy fashions. But each track has to be queried for data using one AppleScript technique or another, and any technique along those lines will be non-fast. Not slow. Just not fast. (The ITLibrary API has its own issues with the TV app: it be like, "what is the TV app?")

So then I thought: if one reeeally wants to Generate Lists from the TV app and if it's going to require a relatively non-fast effort to prepare a batch of track data anyway...why not give one the opportunity to customize the output?

Make A Text List is a lame name for a script applet that will apply a user-configurable pattern substitution string to a row of information from each selected track or each track in a selected playlist in the TV app. Kind of like how a template would work with a mail merge. Thus specific tags can be included or excluded as contextually required per media kind and user-entered text can be used for additional mark up.

Once the rows of data have been (non-fastly) assembled the full text can exported to a file, copied to the clipboard (in both cases as plain text) or printed/exported through a full-featured print dialog.

At this stage, Make A Text List is pretty basic and I expect a few fringe issues. Eventually I'd like it to support the Music app which still has some fairly flexible albeit somewhat limited export features.

More information—and I implore you to read the Read Me—and download for Make A Text List is here.

January 5 2018 - 11:01 am

Exporting Voice Memos

A Correspondent asked how to deal with Voice Memos when the Voice Memo track in iTunes is named using the text that was entered after recording it and its associated file is named using a date and time format. Specifically, he wanted to offload and archive some of the recordings but was concerned that the filenames were not sufficient to describe the contents of the file. Could the track name be transferred to the filename?

The script File Renamer is ostensibly for renaming a track's file in-place. But it can also be used to rename a copy of a file which can be saved to a user-chosen folder.

In this case, the Voice Memos have already been sync'd to iTunes from the iPhone. I've selected a single Voice Memo track in the screenshot, but batches are acceptable as well.

I originally named the Voice Memo "New Recording 3". But the filename of the selected track is something like "20180105 060425.m4a", indicating that I recorded it on January 5, 2018 a little after 6AM. File Renamer will create a copy of the file and name it "Voice Memo - New Recording 3.m4a" using the genre and name tags of the track, as well as some additional separator text. The original file remains unaffected.

BTW: I wasn't able to find a specific Voice Memos playlist in iTunes. (Was there ever one? I'm not a Voice Memos Guy.) So I created my own with a Smart Playlist matching all media where Media Kind is Voice Memo.

For more sophisticated offloading options, you may also want to try M3Unify.

June 24 2015 - 5:24 am

Script of the Day: Playlist Names to Text File

Playlist Names to Text File will export the names of the playlists in the selected Source to a text file. The Source is determined by whatever playlist is currently selected: if you have a device playlist selected, all its names will be exported; if you have an iTunes library playlist selected, then all iTunes playlist names will be exported.

More information and download is on this page.

Previous Scripts of the Day. Subscribe to my RSS feed or follow @dougscripts on Twitter to get daily "Script of the Day" notifications.

June 11 2015 - 6:34 am

Script of the Day: Make an EQ Preset Script

Make An EQ Preset Script will create a new AppleScript applet using data from a selected EQ preset. When that applet is run it will re-create the EQ preset you selected...in any iTunes (on a Mac, of course).

In the screenshot, the selected applet was created by the script, and the applet created the EQ setting:

This makes it easy to accurately share your EQ Presets with friends or make back-ups of your EQ Presets.

More information and download is on this page.

Previous Scripts of the Day. Subscribe to my RSS feed or follow @dougscripts on Twitter to get daily "Script of the Day" notifications.

June 2 2015 - 6:31 am

Script of the Day: Lyrics to TextEdit

Lyrics to TextEdit copies the text from the lyrics tag of the currently playing track--or if no track is playing, the selected track(s)--to a new TextEdit document. If a track's lyrics tag is blank then it will be skipped.

More info and download is on this page.

Previous Scripts of the Day. Subscribe to my RSS feed or follow @dougscripts on Twitter to get daily "Script of the Day" notifications.

May 13 2015 - 5:33 am

Script of the Day: Make PDF Booklet

Make PDF Booklet will create a PDF document containing tag info from the selected tracks (or every track from the selected playlist) and then add the PDF to iTunes and copy it to the playlist where the selected tracks reside.

Make PDF Booklet

As you may know, iTunes can manage PDF "booklets" as though they were tracks. Here are example PDFs made with the script using audio tracks and using TV Show tracks.

More info and download is on this page.

Previous Scripts of the Day. Subscribe to my RSS feed or follow @dougscripts on Twitter to get daily "Script of the Day" notifications.

November 14 2014 - 8:42 pm

Son of Latest Batch of Updates

Like last week, I hadn't gotten around to posting individual blurbs on all the updated stuff from this week (November 9-14). So, briefly:

Drop to Add and Give Info v3.0 - drop files onto this droplet and it will supply a Get Info-type interface to add basic tags to the tracks once they're added to iTunes. Better Yosemite support.

PDF Adder v5.0 - applet/droplet and PDF Service enable you to supply some basic tags to PDFs added to iTunes, the latter is a PDF Service workflow accessible from any app's Print Dialog. Yosemite support, minor tweaks.

Make PDF Booklet v3.0 - assists with creating lists of track data exported as a text-only PDF. Support for Yosemite.

This Tag That Tag v4.2 - copy, swap and append data between tags of selected tracks. Fixed a progress indicator that wouldn't indicate progress. I hate when that happens.

Delete Selected Files v2.1 - removes selected tracks and can move their files to the Trash or delete them immediately. Fixes a problem when canceling and progress would not cancel.

Drop to Add and Make Playlists v3.0- drop folders of media files onto this droplet and it will add the files to iTunes and create playlists for the tracks based on the names of the folders. Adds better support for Yosemite.

All HD and SD to Playlists v2.0 - creates two playlists containing, respectively, all the SD video tracks and all the HD video tracks in the library. Mostly just a maintenance update since last update in 2009.

Make An EQ Preset Script v3.0 - creates a new AppleScript applet using data from the selected EQ Preset. When that applet is launched it will re-create the EQ Preset in any iTunes (on a Mac). Handy way to archive EQ Presets. This is a major maintenance update, added better options in the applet for renaming.

Subscribe to the 30 Most Recent Scripts RSS or my Twitter feed @dougscripts to stay updated on script releases.

February 5 2014 - 10:30 am

NEW: Export Files From Playlists

Export Files From Playlists—playlists, plural—will export copies of the files of the tracks in a selection of playlists to a single user-selected folder.

More information and download is here.

Site contents © 2001 - 2020 (that's right: 2001) Doug Adams and weblished by Doug Adams. Contact support AT dougscripts DOT com. About.
All rights reserved. Privacy.
AppleScript, iTunes, iPod, iPad, and iPhone are registered trademarks of Apple Inc. This site has no direct affiliation with Apple, Inc.
The one who says "it cannot be done" should not interrupt the one doing it.