[X-Unix] Copy clipboard between Macs through command line?

James Wright jameswright at drag-and-drop.com
Thu Jun 3 04:10:51 PDT 2004


Here's a couple of applescript's, that you should be able to execute 
from the command line using the applescript command line tools (test in 
script editor first):

save clipboard:

set theClip to the clipboard
set theFile to (open for access "Macintosh HD:MyClipboard" with write 
permission)
set eof theFile to 0
write theClip to theFile as record
close access theFile


load clipboard:

set the clipboard to (read file "Macintosh HD:MyClipboard" as record)



HTH

James.


p.s.

There's no error checking, you might want to add some.

On 3 Jun 2004, at 10:10, Our Pal Al wrote:

> Is there any command I can use to copy the clipboard contents from one 
> Mac
> to another?
>
>
> -- 
> //////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
> Since light travels faster than sound, is that why some people
> appear bright until you hear them speak?
>
> http://home.nyc.rr.com/attilan/wonderfal/   <--    NEW location!
> \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\//////////////////////////////////
>
>
> ----------
> Check out the Mac OS X email list FAQ
> http://www.themacintoshguy.com/lists/X.html
>
> To unsubscribe, E-mail to: <X-Unix-off at lists.themacintoshguy.com>
> To switch to the DIGEST mode, E-mail to 
> <X-Unix-digest at lists.themacintoshguy.com>
> Need help from a real person? Try.  
> <X-Unix-request at lists.themacintoshguy.com>
>
> ----------
> $14.99 Unlimited Nationwide Mac Dialup and Mac Web Hosting from your 
> Mac ISP
> Serious Mac Internet Solutions From NineWire!   
> http://macinternetaccess.com
>
> DVIator   | Run Dual ADC displays on your G4 or just one on an older 
> Mac!
> Dr. Bott  | <http://www.drbott.com/prod/DVIator.html>
>
>    Support   | Support this list by clicking here before you buy!
>   this List  |  http://www.themacintoshguy.com/support.html
>
> OS X News, Dr.Mac, Forums, Tutorials, Tips, Hints, FAQ?s - 
> http://www.osxfaq.com
>



More information about the X-Unix mailing list