Skip to main content
Gene Sorg
Participant
July 17, 2019
Answered

Newbie Question #1: Creating New Document

  • July 17, 2019
  • 1 reply
  • 602 views

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.

This topic has been closed for replies.
Correct answer frameexpert

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

1 reply

frameexpert
Community Expert
frameexpertCommunity ExpertCorrect answer
Community Expert
July 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);

Fightergator
Inspiring
July 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

 

 

frameexpert
Community Expert
Community Expert
July 22, 2022