Re: Searching for the equivalent of coercing to type "record"
Re: Searching for the equivalent of coercing to type "record"
- Subject: Re: Searching for the equivalent of coercing to type "record"
- From: Steve Cunningham <email@hidden>
- Date: Fri, 7 Mar 2003 18:19:37 -0500
>
Prior to the run script construction, they're just text. So...
>
>
set tagName to "myTag"
>
set valuename to "3.1415"
>
run script ("{+class usrf;:{\"" & tagName & "\", \"" & valuename &
>
"\"}} as record")
>
--> {|myTag|:"3.1415"}
>
>
For reasons I don't care to waste cycles on; this returns the tag in
>
pipes if your tag contains mixed uppercase and lowercase text.
>
>
Paul Skinner
Thanks, Paul. That sucks about the vertical bars, however. I have
realized that since the field names in my text file have spaces in them
also, I will not be able to turn them into record field names after all.
I'll file this away for the next time I have a file without mixed cases
and spaces in the name :-)
I learned something anyway.
Thanks to all who responded.
Steve
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.