rtf and rtfd (Related to Getting at Some Hidden Clipboard Contents)
rtf and rtfd (Related to Getting at Some Hidden Clipboard Contents)
- Subject: rtf and rtfd (Related to Getting at Some Hidden Clipboard Contents)
- From: Laine Lee <email@hidden>
- Date: Fri, 06 Apr 2007 15:01:45 -0500
- Thread-topic: rtf and rtfd (Related to Getting at Some Hidden Clipboard Contents)
I have been working with information I gleaned from this recent thread:
<http://lists.apple.com/archives/applescript-users/2007/Mar//msg00195.html>,
and am hoping to get a little more help.
I developed a GUI scripting method which uses TextEdit to create a web page
from either rich text or a combination of rich text and images copied from a
Safari web page or other source
(<http://lonestar.utsa.edu/llee/applescript/webpage_clippery.html>), but I
would naturally prefer to get the same results without having to involve the
GUI.
Thanks to the aforementioned Applescript Users list thread, I've learned how
to create and save to a .rtf file the rich text residing on the clipboard
and use textutil to make the web page conversion, thereby circumventing the
need to involve the GUI.
I'm still stumped about how to incorporate the ability to save to .rtfd
when needed in the situation where both graphics and text are stored on the
clipboard as the GUI scripting method does. I tried a call method in
Applescript Studio (found here:
<http://lists.apple.com/archives/applescript-studio/2005/Jan/msg00013.html>)
, but the problem seems to be making the leap from clipboard to textview,
which is solved in the GUI version of my solution simply by telling TextEdit
to paste the contents of the clipboard into a new document window.
How can I get a combination of graphics and rich text from the clipboard
into a .rtfd document? Thanks.
--
Laine Lee
_______________________________________________
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