Archive for August, 2012
I was inspired by this recent article by Dr. Drang on using TextExpander to insert the URL of Safari’s front document wherever you’re entering text. There might be some benefits to being able to get current information in iTunes with a TextExpander AppleScript snippet or two. Or, as I describe below, three.
In case you don’t know, TextExpander is a typing shortcut tool for the Mac whereby you enter a little abbreviated text and a predefined batch of text is inserted where you’re typing. One of its amazing features is its ability to fire AppleScript snippets the same way. TextExpander can’t accommodate hulking huge AppleScripts but it does allow for some pretty flexible ’scripting.
Before I get to the AppleScript part, here’s how to set up TextExpander:
I think I’ll take the day off! Macworld reviews TrackSift as a Mac Gem and awards it four mice. Thanks!
I’ve been meaning to post this for the record. Shane Stanley has written up How Mountain Lion Changes the Rules for AppleScript at TidBITS. He explains how scripts and AppleScript applications can be saved in an uncompiled state. If you distribute or system manage AppleScripts and develop on Mountain Lion you really should be aware of these changes.
The latest version of Dupin, the iTunes duplicates manager, fixes a couple of bugs that cropped up in v2.5 as a result of some minor inconsistencies between Snow Leopard and Mountain Lion operating systems. New in version 2.5.1:
- Improves compatibility with OS X 10.8
- Fixes UI glitch in Re-Playlist window
- Fixes errant track analysis in Re-Playlist under Snow Leopard
- Fixes issue which could cause crash during Consolidate History under 10.8
- Fixes issue whereby ratings may not be displayed correctly after Consolidate History
More information is available on the Dupin product page.
As I mentioned previously, some scripts from this site when downloaded to OS X 10.8 may not pass Gatekeeper Security when set to the “Mac App Store or Developer ID” setting (the default Gatekeeper setting). To over-ride Gatekeeper settings, Control-click/Right-click the script in the Finder and choose Open from the contextual menu, then allow the script to be opened.
However, for a small number of scripts, even this may not work. You may see an OSStatus error message and the script will still be unable to run.
It appears to occur with a few .app scripts, but not all.
I’ll try to catch these scripts (and if you run into one, let me know) and update them. In the meantime, the fix is to temporarily lower your Gatekeeper Security settings to allow apps from anywhere to launch. Once the script is launched, you can restore your Gatekeeper settings.
PITA, I know.