Guy Brooker wrote:
>Dashboard is really great ! How about starting a wishlist for future
>additions and changes ... Here are my thoughts for now
>
>1. an osascript object in javascript with methods like:-
>
>scriptObj = osascript.compile(textScript)
>scriptObj = osascript.compileScript(textScriptFilePath)
>scriptObj = osascript.load(scptFilePath)
While I've not had a chance to dig around yet, I don't think this would be too hard to do as a plugin. It'd basically be a wrapper around the venerable NSAppleScript, or the improved OSAScript class provided by Tiger's new OSAKit framework.
>Currently using widget.system("osascript...") is a little cumbersome.
An even better option would be to implement native application scripting support for Dashboard. This would require a bit more work, first to put an ObjC wrapper around the relevant chunk of Apple Event Manager API (about a dozen C functions), and then to put a high level JavaScript-based wrapper around that. My own appscript project has been doing this for Python, and while it's not quite finished it's at a stage now where it can be ported to other languages. It'd require an experienced JavaScripter to do this (I can help, but my JS is limited), but if anyone's interested in taking it on then post here or mail me off-list and we can discuss it further.
HTH
has
--
http://freespace.virgin.net/hamish.sanderson/
_______________________________________________
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
This email sent to email@hidden