• 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: Detecting if text is styled
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting if text is styled


  • Subject: Re: Detecting if text is styled
  • From: ehsan saffari <email@hidden>
  • Date: Thu, 28 Nov 2002 07:52:06 -0600

I wrote:

> so the problem boils down to this: how to detect whether <<class ksty>> is
> exactly <<data styl>> or <<data stylbinary>>

here is the answer:

------------------
("<<" is option-\ and ">>" is option-Shift-\)
------------------
tell application "FileMaker Pro 4.0v3"
set p to cell "Text" as styled text
end tell

try
set pp to (p as record)'s <<class ksty>> as string
on error m
set m to m's text 12 thru -16
end try

if m = "<<data styl>>" then
display dialog "Plain Text"
else
display dialog "Styled Text"
end if
-----------------

cheers
ehsan
_______________________________________________
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.

  • Prev by Date: Newbie needs help...
  • Next by Date: Re: Applescript character conversion from PHP
  • Previous by thread: Re: Detecting if text is styled
  • Next by thread: Re: Detecting if text is styled
  • Index(es):
    • Date
    • Thread