Re: How Do I Create class HTML to put on Clipboard?
Re: How Do I Create class HTML to put on Clipboard?
- Subject: Re: How Do I Create class HTML to put on Clipboard?
- From: Shane Stanley <email@hidden>
- Date: Wed, 15 Jun 2016 23:11:41 +1000
On 15 Jun 2016, at 10:45 PM, Shane Stanley <email@hidden> wrote:
I've never seen «class HTML» on the clipboard
Live and learn. My guess:
use framework "Foundation" use framework "AppKit" -- for pasteboard
set pb to current application's NSPasteboard's generalPasteboard() -- write as html pb's clearContents() pb's setString:theHTML forType:"public.html" -- read as html set theText to (pb's stringForType:"public.html") as text |
_______________________________________________
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