Skip to main content
added 26 characters in body
Source Link
gatorback
  • 3.2k
  • 8
  • 42
  • 58

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:

enter image description here

Is the remedy a simple matter of copying

  1. foo.sh files into the respective foo.app files?
  2. copying labeling and pdftk to a location with bates-label-a-pdf.app? Where exactly?
  3. modifying the .plist?

Contents of application bundle bates-label-a-pdf.app: enter image description here

If yes, then an example to follow example would be appreciated.

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:

enter image description here

Is the remedy a simple matter of copying

  1. foo.sh files into the respective foo.app files?
  2. copying labeling and pdftk to a location with bates-label-a-pdf.app? Where exactly?
  3. modifying the .plist?

Contents of bates-label-a-pdf.app enter image description here

If yes, then an example to follow example would be appreciated.

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:

enter image description here

Is the remedy a simple matter of copying

  1. foo.sh files into the respective foo.app files?
  2. copying labeling and pdftk to a location with bates-label-a-pdf.app? Where exactly?
  3. modifying the .plist?

Contents of application bundle bates-label-a-pdf.app: enter image description here

If yes, then an example to follow example would be appreciated.

edited tags
Link
bmike
  • 241.3k
  • 80
  • 433
  • 958
edited title
Link
gatorback
  • 3.2k
  • 8
  • 42
  • 58

Packaging Where should .sh and pdftk be copied to in Appfoo.app?

added 36 characters in body
Source Link
gatorback
  • 3.2k
  • 8
  • 42
  • 58
Loading
Source Link
gatorback
  • 3.2k
  • 8
  • 42
  • 58
Loading