• 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: Shane Stanley <email@hidden>
  • Date: Wed, 27 Nov 2002 09:27:31 +1100

On 27/11/02 5:36 AM +1000, Arthur J. Knapp, email@hidden,
wrote:

> on ClassCode(v)
> (*
> * HACK !!!
> *)
> return ({{p:v}} as string)'s text 39 thru 42
> end ClassCode
>
> on IsStyledText(v)
> return ClassCode(v) = "STXT"
> end IsStyledText
>
> IsStyledText(the clipboard) --> true/false

Hmmm:

on ClassCode(v)
(*
* HACK !!!
*)
return ({{p:v}} as string)'s text 39 thru 42
end ClassCode

on IsStyledText(v)
return ClassCode(v) = "STXT"
end IsStyledText

tell application "Script Debugger"
set x to contents of script document 2
end tell
IsStyledText(x)
--> false

--
Shane Stanley, 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: "Arthur J. Knapp" <email@hidden>)

  • Prev by Date: Re: Create variables from the script ?
  • Next by Date: Re: Detecting if text is styled
  • Previous by thread: Re: Detecting if text is styled
  • Next by thread: Re: Detecting if text is styled
  • Index(es):
    • Date
    • Thread