Archive for the ‘iTunes’ Category
AppleScripts need to be installed in your [username]/Library/iTunes/Scripts/ folder. But, in case you hadn’t noticed, the [username]/Library/ folder is hidden in OS X Lion. The theory is that since the ~/Library folder contains a lot of important configuration files Apple doesn’t want to give users the opportunity to inadvertently screw anything up. For the most part, I suppose this is a good idea. Whatever. However, AppleScripts for iTunes–among other sorts of plug-ins–have to be installed in the ~/Library folder by the user*.
To access the ~/Library folder, you can do a couple of things:
- The easiest method: Hold the Option key while clicking the Finder’s “Go” menu and “Library” will appear in the drop down menu. Select it to bring the ~/Library/ folder frontmost. Then navigate to ~/Library/iTunes/Scripts/ and copy your iTunes scripts to this folder. (As usual: if no “Scripts” folder is there then create one.)
- Geekier: Type “chflags nohidden Library” in Terminal while the prompt is at your home directory. This will make the ~/Library/ folder visible at all times.
- *Alternative: Install scripts in the [startup disk]/Library/iTunes/Scripts/ folder (which will make scripts available to all users on your machine) rather than the user’s [username]/Library/iTunes/Scripts/ folder. That Library folder is always visible and accessible in Lion.
If you need regular access, once the ~/Library/ folder is visible, drag it to the Finder sidebar or put an alias to it in the Finder’s toolbar.
Update: You can download this AppleScript applet that will make your ~/Library visible, using the command mentioned above. It takes less than a second to run it.
How many items on Kirk’s list of Essential iTunes Keyboard Shortcuts have you committed to memory?
AMG EZ Search v2.0 will use the tags of the selected or playing iTunes track as the basis for a Song/Artist/Album search at the allmusic website. This version accounts for changes in the AMG site’s search mechanism, can parse the stream title of a radio stream for tags if available.
Spins analyzes your iTunes library and displays your most played tracks arranged and ranked by a variety of “breakout” configurations, not just the number of track spins…show rankers and breakouts based on plays by Song, Artist, Album; rankings can be filtered by Rating, Genre, and Year; see rankings for the entire library or a single playlist. Spins can give you a live-updated snaphot of plays and simple play percentages…give you instant play data on the currently playing or selected track…
With the registered version of Spins you can:
- Quickly generate most-played track rankings from your iTunes library
- Easily configure up to four panels each displaying various track plays and ranking information
- Rank most played tracks, Artists, or Albums
- Rank track plays in the total library or in selected playlists
- Count unique track plays or pooled-from-the-artist’s-albums track plays
- Sort and filter track plays by Artist, Genre, Rating, and Year
- Display plays data for the current playing track or a selected iTunes track
- Display breakouts by Artists, Composers, Genres, Ratings, and Years
Updated in version 1.0.2 (current):
- fixes issues when switching between multiple libraries
- fixes bug displaying panels when selected playlist no longer exists in current library
- fixes issue whereby initial scan of library cannot complete
- will ignore radio stream play counts
- fixes bug with “No Limit” setting (registered version)
- added preference toggle to re-set panel options to defaults on each launch (registered version)
- added Sparkle framework to provide update notifications and installations
This version is a free upgrade for registered users of v1.x.x.
Give Spins a spin…and see what you’ve been spinning.
In the back of my mind I had a notion that something wasn’t quite right when I posted this on Sunday. Change Hidden iTunes Preferences, which now includes the ability to hide the new “Ping” buttons, had a problem hiding the old-style arrow links under certain conditions. It is fixed.
If your iTunes library is being shared on your local network, when you quit iTunes you will get an alert box which “reminds” you that
I suppose this is fine, and my wife will appreciate this if she’s watching my Mac’s media on our Mac mini TV, but if an AppleScript tells iTunes to quit Right Now, the alert requires user to click a button, which 1) may defeat the intention of an unattended quit, 2) could screw up a script if the user chooses “Don’t Quit”, and 3) is annoying in general. A preference to shut this off, which I couldn’t find, would be great.
UPDATE: A Correspondent informs me the Quit alert-while-sharing is not new. I have never seen it before, and do not see it on a machine running iTunes 10.0. But, whatever; it’s still a peeve.
Change Hidden iTunes Preferences v2.3 now includes an option to hide the “Ping” buttons for iTunes 10.0.1 or better.
This application will allow you to invoke hidden iTunes preferences:
- Show “Library” playlist
- Changing view setting is global
- Allow half-stars in ratings
- Hide “Ping” buttons
- Show/hide arrow links — to either search the iTunes Store or search your library
- Load complete iTunes Store preview before playing
- Create playlists for purchased song collections
- Play songs while importing or converting
- Create file names with track number
- Maintain grid view for Search results
- Option-click zoom button for Mini Player
- Show buttons horizontally
For iTunes 9 or better in OS 10.5 or better only.
The latest version of iTunes, 10.0.1, adds new Ping features, including a Ping button for a selected track. For those that find this, uhm, disturbing, Toggle Ping Buttons will set a hidden preference to toggle the Ping buttons off (or on again later). Remember: it only works with iTunes 10.0.1 or better. It has no effect on other versions of iTunes.
Been getting a lot of email from users of the Current Track to Twitter script. The bad news is, yes, the script no longer works. The reason is that as of September 1, 2010, the Twitter API no longer accepts Basic Auth authorization, which is what the script uses to access your Twitter account. Twitter now only accepts OAuth authorization, which isn’t exactly a good fit with AppleScript (it is ideal for web-based apps, however). Therefore, it is not likely I will be updating the script to use OAuth.
The latest update to Pages.app allows docs to be exported in the ePub format. ePub is one of the formats that can be read by the iBooks app. Now, in order for documents to get onto your iPhone/iPad you have to add them to iTunes. By hand? No! Automatically with a Folder Action! Below is a script which you should save to your /Library/Scripts/Folder Action Scripts folder. Attach the script as a folder action to a designated “ePub Export” folder, which you will create. Whenever you “Export…” a Pages doc to that “ePub Export” folder, it will automatically be added to iTunes’ Books library and eventually sync to your iPhone/iPad.
If your iTunes is set to “Copy files to iTunes Media folder when adding to library”, then you may want to delete the original from the “ePub Export” folder; just un-comment the (* *) section in the script by removing the (* and *) and saving the script.
on adding folder items to my_folder after receiving the_files repeat with i from 1 to number of items in the_files set this_file to (item i of the_files) tell application "Finder" if (get name extension of this_file) is not "epub" then return end tell tell application "iTunes" try add this_file (* -- if you have iTunes set to --"Copy files to iTunes Media folder when adding to library" -- then you might want to delete the original file... -- if so, remove comments from this block and -- use the UNIX commands below to delete the file do shell script ("rm -f " & quoted form of POSIX path of (this_file as text)) *) end try end tell end repeat end adding folder items to
More info on Folder Actions for iTunes is located here.