Yikes! My experience with AppleScript within widgets is that it's
really slow. If the things you want to do are doable with JavaScript
(which, they probably are), I would suggest that your time would be
better spent learning JavaScript rather than trying to wrangle
AppleScript.
That said, I'm not much of an AppleScripter, but I wonder if you
could assemble a JSON string in AppleScript, then eval() it in
JavaScript? (Info on JSON: http://json.org/)
Good luck!
-Andrew
On Jan 12, 2007, at 1/12/07 3:46 PM, Mark Delfs wrote:
Since I know virtually no javascript (yes, I'm learning bits and
pieces daily), I have taken to writing Applescripts, embedding them
inside the widget and telling the javascript to run the script. My
problem with this is that I have to write various scripts to do
various things (one of my widgets has 6 different simple
applescripts to do 6 different things--which I would like to write
in one concise script)--is there a way to write ONE applescript
that returns various items and just have the javascript read each
in as a variable when the applescript is executed? The way it seems
to work now is that it will just take the very last output of my
Applescript and bring that into the javascript code.
Thanks!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/dashboard-dev/email@hidden