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

Newbie Question #1: Creating New Document

Community Beginner ,
Jul 17, 2019 Jul 17, 2019

I have written jsx scripts from existing documents but am having issues creating new objects.

How do I create a new blank portrait document? the app.documents.add() command does not work for me. The results will only contain a single table so I do not think a template is needed.

TOPICS
Scripting
660
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

correct answers 1 Correct answer

Community Expert , Jul 17, 2019 Jul 17, 2019

#target framemaker

var doc, PT = 65536;

doc = CustomDoc (612 * PT, 792 * PT, 1, 12 * PT, 72 * PT, 72 * PT, 72 * PT, 72 * PT,

    Constants.FF_Custom_FirstPageRight, true);

Translate
Community Expert ,
Jul 17, 2019 Jul 17, 2019

#target framemaker

var doc, PT = 65536;

doc = CustomDoc (612 * PT, 792 * PT, 1, 12 * PT, 72 * PT, 72 * PT, 72 * PT, 72 * PT,

    Constants.FF_Custom_FirstPageRight, true);

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
Contributor ,
Jul 21, 2022 Jul 21, 2022

Rick...do you recall where this menu came from that you posted back in 2019?  It looks like the kind of ExtendScript book I've been looking for.  The free stuff online from Adobe is pretty much useless the beginner.  I'm interested in any books you recommend for learning FrameScript and ExtendScript.  Curt

 

Fightergator_0-1658430799255.png

 

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
Community Expert ,
Jul 22, 2022 Jul 22, 2022
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
Contributor ,
Jul 23, 2022 Jul 23, 2022
LATEST

Got it...thank Rick.

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