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

Newbie Question #1: Creating New Document

Community Beginner ,
Jul 17, 2019 Jul 17, 2019

Copy link to clipboard

Copied

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

Views

422

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

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);

Votes

Translate

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

Copy link to clipboard

Copied

#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);

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

Copy link to clipboard

Copied

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

 

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

Copy link to clipboard

Copied

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

Copy link to clipboard

Copied

LATEST

Got it...thank Rick.

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