- Alfred 4
- Powerpack
- Python 3+
- Download latest release here
- Double-click to add to Alfred
- Go to Pastebin API page and copy the key in the section named Your Unique Developer API Key
- Open Alfred, go to workflow environment variables and put the copied key into variable
API_DEV_KEY
By default, this workflow will paste your content as a guest.
If you want to paste on your account you need to enter your Pastebin username and password in variable API_USER_NAME
and API_USER_PASSWORD
, respectively.
pb [name] [language]
name
andlanguage
are optional(CMD + Enter)
to create as unlisted paste (by default)- Please be careful on unlisted or private paste since a free Pastebin account has a paste limit on those two types of permission
Name | Default | Required | Description |
---|---|---|---|
API_DEV_KEY |
- | Yes | Your Unique Developer API Key |
API_USER_NAME |
- | No | Your Pastebin username (see: Guest Mode) |
API_USER_PASSWORD |
- | No | Your Pastebin password (see: Guest Mode) |
DEFAULT_NAME |
Untitled |
Yes | Default paste name if not defined |
DEFAULT_PERMISSION |
public |
Yes | Paste permission (available value: public , unlisted , private ) |
CMD_PERMISSION |
unlisted |
Yes | Paste permission if you hold CMD |
EXPIRE_DATE |
1W |
Yes | Paste expiration date (available value) |