• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: OSAX to Tokenize Record Field Names from List Items ???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: OSAX to Tokenize Record Field Names from List Items ???
      • From: Michelle Steiner <email@hidden>
References: 
 >OSAX to Tokenize Record Field Names from List Items ??? (From: Rick Gordon <email@hidden>)
 >Re: OSAX to Tokenize Record Field Names from List Items ??? (From: Luther Fuller <email@hidden>)
 >Re: OSAX to Tokenize Record Field Names from List Items ??? (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: OSAX to Tokenize Record Field Names from List Items ???
  • Next by Date: Re: OSAX to Tokenize Record Field Names from List Items ???
  • Previous by thread: Re: OSAX to Tokenize Record Field Names from List Items ???
  • Next by thread: Re: OSAX to Tokenize Record Field Names from List Items ???
  • Index(es):
    • Date
    • Thread