Skip to main content
Known Participant
October 29, 2008
Question

[AS] Making an xCode app with Javascript?

  • October 29, 2008
  • 3 replies
  • 540 views
This might be a little bit off topic, but is it possible to build an xCode application that uses Javascript to drive InDesign/Photoshop/Illustrator etc? I've made numerous Applescript apps that easily pass data from the app's UI to InDesign, but I don't know any javascript and it does not appear that xCode has a basic template to use javascript (xCode 2.5).
Would you be able to write an Applescript xCode app to pass off javascript inside the Applescript script?
What's the state of scripting for CS4 also? Did I read that Adobe wants javascript to be the default scripting language?
This topic has been closed for replies.

3 replies

Inspiring
October 29, 2008
You probably won't be able to call js directly -- it's a proprietary engine<br />being used. But you can do it via "do script".<br /><br />-- <br />Shane Stanley <sstanley@myriad-com.com.au>
Kasyan Servetsky
Legend
October 29, 2008
P.S. As far as I remember I was playing with Brige and InDesign in xCode and had to mix JS and AS because Bridge supports JS only.
I spent a lot of time, the code was quite elaborate and curiously enough it worked. But it was very interesting and fun.
Kasyan Servetsky
Legend
October 29, 2008
>This might be a little bit off topic, but is it possible to build an xCode application that uses Javascript to drive InDesign/Photoshop/Illustrator etc?

Yes, I did it. I was able to mix AS and JS in a quite a complex way, send parameters, make an interface in the Interface Builder, compile a stand alone application. It was in CS2, when InDesign didn't support UI in JS.