Created
April 11, 2020 16:47
-
-
Save mchapman87501/f29bdf522b1617359909bec251aa9596 to your computer and use it in GitHub Desktop.
Add an item to macOS "Print > PDF" popup menu, to save as PDF and open w. PDF Expert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
# Open Automator | |
# File -> New | |
# Select "Print Plugin" | |
# In the resulting document: | |
# Drag Run Shell Script to the right-hand pane | |
# Set shell to /bin/zsh | |
# Paste in this script | |
filename=$(basename "$1") | |
destpath=${HOME}/Documents/eBooks/Freebies/${filename} | |
cp "$1" "${destpath}" | |
open -a "PDF Expert" "${destpath}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment