• 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: String to multiple-item list coercion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: String to multiple-item list coercion


  • Subject: Re: String to multiple-item list coercion
  • From: "Arthur J. Knapp" <email@hidden>
  • Date: Fri, 27 Sep 2002 10:57:27 -0400

> Date: Thu, 26 Sep 2002 18:09:09 -0700
> Subject: Re: String to multiple-item list coercion
> From: Paul Berkowitz <email@hidden>

> On 9/26/02 11:41 AM, "Arthur J. Knapp" <email@hidden> wrote:
>
>> Testing various aspects of the above made me realize that one can do
>> without the << >> characters in the styled text to plain text conversion:

>> set styled_text to the clipboard -- assuming styled text on clipboard
>> set {text:plain_text} to styled_text
>> plain_text --> yup, plain text

>> Actually, this is far nicer than the "<<class ktxt>> ... as record" thing
>> because it doesn't error on plain text:

>> set { text : x } to styled_text -- x == plain text
>> set { text : y } to plain_text -- y == plain text


> But not, for some reason, for the
> Unicode-text-that-is-not-REAL-Unicode-but-is styled-text:

> In OS 10.2.1:
>
> set myPath to path to me as Unicode text
> set {text:plainTextPath} to myPath
> plainTextPath
> class of plainTextPath
> --> Unicode text


(sigh)... I give up. :(


Apple's attitude seems to be that everything should just upgrade to
allowing Unicode text, but in the mean time, it sure would be nice
if there was an "as plain text" coercion available so values in the
range 0000 to 007F could be safely used with "legacy" code.


{ Arthur J. Knapp, of <http://www.STELLARViSIONs.com>
a r t h u r @ s t e l l a r v i s i o n s . c o m
}
_______________________________________________
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.

  • Follow-Ups:
    • Re: String to multiple-item list coercion
      • From: Paul Skinner <email@hidden>
  • Prev by Date: Re: Adobe's lousy AppleScript implementations
  • Next by Date: Re: String to multiple-item list coercion
  • Previous by thread: Re: String to multiple-item list coercion
  • Next by thread: Re: String to multiple-item list coercion
  • Index(es):
    • Date
    • Thread