«Evaluates the contents of the clipboard as a script
on runClipboard ()
«the user highlights some text, the macro copies it to the clipboard
«calls this script, we evaluate it
«then the macro pastes it back into the text
local (appname, s)
appname = sys.frontmostApp ()
Frontier.bringToFront () «force the cliboard to be converted
s = evaluate (clipboard.getValue (stringType))
msg (s) «show result in Frontier's main window
clipboard.putValue (string (s)) «put result back on the clipboard
sys.bringAppToFront (appname)
return (true)
This page was last built on Sat, Aug 16, 1997 at 6:40:36 PM. You can download the current set of sample scripts from our FTP site. Dave |