Live data from Hacker News

JavaScript as an alternative to AppleScript on OS X Yosemite

developer.apple.com

1–10 of 126 posts

Re: JavaScript as an alternative to AppleScript on OS X Yosemite

#5
AppleScript contains some amazingly powerful APIs, but is nearly impossible to write. Having a Javascript (successor?) implementation is going to unleash its full potential. I could see it becoming much more widely used and supported by third party apps. This is wonderful.

In the same cycle that they release a brand new language, they begin the deprecation process for their (only?) other proprietary programming language in favor of an existing language. Pretty cool.

Re: JavaScript as an alternative to AppleScript on OS X Yosemite

#7
post #3

This makes me really happy. I kind've wish they'd used $ for what Application() is, though, to keep an analogous similarity with jQuery and the like.

$ = Application; Easy fix!

You've successfully hacked Javascript!

Re: JavaScript as an alternative to AppleScript on OS X Yosemite

#9
> Scripting additions (plugins for scripts) can be used to enhance the functionality of applications. The OS has a set of standard scripting additions available. These offer things like speaking text and user interaction dialogs.

app.say('This is exciting')

Re: JavaScript as an alternative to AppleScript on OS X Yosemite

#10
post #3

This makes me really happy. I kind've wish they'd used $ for what Application() is, though, to keep an analogous similarity with jQuery and the like.

$ = Application; Easy fix!

Not if you want to use the Obj-C bridge, though :)

"The primary access points for the Objective-C bridge are the global properties ObjC and $."

Post reply on HN