Re: a script for saving text from the clipboard to a file
Re: a script for saving text from the clipboard to a file
- Subject: Re: a script for saving text from the clipboard to a file
- From: Doug McNutt <email@hidden>
- Date: Tue, 28 Mar 2006 08:49:30 -0700
At the risk of being chastised for less than full AppleScript solutions, you should be aware of the NeXt-Step shell routines pbcopy and pbpaste.
pbpaste takes the contents of the clipboard and writes it to standard output which in turn can be redirected to a disk file. A do shell script something like:
Do Shell Script prperlyguotedandposixedformof (pbpaste > /tmp/anewfile.txt)
might be all that you need.
For more:
man pbcopy
man pbpaste
--
Applescript syntax is like English spelling:
Roughly, but not thoroughly, thought through.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden