r/applescript • • Feb 03 '21

Automate copy-pasting with AppleScript?

Hi all! This has been haunting me for a long time. So at my job (luckily it’s remote) I have to do a stupid amount of copy-pasting. Years after clicking cmd+c and v (and other shortcuts) has resulted in issues with my left hands fingers and tendons. I’m trying to find ways to do copy-paste without having to press cmd c/v.

Right click copy/paste doesn’t work because it’s too slow and some of the work software don’t support right click. So I thought about automating the keystroke but idk how I can efficiently execute this script so it makes sense.

Ive also tried using gaming mouse with customizable keys but that didn’t work and I’m not about to pay 90-100 bucks on a mouse.

So I know in the settings for Mighty Mouse you can select application as an action for the buttons. So I made a script to simply keystroke command c and another for v but it didn’t seem to execute when it’s from the Mighty Mouse.

Has anyone automated this basic function so that it can be done from the right hand rather than your left?

8 Upvotes

11 comments sorted by

View all comments

Show parent comment

1

u/hansolo625 Feb 06 '21

Drag and dropping unfortunately doesn’t work cuz almost every tool I’m using is internal lol sorry for the lack of context I’m only copying text (customers PII) but between multiple internal apps

I actually have found my solution by using LogiTech G600. The software didn’t work before and would never detect the mouse. It appears that they have resolved it and I can now customize all the buttons. It’s now a bliss to be able to do so much all coming from just my right hand.

I even programmed some of scripts to the keys so I can launch them with out additional clicking or tying short cuts!!

Regardless, thanks for chipping in!!