News for hackers. Stuff that matters.
Re:JavaScript as an alternative to AppleScript on OS X Yosemite by jiggy2011 on Saturday June 07, 2014 @04:41PM (#7863032)
$ = Application;

Easy fix!

Re:JavaScript as an alternative to AppleScript on OS X Yosemite by angilly on Saturday June 07, 2014 @04:46PM (#7863043)
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 $."

Re:JavaScript as an alternative to AppleScript on OS X Yosemite by Touche on Saturday June 07, 2014 @04:53PM (#7863068)
Bridge = $;

$ = Application;

Re:JavaScript as an alternative to AppleScript on OS X Yosemite by nkozyra on Saturday June 07, 2014 @04:43PM (#7863036)
You've successfully hacked Javascript!