Re: Informal poll
Re: Informal poll
- Subject: Re: Informal poll
- From: Emmanuel LEVY <email@hidden>
- Date: Sat, 14 Jun 2014 18:13:34 +0200
For those who wonder, here is a summary of what you can have Smile do about scripts and libraries.
-- load a library
add library [a string or a file]
-- make a new script object from a file
set theScript to make new script with properties {name:someName, path name:someFile}
-- make a new script object from a string
set theScript to make new script with properties {name:someName} with data someText
-- call a script's handler
tell theScript to set res to dosomethinggreat(someParams)
-- call a script's handler by name
tell theScript to set res to callhandler someParams subroutine someHandlerName
-- in Javascript
callJavaScript [a web window or a javascript object] script [a string or a file]
callJavaScriptFunction [a web window or a javascript object] parameters [a list of anything] subroutine [the JavaScript function's name]
Best,
Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden