Back in November, I wrote about the growing concern in the Mac community that Apple might be abandoning AppleScript. The occasion was the virtual removal of AppleScript support from the iWork apps (Keynote, Numbers, and Pages). At the time, I stressed that Mac users should remain calm, that this was nothing new, that the level of AppleScript support in any given app had always ebbed and flowed from release to release.
Looks like we've just had another ebb and flow.
The latest update of Numbers reintroduces AppleScript support in a big way. While Apple could have taken an iterative approach, reintroducing a few commands here and there, it chose instead to go whole-hog: The entire suite of scripting terminology originally supported by Numbers in the 2009 edition of iWork has returned.
This means that, if you have Numbers scripts you used with that 2009 version, most of them should (in theory) now work with Numbers 3.1; those scripts may require tweaks, though, because some features of Numbers itself have changed.
Apple has also added a few new scripting features to Numbers 3.1, such as the ability to identify the active sheet. Numbers' new AppleScript support has been organized into a suite of scripting terminology labeled Numbers '09 Compatibility Suite, signaling that even more scripting enhancements may be on the way for Numbers-specific features. (I've posted a complete rundown of the AppleScript support in Numbers on my website.)
Unfortunately, it does not appear that either of the other iWork apps — Pages or Keynote — have yet received the same infusion of AppleScript support. Apple's stated reason for removing AppleScript support from the original iWork '13 apps was that they'd been redesigned from the ground up (in large part to achieve feature-parity with the iOS versions), and some features weren't ready in time for that initial release last fall. At the time, Apple committed to making significant improvements to the apps within six months and to reintroducing some features. That list of enhancements included AppleScript improvements in both Numbers and Keynote. (I hope Pages is on their agenda, too.) Looks like the time has come to start fulfilling that promise.
What's it mean?
Reading into this latest Numbers release, we can perhaps glean some insight into Apple's strategy for the future of both iWork and AppleScript.
First, despite what Mac users may sometimes think, Apple listens. Mac users vocally expressed frustration about the removal of important and widely used automation features, and Apple heard and responded with action. Second, Apple appears committed to making the iWork apps true productivity apps. Third, Apple is still investing in AppleScript. Reintroducing AppleScript support in Numbers wasn't trivial. The fact that engineering resources were invested in that effort speaks volumes.
Sign up for CIO Asia eNewsletters.