Strange behavior when developing a script for Adobe Indesign


(Alexey) #1

Hi!

I have a strange behavior with SD 6.08 and Indesign script.

The application is very slow when editing the script. Any action when editing text causes the program to freeze. Entering a character from the keyboard takes about 5 seconds.

And this problem exist if the script contains PDF Export Preferences:

tell PDF export preferences
some preferences



end tell

If I close these settings to the block, the problem disappears.

(*
tell PDF export preferences
some preferences
end tell
*)

What is the problem?

OS X High Sierra 10.13.4
Mac Book Pro Late 2013
Mac Mini
iMac


(Mark Alldritt) #2

It has been a long time since I’ve played with this. I recall that, at least with Illustrator, reading any of the PDF related properties of a document was very slow. It may be that Script Debugger is hanging, at least briefly, waiting for InDesign to respond.


(Ed Stockly) #3

Not sure what the issue is here. We may need to see more of the actual script, including the tell context and the commands.

Are the lines below in an ID Tell block?

(*
tell PDF export preferences
some preferences
end tell
*)

My strategy for exporting PDF files is to set up the export presets in advance and then call them by name. But you could build the exports on the fly.

tell application "Adobe InDesign CS6"
      set pdfExportPresetNames to	name of every PDF export preset
      set myPDFPreset to PDF export preset "LA TIMES TV GRID"
     tell document 1
      export to file pdfFile format PDF type using myPDFPreset
   end tell
end tell

(Alexey) #4

Thanks all!

Dances with a tambourine. Sadly…