Jump to content

Recommended Posts


I have an image that I made in photoshop, that I frequently paste into emails.  I want to be able to instantly paste this image with a hot key.  I have attempted to program Alfred to accomplish this but I have not yet succeeded.  Any advice is greatly appreciated, thanks!

Share this post

Link to post

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

Share this post

Link to post

I just thought that I would add a note to my post above since I think I badly named the workflow... so please note that the script above doesn't only works for image file but could be used to copy any file to the clipboard

Share this post

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...