How Do I Create class HTML to put on Clipboard?
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