2

I have installed os x 10.10 yosemite and I want to write a javascript to test an application automatically.

Is there any javascript examples which I can references now?

Ben Zotto
  • 70,108
  • 23
  • 141
  • 204
  • Yosemite is beta only. So its off-topic. – nicael Jun 11 '14 at 12:05
  • Take a look at http://tylergaw.com/articles/building-osx-apps-with-js – om-nom-nom Oct 28 '14 at 01:00
  • This article explains it and the author has many examples. http://tylergaw.com/articles/building-osx-apps-with-js – Richard Guay Nov 17 '14 at 06:31
  • I don't know if this question is still active, but here is a documentation from Apple: https://developer.apple.com/library/prerelease/mac/releasenotes/InterapplicationCommunication/RN-JavaScriptForAutomation/index.html#//apple_ref/doc/uid/TP40014508 – K. Biermann Sep 23 '14 at 23:14

1 Answers1

1

There is also a introductory video on the WWDC2014 site, but you have to be a registered developer to access it. That said it pretty much covers what is in documentation that was referenced in the other comments.

There is also a good discussion going on on Hacker News about it.

That said my first experiences of it have been pretty frustrating. The documentation is woeful (that said Applescript documentation has always been pretty shoddy)and it is very difficult to work out what's going on because of the cryptic error messages.

I even got one the other day which said Script too silly to run.

I hope that when Yosemite is released there will be more documentation / example code released but I wouldn't hold your breath.

dwkns
  • 2,369
  • 4
  • 22
  • 35