On Jun 23, 2007, at 12:05 PM, Michelle Steiner wrote:
On Jun 22, 2007, at 5:54 PM, Luther Fuller wrote:
For starters, this works ...
on run
set aList to {"recName", 5}
set scriptText to "{" & (item 1 of aList) & ":" & (item 2 of
aList) & "}"
set aRec to do script scriptText
display dialog (recName of aRec)
end run
Not on my machine:
"script" in "to do script scriptText" is highlighted and the error
is 'Expected end of line, etc., but found "script".' When I try to
compile it.
You're right. I was using Smile, not Script Editor. I should have
said ...
on run
set aList to {"recName", 5}
set scriptText to "{" & (item 1 of aList) & ":" & (item 2 of aList)
& "}"
set aRec to run script scriptText
display dialog (recName of aRec)
end run
'run script' is in the StandardAdditions dictionary, but 'do script'
is only in the Smile dictionary.