dougscripts.com

Archive for the
‘Controlling iTunes’ Category

October 21 '15 - 1:21 pm
UPDATED: Now Where Was I? v2.0

Forgot to post about this a few days ago when I actually updated the script.

Now Where Was I? v2.0 is a simple applet that, when run while a track is playing or paused, will “remember” the current track and quit iTunes; when it is next run it will launch iTunes and play that track. If a track is set to “Remember playback position”, it will pick up playing from where it left off.

This latest version is generally updated for newer versions of iTunes and the Mac OS. More info and download is here.

June 17 '15 - 6:54 am
Script of the Day: A Space Between

A Space Between will play each track in the selected playlist and will wait (one might say insert but that’s technically incorrect) a user-set number of seconds between each.

A few extra seconds between tracks can provide a nice bit of atmosphere.

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 9 '15 - 7:22 am
Script of the Day: Quick Convert

Quick Convert will convert all or just the selected tracks of the selected Playlist using your choice of available iTunes encoders, restoring your Preferences-set encoder afterwards.

Quick Convert

Additionally, you can:

  • Choose to delete and/or Trash the original tracks and/or files
  • Copy all converted/imported tracks to a new playlist
  • Optionally save AAC encoded tracks as M4B “bookmarkable” and re-add the converted files to the Audiobooks (Books) library

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.

May 22 '15 - 6:42 am
Script of the Day: Play Random Album

Play Random Album will quickly scan your library, create a playlist of a complete single album choosen at random and begin playback of the playlist created. Works great when assigned a keyboard shortcut. This is one of my favorite scripts.

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 10 '15 - 9:04 am
Script of the Day: Needle Drop

Needle Drop plays each track in the selected iTunes playlist for a set time interval optionally starting at a set number of seconds into each track, beginning with the selected track. Handy for ‘scoping playlists.

Needle Drop

With the settings above, each track in the selected playlist will play for 30 seconds starting at the track’s 00:30 second mark; there will be a 00:05 second delay before the subsequent track plays. The latter two settings are optional.

More info and download is here.

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

April 1 '15 - 5:33 am
UPDATED: A Space Between v1.2

The few-seconds gap between tracks on recorded media is an artificial time. Devised to be just long enough to visually and sonically demarcate the tracks on a space-limited side of LP vinyl, the gap carried over to tapes, CDs and digital. It is unlikely that musicians playing a gig would pause such a short period of time before launching unto their next number…for every single number. Even so, we’re accustomed to the two-second rule when listening to recorded media. (And cross-fades? Utterly unnatural.)

A Space Between will play the tracks in the selected playlist and wait a user-entered number of seconds between tracks.

I’ve found that six to eight seconds of silence between tracks can be quite refreshing, especially between longer contiguous album tracks. But it adds something to the atmosphere of a mixed-track playlist, too.

How un-streamy.

This latest version of A Space Between is a maintenance update with a few minor performance tweaks.

Free stuff, dev ID-signed, more information and download is here.

March 29 '15 - 11:21 am
Play Selected Track and Cue Next

A Correspondent inquired about a script that would play a selected track in iTunes through to the end and then stop and then select the next track but not play it. In such a way, a playlist containing sequential musical cues required for a theatrical performance could be fired one track at a time, via the script, without a lot of stopping and mouse-clicking and swearing backstage (“Up yer scrim!”, “Purple behind!”).

This is such a script:

— Play Selected Track and Cue Next

tell application “iTunes”

— get the single selected track and play it

set theSelection to selection

if length of theSelection is 1 then

set theTrack to item 1 of theSelection

try

play theTrack with once

on error

## beep

return

end try

— the selected track is playing, now do some other stuff…

— get the playlist

set thePlaylist to (get view of front window)

— stash current fixed indexing value

set curfi to fixed indexing

— we want free indexing not fixed indexing

set fixed indexing to false

— compute next track’s index

set idx to (get index of theTrack)

if (idx = (count of tracks of thePlaylist)) then

set idx to 1

else

set idx to (idx + 1)

end if

— select the next track in the playlist

reveal track idx of thePlaylist

— restore fixed indexing to whatever it was before

set fixed indexing to curfi

end if

end tell

What you’d want to do is save this with Script Editor, named whatever you like, with a File Format of “Script” and put it in your [Home]/Library/iTunes/Scripts/ folder so it appears in iTunes’ Script menu.

Prepare a playlist and select its first track. When it’s time to actually play the track, don’t use any iTunes play controls; instead, fire the script. The script will play the selected track, figure out which track is next in sequence, select it, and then quit. iTunes will stop when the current track has finished by virtue of that with once parameter on the play command. When it’s time to play the next track, which is now the selected track, fire the script to play it and select the next track. And so on.

While assigning this script a keyboard shortcut will be convenient if you can keep a hand near the keyboard, something that could fire this via a physical remote control would be super boss. Under such circumstances, you may prefer—or it may be necessary—to save the script with a File Format of “Application”.

March 28 '15 - 10:54 am
UPDATED: I Hate That iTunes Done Chime! v3.0

Ripping CDs and converting audio files with iTunes isn’t something a lot of people do anymore. Ahh, to be free of the slow, ear-stabbing torture of the done-chime that sounds after every import or conversion.

Boodely-oop!

Sure, you could lower the volume on your machine everytime that boodely-oop! drives another tri-tone nail into your brain. Or you could replace the done-chime with some other sound or silence! with I Hate That iTunes Done Chime!

This applet will allow you to replace iTunes’ Tri-Tone done chime (“The Hellmouth’s Doorbell”) with a System sound, a user-chosen AIFF file, or no sound (actually, a sound file provided that is just one second of silence).

This script hadn’t been updated since 2009, during which time the additional security and permission considerations of the OS prevented it from working. The script now asks for permisson before it moves any files around.

Dev ID signed and free to use, more information and download is here.

March 12 '15 - 12:08 pm
UPDATED: Quick Convert v4.1

Quick Convert v4.1 will convert all or just the selected tracks of the selected Playlist using your choice of available iTunes encoders, restoring your Preferences-set encoder afterwards. Works with importing selected CD tracks, too.

Additionally, you can:

  • Choose to delete and/or Trash the original tracks and/or files
  • Copy all converted/imported tracks to a new playlist
  • Optionally save AAC encoded tracks as M4B “bookmarkable” and re-add the converted files to the Audiobooks (Books) library

This latest version restores the Edit menu, which I removed during some kind of fit of minimalism. Unfortunately, you kind of need that guy if you want cut, copy and paste shortcuts to work in the app. There are also some minor maintenance fixes.

Quick Convert is free, but payment in appreciation requested. More info and download is here.

October 6 '14 - 8:01 am
UPDATED: Needle Drop v5.0

Needle Drop v5.0 will play each track in the selected iTunes playlist for a set time interval optionally starting at a set number of seconds into each track, beginning with the selected track. Handy for ‘scoping playlists.

The latest version adds support for OS X 10.10 Yosemite and iTunes 12 and has other minor tweaks.

More information and download is here.

Site contents © 2001 - 2016 (that's right: 2001) Doug Adams and weblished by Doug Adams. Contact support AT dougscripts DOT com. About.
All rights reserved. Legal.
AppleScript, iTunes, iPod, iPad, and iPhone are registered trademarks of Apple Inc. This site has no direct affiliation with Apple, Inc.