Just a Girl Weblog

Remembering Who I Really Am

Using AppleScript to Automate Actions in Adobe Acrobat Pro X

This morning I had to combine 35 PDF files into a single PDF, and wanted to take advantage of the "Always add bookmarks to Adobe PDF" option.

Adobe Acrobat X - Combine Files into a Single PDF
Adobe Acrobat X ‑ Combine Files into a Single PDF

When combining documents, the Zoom level of the document is not respected and defaults to "Page Width" in the bookmark's Actions property. Editing each bookmark individually—nine (9) mouse clicks per bookmark—is very tedious.

Bookmark Properties - Actions
Bookmark Properties - Actions

Unbelievably, there's a very simple solution…AppleScript. Type the following into the AppleScript Editor (called Script Editor in versions of Mac OS X prior to 10.6 Snow Leopard), compile and run, and—presto—job done.

  • tell application "Adobe Acrobat Pro"
  • tell active doc
  • tell bookmarks
  • set fit type to fit page
  • end tell
  • end tell
  • end tell

Where to Go for More Information

Filed under: , , ,