This works.
From: Greg Kearney <gkear...@gmail.com>
Date: May 28, 2007 8:57:19 PM PDT
To: macvoiceover <macvoiceo...@freelists.org>, General discussions on
all topics relating to the use of Mac OS X by the blind <disc...@macvisionaries.com
>, Mary Beth Janes <mja...@apple.com>
Subject: [macvoiceover] Clipme the clipboard archiver
Reply-To: macvoiceo...@freelists.org
OK here it is a tool to make a clipboard log file. It's an AppleScript
and if you install in your ~/Library/Scripts directory and activate
the AppleScript menu you will then have this tool in every
application. If you use spark you can assign it a hotkey to make it's
use even faster.
Usage
When run clipme will create a file called -clipmelog.txt in your
Documents directory. Note that the name starts with a hyphen. This is
to make it the first, or close to the first, document in any list.
Now go to safari or any other program and select some text and copy it
to the clipboard.
Now run the clipme script either from the script menu or from the
command you associated it with in Spark or a similar utility. The text
of the clipboard along with the date and time of the clip will be
appended to the end of the -clipmelog.txt file.
Because this is just an AppleScript, indeed the code for it is at the
end of this document. You can change the name of the log file and how
it handles the date and so on.
The clipme installer will install this script in your ~/Library/
Scripts folder but if you are using Spark you could move it to where
ever you like. You may need to use the AppleScript Utility in the
AppleScript directory of your Applications directory to turn on the
AppleScript menu.
The clipme installer can be found at http://w3.wmcnet.org/vo/clipme.zip
Here is the script itself:
--clipme the clipboard archiver by Greg Kearney, Wyoming Medical
Center May 2007
set theclip to the clipboard
set this_data to ((current date) as string) & return & theclip & return
set this_file to (((path to documents folder) as text) & "-
clipmelog.txt")
my write_to_file(this_data, this_file, true)
say "clip me!"
on write_to_file(this_data, target_file, append_data)
try
set the target_file to the target_file as text
set the open_target_file to ¬
open for access file target_file with write permission
if append_data is false then ¬
set eof of the open_target_file to 0
write this_data to the open_target_file starting at eof
close access the open_target_file
return true
on error
try
close access file target_file
end try
return false
end try
end write_to_file
--end clipme>
Click on the link below to go to our homepage.
http://www.icanworkthisthing.com
Manage your subscription by using the web interface on the link below.
http://www.freelists.org/list/macvoiceover
Users can subscribe to this list by sending email to
macvoiceover-requ...@freelists.org
with 'subscribe' in the Subject field OR by logging into the Web
interface at http://www.freelists.org/list/macvoiceover
On Jan 6, 2010, at 3:38 PM, Yvonne Thomson wrote:
Ok, this was bugging me, so I think I've come up with a solution
that does what you want. It relies on you having snow leopard and
it's an automator service.
Go into automator and create a new service. Go to the actions/
ddescription split view and interact with it.
Go to the actions library split view and interact with that. Go to
the actions table, make sure the keyboard focus is there, and start
typing run. The action you're looking for is run shell script.
Once you find it in the table, hit enter on it.
Stop interacting with all that stuff and vo-left to get to the
workflow. Interact with it and find the run shell script action.
Interact with that and hit vo-right until you get to the text area
that says cat.
Delete everything in there and paste the following script in its place
cat >/tmp/clipboard
pbpaste|cat - /tmp/clipboard|pbcopy
Save the workflow as something like, "append to clipboard"
If you want to, go into keyboard preferences and give it a shortcut,
try to make it pretty obscure since it'll be available anywhere in
OS X.
Anyway, highlight your text, and either hit the shortcut or vo-shift-
m to bring up the context menu, go into services, and find your
service name. and activate it.
That should append whatever you've selected to whatever's already on
the clipboard.
You can do this as many times as you like. To start again, just use
a normal copy.
I'll be kind of interested to see how this works for you, actually.
I don't have much use for it myself, and I've only tested it
quickly, so don't rely on it to launch the space shuttle or
anything, but it *should* work.
--
You received this message because you are subscribed to the Google
Groups "MacVisionaries" group.
To post to this group, send email to macvisionar...@googlegroups.com.
To unsubscribe from this group, send email to macvisionaries+unsubscr...@googlegroups.com
.
For more options, visit this group at http://groups.google.com/group/macvisionaries?hl=en
.
louie
louiem...@wavecable.com
--
You received this message because you are subscribed to the Google Groups
"MacVisionaries" group.
To post to this group, send email to macvisionar...@googlegroups.com.
To unsubscribe from this group, send email to
macvisionaries+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/macvisionaries?hl=en.