dougscripts.com

October 22 2013 - 8:00 pm

Apple Releases iTunes 11.1.2

iTunes 11.1.2 adds support for OS X Mavericks, also released today.

October 22 2013 - 3:51 pm

Mavericks and These AppleScripts

For the most part the most recent versions of AppleScripts from this site which ran well under Mountain Lion should run fine under Mavericks.

Over the past few months, while Apple was releasing Developer Previews, I would often hear from Correspondents who had deployed one or more DPs that some scripts would not work. Invariably, however, the problem would be fixed in the next DP (filed a few bug reports myself that I saw fixed). But, as I mention whenever a new OS comes out, I can't possibly test all the scripts on the site. So, if you run across something unusual while running scripts in the release version of Mavericks then let me know.

I'm sure that over the next few weeks there'll be caveats and fixes aplenty to make.

October 22 2013 - 3:35 pm

OS X 10.9: AppleScripts and Accessibility Control

With OS X 10.9 Apple takes security more seriously than it ever has. In this regard, Apple has added an additional level of security for apps that access the Accessibility API via "System Events". Here's how that new level of security may affect the way you use some AppleScripts downloaded from this site.

First of all: Some of my script applets (the ones with user interfaces) cannot run effectively while iTunes is in full screen mode. This is because only one of them, iTunes or the script, can be frontmost. So, when these scripts are launched they will detect and alert you if iTunes is in full screen mode.

To do this the script targets "System Events" to check for an accessibility property of the iTunes user interface indicating whether or not full screen is on. "System Events" is in the purview of Accessibility. If you've ever used GUI Scripting—to script key codes for example—you've had to set "Enable access for assistive devices" in the Accessibility pane of System Preferences. Well, as of OS X 10.9, this is no longer a global setting and must be set on a per-app basis.

(more…)

October 18 2013 - 8:59 am

UPDATED: Search-Replace Tag Text v3.5

Search-Replace Tag Text v3.5 performs a search-and-replace on the text in your choice of tag (Song Name, Show, Artist, Album Artist, Album, Composer, Comments, Genre, or Grouping) in the selected tracks or all the tracks in the selected Playlist. Features case sensitivity and whole word match options and dry run preview.

This new version stores the dry run setting between launches, has some additional minor tweaks and is ready for Mavericks.

More information and download is here.

October 17 2013 - 7:07 pm

AirPlay Scripting Workaround

As previously noted, you can't do this without getting -1728 errors:

tell application "iTunes"

set apDevices to (get AirPlay devices)

end tell

But you can do this:

tell application "iTunes"

set apDevices to (get a reference to AirPlay devices)

-- see?

log (get name of apDevices)

-- or

repeat with aDevice in apDevices

log (get aDevice's name)

end repeat

-- or

repeat with aDevice in AirPlay devices

log (get aDevice's name)

end repeat

end tell

That's if you need to do that.

October 17 2013 - 7:27 am

UPDATED: Track Down Purchases v2.2

Track Down Purchases v2.2 will examine each track in the entire iTunes library—or a selection of tracks—for items purchased from the iTunes Store (audio, video, and books) and then sort them by either the purchaser's name or account ID into discrete playlists, eg: "Purchased by Tom Ryan" or "Purchased by tomryan@email.com".

This latest version changes the name of each playlist created (prefixing it with "Purchased by") so that they'll sort together and also fixes an issue with misreading account ID data that produced garbled text in the playlist names.

More info and download here.

October 3 2013 - 8:16 pm

iTunes 11.1.1 Available

Apple has released iTunes 11.1.1 with bug fixes for podcast management and iTunes Extras display and a helping of stability fixes. Looks like you can once again delete old podcast episodes.

The AirPlay bug mentioned below has not been fixed.

September 23 2013 - 12:12 pm

iTunes 11.1 Breaks Some Airplay scripting

[UPDATE: iTunes 11.1.2 addresses and fixes this issue.]

The latest version of iTunes breaks some scripts I posted when Airplay scripting was introduced back in the Spring.

Specifically, an error will be generated doing something as simple as this:

tell application "iTunes"

set apDevices to (get AirPlay devices)

end tell

Come on. It's gotta be a bug, right? You can still get properties of AirPlay devices and set the current AirPlay devices property by device name:

tell application "iTunes"

set apDevices to (get name of AirPlay devices)

--> {"Computer", "Doug's AirPort Express"}

set current AirPlay devices to AirPlay device "Computer"

end tell

Waiting to see how this evolves.

September 21 2013 - 10:20 am

NEW: Multi-Media Items Edit

For reasons not yet clear, as of iTunes 11.1, multi-item editing is no longer possible when a track selection contains mixed media kinds, audio and PDF for example. Kirk explains the matter here.

The script Multi-Media Items Edit provides basic tag editing for a selection of tracks of any media kind.

Wondering why your favorite tag or option isn't included? Just keeping it simple, friend-o.

September 18 2013 - 1:01 pm

iTunes 11.1 with iTunes Radio Available

Apple has made iTunes 11.1 available to download today just ahead of the iOS 7 release. iTunes 11.1 sports iTunes Radio, which you may or may not think is the greatest thing since MP3s (I'm not exactly thrilled with it, but I think most people will like it).

iTunes Radio is 'scriptable to a degree and I'll have more on that later.

Site contents © 2001 - 2024 (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 be interrupting the one who is doing it.