dougscripts.com

September 6 2009 - 8:21 pm

Target QuickTime Player by application id

If you've got a script that needs to target QuickTime Player in Snow Leopard you probably really want to target "QuickTime Player 7". Otherwise, if you target "QuickTime Player" the QuickTime Player X app will run and it doesn't have the AppleScript Goodness like QTP7. However, if the script also has to run in Leopard, you have to target "QuickTime Player"--without the "7". But you don't need to write two scripts.

In OS 10.5 and later you can target an app by its application id. I remember seeing that in the AppleScript Release Notes for 10.5 thinking "Hmm. Now how can I use that" and never really thought of anything. Until I needed to access QTP in both 10.5 and 10.6.

This tell block:

tell application id "com.apple.quicktimeplayer"
	-- do something in QuickTime Player
end tell


...will target "QuickTime Player" in OS 10.5 and "QuickTime Player 7" in OS 10.6. The application id is the same for each, so it makes no difference what their names are. And the AppleScript architecture is virtually the same in both operating systems. (Remember that "QuickTime Player 7" is an optional install either during installation or from the "Optional Installs" folder on your installation disc.)

"QuickTime Player X" is a drastically different version of the player app and scripts written for QTP7 will not play well with it. However, it is scriptable to a modest extent. Its application id is "com.apple.QuickTimePlayerX" in case you need to target QTPX specifically.

September 6 2009 - 10:17 am

A Taste of Music Publishing

If you want to get an idea of what music publishing is like--and how it is not like the recording industry--read this NYT article that profiles Martin Bandier, chief executive of music publisher Sony/ATV. The article's accompanying photo may be all you need to see. And this: So it’s come to pass that after decades of playing second fiddle to the much bigger and brighter stars in the industry’s recording business, music publishing is on a roll. It is, as its executives like to say, a business of pennies and nickels, but that small change generates $3 billion in annual revenue, throws off enviably predictable streams of cash and has caught the eye of private equity firms and large institutional investors who are snapping up catalogs of stars like Frank Sinatra and Madonna.

September 5 2009 - 8:01 pm

NMPA Sues Motive Force

Motive Force LLC is behind LyricWiki. From an August 27, 2009 article in Ecommerce Journal: "The suit against LyricWiki [by the National Music Publishers Association] also states that the site "knowingly assist[s] and induce[s] third-party software developers to distribute copies of lyrics from Plaintiff's Songs to consumers' computers and personal media player." However, earlier this month [LyricWiki's] Sean Colombo published a letter on the LyricWiki API Developers Google Group telling developers that licensing agreements with big music publishers meant that the company could no longer add programmatic access to LyricWiki's collection."

Music publishers have waited way too long to do this and it'll be the whole RIAA thing all over again. The music publishing business may be bigger profit-wise than the recording business (and after all, before recorded music, publishing was "The Music Industry") so they've got time and resources to seriously entrench on this.

September 5 2009 - 2:35 pm

LyricWiki API Blocking SOAP?

I haven't seen anything definitive, but over the past couple of days SOAP calls to LyricWiki.org's API are being refused with a "Transport error". It's possible the API is down or that it is flat-out blocking SOAP calls. This affects the ability of the Lyrics Via LyricWiki script to function correctly.

Updated: Yes, The LyricWiki API is no more.

September 2 2009 - 10:55 am

UPDATED: Lyrics via LyricWiki v2.1

Lyrics Via LyricWiki v2.1 addresses some changes in LyricWiki page formatting.

August 28 2009 - 2:56 pm

Updated a Handful

Nothing to do with Snow Leopard--what a relief, eh? I've updated seven scripts today:

These seem to be the most popular scripts that are affected by the "none/all" issue introduced in iTunes 8.2. There may be a few others, but I haven't gotten email feedback on those nor have I run across a problem with any other scripts I use regularly. But if you ever get a error like this:

...then let me know.

August 27 2009 - 10:36 am

Snow Leopard's QuickTime Player Duality

Speaking of Optional Installs, to get the AppleScript goodness of QuickTime Player you may have been used to, QuickTime Player 7 will need to be installed from Snow Leopard's Optional Installs. QuickTime Player 10.0 is the default install in /Applications/, but its AppleScript innards are radically different (some would say severely lacking) from previous versions. So for legacy purposes, you'll need QTP7. If you currently have QuickTime Pro, QTP7 is installed automatically in /Applications/Utilities/. Otherwise, it's an optional install.

August 27 2009 - 10:33 am

More on Rosetta Optional Install

Macworld's Jason Snell has written up a great review of Snow Leopard. With Regard to the Rosetta installation I mentioned earlier he opines: "I can only assume that making Rosetta optional is an attempt by Apple to goad users to upgrade their apps and to shame developers who still haven’t recompiled their apps to run on Intel chips. But given that most everyday users have no idea which of their apps are Intel-native and which are PowerPC, this seems unnecessarily harsh."

August 27 2009 - 7:19 am

(Apple)Script Editor in Snow Leopard

I know I'm going to be repeating this a lot: as of Mac OS 10.6 the Script Editor application has been renamed AppleScript Editor and has been relocated from the /Applications/AppleScript/ to the /Applications/Utilities/ folder.

Also, Rosetta, which allows PowerPC-compiled applications and AppleScripts to run on Intel Macs, is an optional install. Most AppleScripts on this site are either Intel-compiled or Universal Binary, but some older scripts may not run without Rosetta (especially if you had downloaded older versions of them or those that I never got around to updating as Universal Binary). So when performing your installation of Snow Leopard it's probably a good idea to include Rosetta.

August 24 2009 - 10:27 pm

Join Together v5.4 Released

Join Together automates the process of joining the files of selected iTunes tracks together with QuickTime and exporting them as a single AAC Music or Audiobook file/track. Optionally, you can then create a "chapterized" audio file of the exported AAC file with pointers to the individually joined tracks.

Version 5.4 of Join Together provides compatibility with Mac OS X 10.6 Snow Leopard, addresses issues with multiple libraries, and has minor GUI and performance enhancements.

More information and download is here.

Site contents © 2001 - 2026 (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.