Advertisement
fortin

PDF Password Remover script

Oct 2nd, 2016
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. tell application "Finder"
  2.     set thePath to quoted form of POSIX path of ((item 1 of (get selection)) as text)
  3.     set the clipboard to thePath
  4.     do shell script "cd " & (the clipboard) & "; /usr/local/bin/gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=" & (the clipboard) & "-Cracked.pdf -c .setpdfwrite -f " & (the clipboard)
  5. end tell
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement