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

AppleScript InDesign Document Save as

New Here ,
Aug 05, 2009 Aug 05, 2009

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

TOPICS
Scripting
3.7K
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
Participant ,
Aug 05, 2009 Aug 05, 2009
LATEST

try this:

tell active document

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

end tell

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