Jump to content

memepaste - workflow to paste images

Recommended Posts

Hi Everyone!


After some time not being able to find any good way of searching for memes and pasting them into anything from MacOS, I've decided to create memepaste.

It's super simple, just searches for files within your ~/meme folder and pastes it wherever you want!

Here's the github page: 


Releases Page:



To get memepaste to work, you will need impbcopy into your /usr/local/bin/ folder.

Installing impbcopy

This is a good old tool that was created by Alec Jacobson, definitely recommend checking it out from his blog post here

You can follow his blog post to install his tool or use the script I provide in this repo, completely up to you!

To install impbcopy using my script, just run this command:

$(curl https://raw.githubusercontent.com/gcarrarom/memepaste/master/install_pbcopy.sh)

Or download the script and run it locally:

curl https://raw.githubusercontent.com/gcarrarom/memepaste/master/install_pbcopy.sh --output install_pbcopy.sh
chmod +x ./install_pbcopy


"How do I add memes to this?"

Just add your memes to your ~/meme folder! It's as simple as that! Make sure to also give a descriptive name to your file, you're going to be searching for memes using it.

"why can't you use pbcopy?!?"

I'm glad you've asked! If you have ever tried to use pbcopy for images, it's going to reference the file itself on your clipboard and it won't paste it as an image into the chats/documents/<insertYourApplicationHere>.

"Where are my memes?!!?"

Don't worry, if you don't see anything after typing meme on alfred, that's expected! This workflow uses the regular file filter from Alfred, nothing fancy. Just type something that should be in the file name of your meme. Just make sure it's in the ~/meme folder!



Edited by gcarrarom
Needed more information and Tags
Link to comment
  • 1 month later...



I have a similar workflow, and am using AppleScript to copy the image file to the clipboard. I thought you might be interested, giving this could avoid an external dependency.


Here's the code (used in a Run Script object, language set to osascript):

on run argv
	set the clipboard to (read (POSIX file "{query}") as JPEG picture)
	return "{query}"
end run


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...