• 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: List to a text representation of that list (revisited)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: List to a text representation of that list (revisited)


  • Subject: Re: List to a text representation of that list (revisited)
  • From: kai <email@hidden>
  • Date: Tue, 26 Apr 2005 04:22:20 +0100


On Mon, 25 Apr 2005 19:00:05 -0700, Michelle Steiner wrote:

On Apr 25, 2005, at 3:16 PM, Stan Cleveland wrote:

on run var
    {name:"blah", parts:{{1, 2}, {stuff:{pi, 1.618, missing value}}}}
    return text 2 thru -1 of paragraph 2 of (var as text)
end run

--> "Can't make «script» into a string."

Precisely - unless something else is at work:

http://www.seanet.com/~jonpugh/JonsCommandsDocs.html#scriptcoercions

However, the above form results in an entire script being returned as text. To obviate the need for subsequent text manipulation, it's cleaner to isolate required values using a script object - something like this:

--------

script s
	{name:"blah", parts:{{1, 2}, {stuff:{pi, 1.618, missing value}}}}
end script

s as string
--> "{name:\"blah\", parts:{{1, 2}, {stuff:{pi, 1.618, missing value}}}}"


--------

For more info about Jon's Commands - including scripting examples:

http://www.seanet.com/~jonpugh/JonsCommandsDocs.html

---
kai
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Finder producing path error
  • Next by Date: Re: Safari "do javascript" busted?
  • Previous by thread: Re: List to a text representation of that list (revisited)
  • Next by thread: Foo Bar
  • Index(es):
    • Date
    • Thread