• 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: Searching for the equivalent of coercing to type "record"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Searching for the equivalent of coercing to type "record"


  • Subject: Re: Searching for the equivalent of coercing to type "record"
  • From: Paul Skinner <email@hidden>
  • Date: Fri, 7 Mar 2003 19:12:24 -0500

Steve,
Actually the pipes are the solution to the spaces in your file names. They allow spaces in variable name. That's what they're for. I was just surprised to see them pop up uninvited with the mixed-case variable name that I chose.

On Friday, March 7, 2003, at 06:19 PM, Steve Cunningham wrote:

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

Paul Skinner
_______________________________________________
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.

References: 
 >Re: Searching for the equivalent of coercing to type "record" (From: Steve Cunningham <email@hidden>)

  • Prev by Date: Re: Parsing emails to this group for unsupported characters
  • Next by Date: Re: Move message to another mailbox behaves erratically?
  • Previous by thread: Re: Searching for the equivalent of coercing to type "record"
  • Next by thread: Re: Searching for the equivalent of coercing to type "record"
  • Index(es):
    • Date
    • Thread