Clipboard question...
Clipboard question...
- Subject: Clipboard question...
- From: David Crowe <email@hidden>
- Date: Sat, 10 Jan 2009 11:50:36 -0700
Title: Clipboard question...
For some time I've had an applescript that processes the text on
the clipboard in simple ways (e.g. removing extraneous carriage
returns, ">" from the beginning of lines). But the major
thing was that the text at the end was unstyled. Tied to a hot key I
used this many times a day.
Now after reinstalling Tiger, upgrading to Smile 3.3.1 and
removing Suitcase, things that shouldn't have changed anything related
to this, the script no longer works.
The critical pieces are that the script starts with:
set x to
the clipboard
if x = "" then return
set x to
change return &
">"
into "
" in x
-- Followed by several other manipulations of text using the
Smile OSAX command "change"...and then ends with...
set the clipboard
to (x as
string)
I did not used to have to coerce 'x' to a string, but if I don't
do that the clipboard becomes blank. This might be due to the upgrade
to smile which now produces unicode with their 'change' command.
But the biggest problem is that the script now styles the
clipboard with the "Geneva" font, no matter what the
original font was. I presume this is the system font, although I can't
find this in System Preferences.
In FileMaker and Eudora, for example, I have the ability to paste
without styles, and in this case the expected result occurs, and
whatever the default font is is shown.
Is there a way to force the clipboard not to carry style
information via AppleScript?
- David Crowe
_______________________________________________
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