Jump to content

BBPaste -- create a new BBEdit document from the pasteboard contents

Recommended Posts

I often cut/copy a bunch of text, then switch to BBEdit, then create a new document, then paste the text.


I realized today that this is stupid and inefficient, when all I really need to do it


pbpaste | bbedit


so I created an Alfred workflow that does just that.






To use this you'll need BBEdit installed, obviously, but also the bbedit command line tool. If you purchased BBEdit from the Mac App Store, you will have to download and install them from here:



Share this post

Link to post

Here's my version (the bash script anyway)


pbpaste | /usr/local/bin/bbedit --clean --view-top

It gives a more Drafts-like experience by using the --clean option - you can just close the window when you're done and forget about it, no messing around with filenames.

Share this post

Link to post

I had actually done that with a similar utility that I use in Terminal, but found that I preferred having an actual temporary file to BBEdit's "sort of / kind of" temporary file. It also means that if I find that I want to retrieve something from a recently-closed temp file, I can usually find it.


But it's good to have options.


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