• 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: Coercion of list to record
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Coercion of list to record


  • Subject: Re: Coercion of list to record
  • From: Axel Luttgens <email@hidden>
  • Date: Thu, 7 Feb 2008 16:19:35 +0100

Le 7 févr. 08 à 15:47, Bastiaan Boertien a écrit :

I know but you can also solve this problem as well. I don't use property name's of a record with spaces but if you do, Convert the spaces in the property name into "_" or just remove them and you problem is solved.

For every problem there is a solution and don't try to do something that applescript doesn't support. It speaks for it self for me.

And in fact, AppleScript has an escape mechanism which could prove useful for handling cases such as those considered by Skeeve:


set recordItems to {}
repeat with x from 1 to count theList by 2
set end of recordItems to "|" & item x of theList & "|:\"" & item (x + 1) of theList & "\"" as string
end repeat
set AppleScript's text item delimiters to ", "
set recordAsString to ("{" & recordItems as string) & "}"
set AppleScript's text item delimiters to ""
run script recordAsString


HTH,
Axel _______________________________________________
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: Coercion of list to record
      • From: Skeeve <email@hidden>
References: 
 >Coercion of list to record (From: "Robert R. Horning" <email@hidden>)
 >Re: Coercion of list to record (From: Christopher Nebel <email@hidden>)
 >Re: Coercion of list to record (From: Bastiaan Boertien <email@hidden>)
 >Re: Coercion of list to record (From: Skeeve <email@hidden>)
 >Re: Coercion of list to record (From: Bastiaan Boertien <email@hidden>)

  • Prev by Date: Re: Coercion of list to record
  • Next by Date: Re: Coercion of list to record
  • Previous by thread: Re: Coercion of list to record
  • Next by thread: Re: Coercion of list to record
  • Index(es):
    • Date
    • Thread