AmbientOcclusion
May 4th, 2012, 06:42 PM
I was trying to find a way to create some sort way to have a script run on a file if I drag the file onto it.
For example, using this pdf resize code:
gs -sDEVICE=pdfwrite -dPDFSETTINGS=/screen -dCompatibilityLevel=1.4 -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
If I had it in some sort of script file that all I had to do was drop a pdf on it and have it be resized, that would be the solution I need.
I'm guessing that I could change
input.pdf to *.pdf
Is that correct?
I remember doing this with batch files in *******, but I am stuck in Linux.
I also don't know what type of file it would have to be.
Thanks ahead of time for any help.
For example, using this pdf resize code:
gs -sDEVICE=pdfwrite -dPDFSETTINGS=/screen -dCompatibilityLevel=1.4 -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
If I had it in some sort of script file that all I had to do was drop a pdf on it and have it be resized, that would be the solution I need.
I'm guessing that I could change
input.pdf to *.pdf
Is that correct?
I remember doing this with batch files in *******, but I am stuck in Linux.
I also don't know what type of file it would have to be.
Thanks ahead of time for any help.