Re: OSAX to Tokenize Record Field Names from List Items ???
Re: OSAX to Tokenize Record Field Names from List Items ???
- Subject: Re: OSAX to Tokenize Record Field Names from List Items ???
- From: Luther Fuller <email@hidden>
- Date: Sat, 23 Jun 2007 13:00:26 -0500
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.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden