• 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: OS X: Styled text to plain text???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OS X: Styled text to plain text???


  • Subject: Re: OS X: Styled text to plain text???
  • From: Jason Bourque <email@hidden>
  • Date: Tue, 07 May 2002 07:31:42 -0400

Thanks, that is great. Gotto to love that chevron stuff.

The two strings I was comparing where not identical. I fixed that and now I
can compare Styled and plain text.



Thanks,

Jason Bourque
Co-Director Boston AppleScript Users Group




On 5/6/02 1:35 PM, "Arthur J Knapp" <email@hidden> wrote:

>> Date: Mon, 06 May 2002 09:32:08 -0400
>> Subject: OS X: Styled text to plain text???
>> From: Jason Bourque <email@hidden>
>
>> I am trying to compare two strings but one is styled and one is not so they
>> are never equal.
>
>> Can someone explain to me how to work with styled text?
>
>
> set myPlainText = "abc"
> set myStyledText to the clipboard --> assuming it has styled text
>
> set styled_record to myStyledText as record
> --
> --> {<<class ktxt>>:"abc", <<class ksty>>:<<data styl...>>}
>
> set plain_text to <<class ktxt>> of styled_record
> --
> --> "abc"
>
>
> if ( myPlainText = plain_text ) then ...
>
>
>
> { Arthur J. Knapp, of <http://www.STELLARViSIONs.com>
> <mailto:email@hidden>
> (*) Happy
> ( ) Sad
> ( ) Ambivalent
> ( ) Ubiquitous
> }
> _______________________________________________
> 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.
_______________________________________________
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: OS X: Styled text to plain text??? (From: Arthur J Knapp <email@hidden>)

  • Prev by Date: Re: More newbie queries: paths
  • Next by Date: Re: More newbie queries: paths
  • Previous by thread: Re: OS X: Styled text to plain text???
  • Next by thread: AsciiNumber & AsciiCharacter Handlers
  • Index(es):
    • Date
    • Thread