Skip to main content
FKlaes
Participant
August 5, 2009
Question

AppleScript InDesign Document Save as

  • August 5, 2009
  • 1 reply
  • 3741 views

Hello @ All!

I tried my first AppleScript. I tried to open a document and use "save as" (without dialog) to save the opened file in a new place and with a new name.

in case of question: i have to use indesign for a convert of the format.

Here is my Code-Snippet: (the part mentioned in the SDK failed!)

tell application "Adobe InDesign CS4"

set myDocument to open "Mac:IDS:InD-Files:delete_Test.indd"

if saved of active document is true then

tell active document to save saving in "Mac:IDS:test.indd" --speichern ohne save-dialog

end if

close document 1 --Dokument schließen

--end repeat --ende der schleife

display dialog "Alle Dateien bearbeitet"

end tell

After Running i get the failure message:

„saving of "Mac:IDS:test.indd"“ kann nicht gelesen werden."

cannot read this path or file.

The path exists.

What am i doing wrong? or where is the mistake!

Thanks for your help.

Kind regards

This topic has been closed for replies.

1 reply

SuperMacGuy
Known Participant
August 5, 2009

try this:

tell active document

save to "Mac:IDS:test.indd" --speichern ohne save-dialog

end tell