Jump to content

Hotkey to Paste Image

Recommended Posts

I've been using an applescript to copy files, so here is a version for your purpose that copy an image file and paste it to your front application. Since you said this is for an email I thought this was for an email signature, so I added an example for that using the snippet trigger (the hotkey one is set as well, but actually, any trigger could work...)


Link to the workflow: https://nofile.io/f/UpBdhu7mcuP/ImagePaste.alfredworkflow


For those that want to see the script directly, here is the main script to copy the file to the clipboard (just put this in a Run Script set to Applescript), the rest is just a simple cmd+v key combo for the pasting.


on run (argv)
	set filePath to "/path/to/your/file"
	set the clipboard to POSIX file (POSIX path of ((POSIX file (filePath)) as alias))
end run


Hope this helps!

Edited by GuiB
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...