Re: Detecting if text is styled
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.