I want to pass the filename of the file I rightclicked to a shell script through automator:
# encrypt file.txt to file.enc using 256-bit AES in CBC mode
openssl enc -aes-256-cbc -salt -in file.txt -out file.txt.enc
When I create a 'service' I can pass on the input 'as arguments', but how to I implement it in the code?
It would be great if the file could be called 'file.enc' instead of 'file.txt.enc' if that is possible.
Best Answer