• 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: Arthur J Knapp <email@hidden>
  • Date: Mon, 06 May 2002 13:35:58 -0400

> 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.

  • Follow-Ups:
    • Re: OS X: Styled text to plain text???
      • From: Jason Bourque <email@hidden>
  • Prev by Date: Re: Choose from list
  • Next by Date: AsciiNumber & AsciiCharacter Handlers
  • Previous by thread: RE: Scripting Microsoft Outlook
  • Next by thread: Re: OS X: Styled text to plain text???
  • Index(es):
    • Date
    • Thread