HI.
I have built an XCode Applescript application that uses do script to trigger a compiled jsxbin that is locatd on a shared server.
What I would like to do to make the application totally standalone, and have the javascript contained in the xcode app itself. I know I can add strings in the resources folder, and I have tried to call them like:
on clicked theObject
tell application “Adobe InDesign CS5”
do script “hi.strings” language javascript
end tell
end clicked
where the file “hi.strings” file is a strings file in the application Resources directory. The strings file simply contains a single javascript line "alert(“hi”);
But have you considered using JSTalk (http://jstalk.org/) instead? Note that it won’t run on my machine, so I can’t tell you anything else about it, except for the fact that it exists.
You will have to excuse me, but I am more a Javascript coder, so I dont know what you are referring to with the last post. Could you explain more, or give me an example?
That last reply was most helpful. Just needed to put the ‘path to me as text’ in its own brackets, and renamed my Javascript file to ****.js and all works well.