• 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: Kai Edwards <email@hidden>
  • Date: Wed, 27 Nov 2002 04:03:33 +0000

on 27/11/02 3:01 am, I wrote:

> I'm afraid it fails OMM, too. Is there any reason why this failure couldn't be
> exploited to test for styled text? Perhaps something like this:
>
> ====================
>
> on IsStyledText(txt)
> try
> txt as record
> true
> on error
> false
> end try
> end IsStyledText
>
> ====================

Nah - silly idea! This appears to have possibilities for checking the
clipboard directly, though:

======================

on clipboardIsStyled()
try
(the clipboard as record)'s <<class styl>>
true
on error
false
end try
end clipboardIsStyled

======================

Kai

--
email@hidden
email@hidden
_______________________________________________
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: Detecting if text is styled (From: Kai Edwards <email@hidden>)

  • Prev by Date: Re: Kindershell
  • Next by Date: Re: How can I run an Applescript over internet ??
  • Previous by thread: Re: Detecting if text is styled
  • Next by thread: Re: Detecting if text is styled
  • Index(es):
    • Date
    • Thread