Skip to main content
Gene Sorg
Participant
Jul 17, 2019 7:38 PM UTC
Answered

Newbie Question #1: Creating New Document

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 is closed to new replies. Start a new post to keep the conversation going.
frameexpert
frameexpertCorrect answer
Community Expert
Jul 17, 2019 8:11 PM UTC

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

www.frameexpert.com

4 replies

frameexpert
Community Expert
frameexpertCommunity ExpertCorrect answer
Community Expert
Jul 17, 2019 8:11 PM UTC

#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
www.frameexpert.com
Fightergator
Inspiring
Jul 21, 2022 7:19 PM UTC

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

 

 

Translate
frameexpert
Community Expert
Community Expert
Jul 22, 2022 5:19 PM UTC