Compiling Embedded Scripts in Leopard (OS 10.5.1)
Posted: Sat Jan 05, 2008 5:19 pm
Since upgrading to Leopard, embedded scripts do not seem to compile correctly? Two very simple examples are shown below:
In both cases, if the code is compiled in Script Editor, and then copied and pasted as an embedded action, and NOT recompiled, they work. Any attempt to compile in Indigo 2.0.9 fails with the following error message:
Error script error: Expected “end” or “end tell” but found unknown token.
Any thoughts on what's happening?
Jim
- Code: Select all
tell application "iTunes"
play
set sound volume to 100
end tell
- Code: Select all
set primaryState to brightness of device "Outside Garage Lights (Primary)"
set secondaryState to brightness of device "Outside Garage Lights (Secondary)"
if not (secondaryState = primaryState) then
set brightness of device "Outside Garage Lights (Secondary)" to primaryState
end if
In both cases, if the code is compiled in Script Editor, and then copied and pasted as an embedded action, and NOT recompiled, they work. Any attempt to compile in Indigo 2.0.9 fails with the following error message:
Error script error: Expected “end” or “end tell” but found unknown token.
Any thoughts on what's happening?
Jim