global osc
----------------------------------------
--
----------------------------------------
on startMovie
osc = xtra("OSC").new()
osc.setDestination("127.0.0.1", 5500)
end
----------------------------------------
--
----------------------------------------
on stopMovie
osc = void
end
----------------------------------------
-- forward "put" calls to MessageWindow.app
-- (alternatively overwrite "trace")
----------------------------------------
on put (val) -- ,...
args = []
repeat with i = 1 to the paramCount
args.add(string(param(i)))
end repeat
osc.send(["/msg", args])
end
-- test
on test
put "Hello"
put [#a:23]
put _system.EnvironmentPropList
put "hello", 23, "world"
end