Re: Class ksty
Re: Class ksty
- Subject: Re: Class ksty
- From: has <email@hidden>
- Date: Thu, 7 Aug 2008 21:46:52 +0100
Laine Lee wrote:
OK, please suggest how I might accomplish a Leopard fix for this
script
adapted from a script by julifos, which worked quite well (at least
to some
extent) through Tiger, for example:
Assuming the source application is good enough to include an RTF
version of the copied text:
set tmp to (do shell script "mktemp -t temp") & ".rtf"
set rtf to the clipboard as «class RTF »
set f to open for access POSIX file tmp with write permission
write rtf to f
close f
set the clipboard to (do shell script "textutil -convert html -stdout
" & quoted form of tmp)
do shell script "rm " & quoted form of tmp
has
--
Control AppleScriptable applications from Python, Ruby and ObjC:
http://appscript.sourceforge.net
_______________________________________________
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