Monday, June 3, 2019

How to Install a Script to Acrobat's Menu

This post goes along with an Acrobat script: An Easier Way to Mark Comments as Checked in Acrobat DC.

If you would like to purchase this script, visit the Try67 website.
Scripts I've added to the Acrobat Menu Bar

  1. Check the following settings in Acrobat - Edit menu (or under the Acrobat menu on a Mac computer)- Preferences, JavaScript:
  • Enable Acrobat JavaScript - should be checked
  • Enable menu items JavaScript execution privileges - should be checked
  • Enable interactive console - should be checked
  • Show console on errors and messages - should be checked

How to install the script:
  1. Close Acrobat.
  2. Copy your javascript to the following folder:
  • Windows (32 bit): C:\Program Files\Adobe\Acrobat <VERSION NUMBER>\Acrobat\JavaScripts
  • Windows (64 bit):  C:\Program Files (x86)\Adobe\Acrobat <VERSION NUMBER>\Acrobat\JavaScripts
  • Mac:  /Users/<USERNAME>/Library/Application Support/Adobe/Acrobat/<VERSION>/JavaScripts
  • or /Applications/Adobe Acrobat <VERSION>/Adobe Acrobat
(To find it go to Applications > Adobe > Adobe Acrobat <VERSION> Pro > then right-click the Adobe Acrobat application itself and select "show package contents", then go to Contents > Resources > JavaScripts
If you find the Resources folder but there's no JavaScripts folder within it, then create it yourself and the place the script there.)

  1. Open Acrobat.
  2. Open a PDF.
There should be new item/s under the "Tools" menu (under "Add-on Tools"). They will be the names of your scripts. If you have Acrobat DC you might need to search for it in the Tools panel.

Why Won't InDesign Sample Scripts work in InDesign 2019?

I encountered a strange issue recently. I was creating a business card imposition in InDesign. I opened the Scripts panel, and then ran CropMarks.applescript. Nothing happened.

My compute seemingly locked up for a moment, but no crop marks appeared. After a  minute or so of investigation, I realized that InDesign 2018 had launched. But I was using InDesign 2019...

I went back to InDesign 2018, and it displayed the following dialog box:

It turns out that when InDesign 2019 was shipped, no one at Adobe had changed the hard-coded application version in the sample Applescripts. 

The workaround is that you simply need to change them to be "2019" instead of "2018." Alternatively, you can use the corresponding sample javascripts in the Samples folder for the job.