How Can I Set Up an Executable Script in Linux?
by MarjaE from LinuxQuestions.org on (#6R6DM)
I try to pre-process pdf files so that they load faster, and so they won't crash kindles or tablets.
In MacOS, I could use Automator to run a bash shell script.
In Fedora w/ Cinnamon, I tried to use "Edit Menu" to add a script to Applications > File Conversion.
gs -dBATCH -dSAFER -DNOPAUSE -sDEVICE=pdfwrite -r 72 -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -o out.pdf
But if I pick that script, it can't do anything without a file, and if I pick a file, I can't input it into that script.
I'm going to need to figure out the right way to handle file paths and names here, too, but not yet. I'm also going to need more complicated multi-part scripts for particularly troublesome files, too.
Also, to avoid migraines, I need to maximize most windows, so I have trouble with drag and drop, and rely on a lot of right-click menus.
In MacOS, I could use Automator to run a bash shell script.
In Fedora w/ Cinnamon, I tried to use "Edit Menu" to add a script to Applications > File Conversion.
gs -dBATCH -dSAFER -DNOPAUSE -sDEVICE=pdfwrite -r 72 -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -o out.pdf
But if I pick that script, it can't do anything without a file, and if I pick a file, I can't input it into that script.
I'm going to need to figure out the right way to handle file paths and names here, too, but not yet. I'm also going to need more complicated multi-part scripts for particularly troublesome files, too.
Also, to avoid migraines, I need to maximize most windows, so I have trouble with drag and drop, and rely on a lot of right-click menus.