I'm a Javascript programmer, doing much of my coding at work in a Windows Script Host environment, writing scripts to accomplish various repetitive tasks. I...
... Not built-in, but you can read in a source file and eval() it, which gives you the same thing, ie: the source file is evaluated in the same context as the...
Hi, ... The problem here is that I'm using the system's AEPrint calls, and somewhere along the way Apple decided to truncate long hex strings (happens with ...
... Thanks, Mark. I've been reading into this. It looks like when Apple "took over" the "AEGizmo" code stuff that they never intended for their version to...
I've figured something out, and wanted to share: SD has a preference setting for "path to me", causing that AppleScript command to refer to the document file...
I've been using a text file containing every jsosa object, method, and property that I am aware of; as an "aid to memory". It doesn't explain what things do,...
I've made an archive of a clippings folder, and put it into my public iDisk thingy: http://homepage.mac.com/admiralnovia/FileSharing1.html It is a work in...
// Proposed changes and additions to the JavaScript Library file // embedded in the JavaScript OSA component. // I have yet to create a non-trivial jsosa...
A quick thought: How hard would it be to create special notation for accessing the ._types and ._constants objects? I was thinking of a double underscore...
Hi, ... Okay, I'll look into something like this. Thanks also for the proposed code. I've filed it all in my bug tracking system that that I can integrate it...
... Thanks Mark. I know (assume) that your freeware projects are not at the top of your priorities, which is perfectly OK. The 2.0 version of JSOSA is so...
So there's this cool unix-shell thingy called "defaults" that I've just become aware of. I've thrown together the following object-wrapper as an example of...
Hi Folks, I got a email recently from a user asking if there is an Intel version of javaScript OSA. This made me realize that I had not released the final ...
Hi Folks, I've posted JavaScript 2.0.1 to the JavaScript OSA web site. This version has been available as part of Script Debugger 4 for some time. You can...
I'm running a script via terminal using: osascript -lJavaScript filename.js but I can't seem to be able to output any text to the terminal. Core.message is...
Hi, ... The problem here is the osascript tool. There is a 'log' AppleEvent for this purpose, but osascript does not seem to respond to it. Testing from...
Ah, ok..: var Test = "Hello World"; MacOS.appSelf().do_shell_script("echo " + Test); Seemed to do the trick. Would be nice to just have Core.Write() or ...
Hi Steve, Instead of JSOSA, you may want to consider using a Java based JavaScript engine: For example... ...
John Love-Jensen
eljay@...
Jan 4, 2007 6:54 pm
517
I initally tried rhino before I found JSOSA - but it didnt appear to be able to interact with apple events. Do you know if it can? ... JavaScript ... ...
... I do not know. I presume it does not, given that it is Java based and runs in a JVM. (Not that running in a JVM makes it impossible to interact with AE....
John (Eljay) Love-Jen...
eljay@...
Jan 5, 2007 3:25 pm
519
Hi, ... JavaScript OSA's ability to generate AppleEvents is its unique feature. JavaScript OSA uses the Spider Monkey (Mozilla's C JavaScript implementation)...
Which is the *exact* reason I'd rather use JSOSA. Having apple event support is killer. Being new to the mac world, I'm surprised that OSA (specifically ...
Hi, ... That's probably a subject for an entire book. The OSA (Open Scripting Architecture) predates Windows Scripting Host and was a very good idea, though...
Hi Folks, I'm cross posting this message to all the LNS Mailing lists, so I apologize if you see it more than once. I've begun a blog to document my LNS...
Hi Folks, Here's a tech note explaining how to get the 10.4 Script Editor to open JavaScript OSA scripts: http://www.latenightsw.com/blog/?p=10 Cheers -Mark ...