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

how to check "allow selected spread to shuffle"

Participant ,
Dec 09, 2016 Dec 09, 2016

Copy link to clipboard

Copied

Hi,

I'm trying to check allow pages to shuffle and allow spread to shuffle in a document. I'm very very new to this so this is what I have;

I think the var of my spread is wrong, but I can't find the correct definition...

var doc = app.activeDocument

var spread = app.activeDocument.spreads

doc.documentPreferences.allowPageShuffle = true;

spread.allowPageShuffle = true;

Thanks for the help!

Vanessa

TOPICS
Scripting

Views

1.1K

Translate

Translate

Report

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

correct answers 1 Correct answer

Guide , Dec 09, 2016 Dec 09, 2016

You need to define which spread or everything in the document.. like below

var doc = app.activeDocument

var spread = app.activeDocument.spreads.everyItem()

doc.documentPreferences.allowPageShuffle = true;

spread.allowPageShuffle = true;

HTH

Votes

Translate

Translate
Guide ,
Dec 09, 2016 Dec 09, 2016

Copy link to clipboard

Copied

You need to define which spread or everything in the document.. like below

var doc = app.activeDocument

var spread = app.activeDocument.spreads.everyItem()

doc.documentPreferences.allowPageShuffle = true;

spread.allowPageShuffle = true;

HTH

Votes

Translate

Translate

Report

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 ,
Dec 09, 2016 Dec 09, 2016

Copy link to clipboard

Copied

LATEST

yes, that's it! so simple, but I'm missing the basics... I'm reading the tutorial now, to get where / what the right coding is...

Thanks a bunch!

V

Votes

Translate

Translate

Report

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