• 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
How Do I Create class HTML to put on Clipboard?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How Do I Create class HTML to put on Clipboard?


  • Subject: How Do I Create class HTML to put on Clipboard?
  • From: Jim Underwood <email@hidden>
  • Date: Wed, 15 Jun 2016 10:02:40 +0000
  • Thread-topic: How Do I Create class HTML to put on Clipboard?

I know how to unpack «class HTML» data on the clipboard. (see below).

Now, I need to do the opposite:  Given an html string, pack it and put on clipboard as «class HTML»

I want to use «class HTML» rather than RTF because I think I can do more with it pasting into Evernote.
For example, I want to paste into Evernote text that has a tooltip.
I can create the HTML code with no problem, but when that is converted to RTF and pasted into Evernote, then the tooltip is lost.

Any ideas?

Unpacking «class HTML»:



set strCMD to "osascript -e 'the clipboard as «class HTML»' |   perl -ne 'print chr foreach unpack(\"C*\",pack(\"H*\",substr($_,11,-3)))'"

set strHTML to (do shell script strCMD)




Thanks.


Best Regards,

 

Jim Underwood

aka JMichaelTX

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: How Do I Create class HTML to put on Clipboard?
      • From: Christopher Stone <email@hidden>
  • Prev by Date: ASObjC – Write File & Create Directory Handlers
  • Next by Date: Re: How Do I Create class HTML to put on Clipboard?
  • Previous by thread: ASObjC – Write File & Create Directory Handlers
  • Next by thread: Re: How Do I Create class HTML to put on Clipboard?
  • Index(es):
    • Date
    • Thread