Hi All,

I read the following in the RunRev Newsletter:

Active Scripting

A long standing feature of Revolution on Mac OS X has been the ability to easily execute AppleScript using the alternate language variant of the do command. This is can be extremely useful because Applescript is supported by many Mac OS X applications for external scripting and automation. For example, you can instruct the Finder to open a window to the startup-disk with something like:

local tApplescript
put "tell application" && quote & "Finder" & quote & return after tApplescript
put "activate" & return after tApplescript
put "make new Finder window to startup disk" & return after tApplescript
put "end tell"
do tApplescript as "applescript"

Up until now, there has been no analogue for this feature on Windows – however, with 2.9 comes the ability to use any Window Active Scripting Languge in the alternate language variant of do. At first glance this may not seem like a particularly useful feature, until you realize most active scripting languages allow easy creation of OLE/Automation objects.

For example, it is really easy to control iTunes using VBScript. The following simple code snippet will start the current song in iTunes playing:

local tVBScript
put "Dim iTunesApp" & return after tVBScript
put "Set iTunesApp = CreateObject(" & quote & "iTunes.Application" & quote & ")" & \
return after tVBScript
put "iTunesApp.CurrentTrack.Play()" after tVBScript
do tVBScript as "vbscript"

---------------------------------------------------------

My question is:

Does it also support JavaScript? As in:

 do tJavaScript as "javascript"

Thanks a lot
All the Best
Dave











_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to