Re: List to a text representation of that list (revisited)
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