Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



That's easy to do on your own though:

   var $ = Application;


$ = 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 $."


Bridge = $;

$ = Application;


You've successfully hacked Javascript!


Could there be any reasonable situation where one might want to load jQuery within this environment, though?

(Although, I suppose, you could use another var for jQuery, such as, uh, 'jQuery' ...)


jQuery is a DOM manipulation library, it is not useful to script OS X apps.

...unless one of them exposes a HTML DOM to the scripting layer, now that I think of it.


Scripting a web browser, perhaps? :)

    tell document to write "hello world"




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: