• 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 17:01:22 +0100

Le 7 févr. 08 à 16:26, Skeeve a écrit :

Axel Luttgens wrote:
And in fact, AppleScript has an escape mechanism which could prove useful for handling cases such as those considered by Skeeve:
Okay... So let's give you another (pathological) case:

set theList to {"is | allowed","no"}

[...]
Yes! I know this is really pathological. But these pathological cases tend to occure. And when they occure, you will spend hours searching for the reason for the failure of your script.


But have you tried to create such record in SE?
You would end with something like this:

	set R to {|is \| allowed|:"yes"}

That is, for inserting a vertical bar in a label, that vertical bar must be escaped (see the ASLG, pp 44-45).
Why would you expect "run script" to automagically accept as input something that obviously needs special provision?



More important: You also prooved Chris right, because the pain is now increasing!


I'm not sure Chris was considering "run script", which is an official way for compiling/running text as a script... ;-)

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>)
 >Re: Coercion of list to record (From: Axel Luttgens <email@hidden>)
 >Re: Coercion of list to record (From: Skeeve <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