An attempt to run a third party script on Catalina is described: How to interpret / diagnose pdftk error message
Test results after executing xattr -rd com.apple.quarantine /Users/user/Desktop/bates-label-a-pdf
:
user@JUPITER ~ % '/Users/user/Desktop/bates-label-a-pdf/bates-label-a-pdf.app/'../bates-label-a-pdf.sh "/Users/user/Desktop/bates-label-a-pdf/Exhibits_ActivityReport.pdf"; exit
/Users/user/Desktop/bates-label-a-pdf/bates-label-a-pdf.app/../bates-label-a-pdf.sh: line 18: /Users/user/Desktop/bates-label-a-pdf/bates-label-a-pdf.app/../pdftk/bin/pdftk: Bad CPU type in executable
/Users/user/Desktop/bates-label-a-pdf/bates-label-a-pdf.app/../bates-label-a-pdf.sh: line 21: /Users/user/Desktop/bates-label-a-pdf/bates-label-a-pdf.app/../labeling/generate-labeling-pdf: Bad CPU type in executable
/Users/user/Desktop/bates-label-a-pdf/bates-label-a-pdf.app/../bates-label-a-pdf.sh: line 22: /Users/user/Desktop/bates-label-a-pdf/bates-label-a-pdf.app/../pdftk/bin/pdftk: Bad CPU type in executable
mv: /Users/user/Desktop/bates-label-a-pdf/bates-label-a-pdf.app/../labeling/labeling.pdf-compressed: No such file or directory
/Users/user/Desktop/bates-label-a-pdf/bates-label-a-pdf.app/../bates-label-a-pdf.sh: line 26: /Users/user/Desktop/bates-label-a-pdf/bates-label-a-pdf.app/../pdftk/bin/pdftk: Bad CPU type in executable
User mmmmmm commented: The shell scripts need to be put inside the app bundles - as well as the pdftk executable and confirms that pdftk is not in the .app.
The .zip file provided by the thirty party contains pdftk
and other labeling
functionality:
Is the remedy a simple matter of copying
- foo.sh files into the respective foo.app files?
- copying
labeling
andpdftk
to a location with bates-label-a-pdf.app? Where exactly? - modifying the .plist?
Contents of application bundle bates-label-a-pdf.app:
If yes, then an example to follow example would be appreciated.
main.scpt
in thebates-label-a-pdf.app
application bundle and thebates-label-a-pdf.sh
are editable and as such just make the appropriate edits if you want to include thelabeling
andpdftk
folders and thebates-label-a-pdf.sh
script within theResources
folder of thebates-label-a-pdf.app
application bundle.pdftk
andgenerate-labeling-pdf
executables areMach-O executable i386
and therefore will not run under macOS Catalina. They need to beMach-O 64-bit executable x86_64
to run under macOS Catalina.