[macvoiceover] Clipme the clipboard archiver
- From: Greg Kearney <gkearney@xxxxxxxxx>
- To: macvoiceover <macvoiceover@xxxxxxxxxxxxx>, General discussions on all topics relating to the use of Mac OS X by the blind <discuss@xxxxxxxxxxxxxxxxxx>, Mary Beth Janes <mjanes@xxxxxxxxx>
- Date: Mon, 28 May 2007 21:57:19 -0600
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.
UsageWhen 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 & returnset 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-request@xxxxxxxxxxxxx with 'subscribe' in the Subject field OR by logging into the Web interface at http://www.freelists.org/list/macvoiceover
Other related posts:
- » [macvoiceover] Clipme the clipboard archiver