Forenindex » Programmierung/Entwicklung » AppleScript » InDesign CC 2019 Doppelseiten anlegen

InDesign CC 2019 Doppelseiten anlegen

mcrudi
Beiträge gesamt: 29

27. Sep 2019, 12:55
Bewertung:

gelesen: 8524

Beitrag als Lesezeichen
Hallo Zusammen,

weiß zufällig jemand, wie ich mit Hilfe von Applescript Indesign sagen kann, dass es Doppelseiten in einem automatisch erstellten Dokument anlegen soll? Bisher legt es mir alles als Einzelseiten an.

Hier mal das Codebeispiel:

Code
set docBreite to 148 
set docHoehe to 210
set bleedOben to 3

set numberEven to 5
set numberResult to (numberEven mod 2 is 0)

set fileSave to choose folder with prompt "Wählen Sie Ihren Ordner..."

set maxNum to 16
set i to 0

tell application "Adobe InDesign CC 2019"
set indd to make document

tell indd
tell document preferences of indd
set document bleed top offset to bleedOben
set document bleed uniform size to true
set properties to {facing pages:false, page width:docBreite, page height:docHoehe}
set pages per document to maxNum
end tell
repeat
set i to i + 1
if (i mod 2 is 0) then
tell margin preferences of page i of indd
set top to 30
set left to 50
set bottom to 60
set right to 10
end tell
else
tell margin preferences of page i of indd
set top to 50
set left to 10
set bottom to 20
set right to 5
end tell
end if
if i is maxNum then exit repeat
end repeat

end tell
end tell


Viele Grüße
Mcrudi

InDesign CC 2019 Doppelseiten anlegen

Martin Fischer
Beiträge gesamt: 12783

27. Sep 2019, 14:05
Bewertung:

gelesen: 8514

Beitrag als Lesezeichen
Hallo,

aus der Erinnerung.
Versuch mal so was wie
Code
set facing pages of document preferences of indd to true 


Du kannst die Klasse aber auch selbst im Skripteditor in der Bibliothek von InDesign nachschlagen.

Viele Grüße
Martin



(Dieser Beitrag wurde von Martin Fischer am 27. Sep 2019, 14:11 geändert)

InDesign CC 2019 Doppelseiten anlegen

Martin Fischer
Beiträge gesamt: 12783

27. Sep 2019, 14:13
Bewertung:

gelesen: 8507

Beitrag als Lesezeichen
Oder einfacher...

Korrigiere das:
Code
set properties to {facing pages:true, page width:docBreite, page height:docHoehe} 


Viele Grüße
Martin


InDesign CC 2019 Doppelseiten anlegen

mcrudi
Beiträge gesamt: 29

27. Sep 2019, 14:57
Bewertung:

gelesen: 8498

Beitrag als Lesezeichen
Hallo Martin,

das war es schon. Mir war nicht bewusst, dass das facing auch die Seitenanordnung bestimmt.
Ich habe facing pages: true, eingestellt.

Vielen Dank für die schnelle Hilfe,

Gruß
Mcrudi