Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Export PDF applescript causing random crashes now

Community Beginner ,
Mar 28, 2018 Mar 28, 2018

I have used the script below for many years to export a PDF from documents dropped onto it. Now I'm starting to see Indesign crashing only on the newer macs running Sierra and CC2018. El Capitan running CC2018 don't have a problem at all.

It happens at random times and files. Retrying the file that it crashed on, will usually work second time around.

It can happen when 1 dropped file or when 150 files are dropped on it.

Can anyone see why this would be happening?

Thx

on open fileList

  with timeout of 3600 seconds

  tell application "Adobe InDesign CC 2018"

  set myFolderPath to (choose folder with prompt "Please select the folder you want to save your PDF pages in") as string

  set myStyles to name of PDF export presets

  set myExportStyle to (choose from list myStyles with prompt "Please Choose an Export style") as string

  end tell

  repeat with aFile in fileList

  tell application "Adobe InDesign CC 2018"

  open aFile

  set myDocument to active document

  set myName to name of myDocument

  set MyPDF to myFolderPath & myName & ".pdf"

  tell myDocument

  tell transparency preferences

  set blending space to RGB

  end tell

  try

  set visible of layer "Visual Guide" of myDocument to false

  end try

  export format PDF type to MyPDF using myExportStyle without showing options

  close myDocument saving no

  end tell

  end tell

  end repeat

  end timeout

end open

TOPICS
Scripting
193
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation