default new document?

How can indesign (CS6) to ask the end user to choose from a group of default documents on new?

InDesign does not size 'sets '.

I created a series of default documents or the master documents which have sizes registered as master spreads.

for example: document master "PR" has all the formats associated with ROP registered in the master spread.

If the end-user tried to create a new document POR it would open the corresponding master doc and select the format of the master spread

My focus is on file > new > document CS6 could prompt the user to select/open one of master documents and open the file

If no / cancel it would return to the end user to the new document set up the screen.

is it feasible?

I have the following text that prompts the user to select a master document / by default, but I did not understand how to integrate it into indesign. I thought that the event listeners would work but not luck (well it works just creates a new document as well as opens a document master/FAULT lol)

Tell application "Finder".

the value theMastersFolder of the files of the folder ("Macintosh HD:Users:rickg1:Desktop:testMasters")

tell the end

game theMastersList to {}

repeat with thisInDDmaster in theMastersFolder

the value theMastersList to the theMastersList & (name of thisInDDmaster ()

end repeat

the value chosenDoc to choose from the list theMastersList with prompt "choose a master doc:

If chosenDoc is set to false then

error number -128

on the other

the value chosenDoc to chosenDoc point 1

end if

the value thisFilePath ((path to the Office as text) & "testMasters:")

Tell application "Adobe InDesign CS6"

activate

define the user interaction level of script preferences to never interact

chosenDoc & thisFilePath Open ()

define the user interaction level of script preferences to interact with all the

tell the end

any thoughts? Thank you in advance - rick


Hello

I don't dare using Applescript here so here's a proposal of Javascript:

#targetengine "onNew"
var showDialog = false;
var ma = app.menuActions.itemByID(257);

var dlg = function(fo,files) {

    var filesInList = [];
    var n = files.length;
    while (n--){
        filesInList[filesInList.length]=decodeURI(files[n].name);
    }

    var w = new Window("dialog", "Test");
    w.preferredSize.width = 200;
    w.alignChildren = ["fill","fill"];

    var st = w.add('statictext',undefined,fo.toString() );
    var ls = w.add('listbox', undefined, filesInList,{multiselect:true});
    ls.preferredSize.height = 200;

    var ob = w.add('button', undefined, "Open Selected" );
    ob.enabled = false;

    ls.onChange = function(){
        ob.enabled = ls.selection!=null;
    }

    ob.onClick = function() {
        w.close(1);
    }
    var ab = w.add('button', undefined, "Just a new doc please" );

    ab.onClick = function(){
        w.close(3);
    }

    var r = w.show();
    if ( r==1 ){
        if ( ls.selection instanceof Array ) {
            var n = ls.selection.length;
            while(n--) app.open(files[ls.selection[n].index]);
        }
        else {
            app.open(files[ls.selection.index]);
        }

    }
    else if (r==3){
        showDialog = true;
        ma.invoke();
    }
    else {
        showDialog=false;
    }

}

var onBeforeNew = function(event) {
    var filter = function(f){return /\.(ind[dt]|idml)$/i.test(f.name);};
    var fo = Folder ( Folder.desktop+"/Templates" ),
    files;

    if (showDialog) {
        showDialog=false;
        return;
    }

    if ( !fo.exists) return;

    files = fo.getFiles(filter).reverse();

    if ( !files.length ) return;

    event.preventDefault();
    event.stopPropagation();

    dlg(fo, files);
}

var main = function(b){
    var ev= ma.eventListeners.item ( "onBeforeInvoke" );
    b && !ev.isValid && ma.eventListeners.add( "beforeInvoke", onBeforeNew ).name = "onBeforeInvoke";
    !b && ev.isValid && ev.remove();
}

main(true);

That should behave like this:

(1) new call to doc:

(2) If you click on "just a new doc please", retrieve the original dialog box

(3) If no record found or iwthin files this folder, the original dialog box appears.

HTH

Loïc

http://www.ozalto.com

Tags: InDesign

Similar Questions

  • Why the default format window opens in the new documents open in Pages 5.6.1?

    Someone else asked this before, but it is with an older version of Pages, and it's a few years, so I thought I'd make a new discussion.

    Everytime I open a new document in Pages (version 5.6.1 on OS 10.11.2, on a 13 "Macbook Pro of 2009), the formatting window is open. It's ugly and I do not want to use immediately. What is the default? Like other posters, I tried to create a model that does not do that, but even at the opening with the model, it opens but each time. As in the other poster said: this is not a terrible amount of work, but it is very annoying to do all the time. This has happened for years. A word about the recent patches?

    Not and unlikely he's going to change.

    Peter

  • How to store values by default when a work of recognition processor creates a new document due to the separator page?

    Environment : business Capture 11.1.1.8.0

    Question : How do I keep the default values when a work of recognition processor creates a new document due to the separator page?

    Background :

    1. we have a job to import processor.

    2 failing a metadata to the sender of the email message ID value.

    3 work as expected if it is a single document, with no separator.

    4 but when it is to have several documents with a separator page, My Job of recognition is split into several documents.

    5. in the present case, I am losing by default (SenderEmailId) to all documents created by split.

    In this regard, any help is appreciated.

    MetaLink article describing almost word for Word the question shown here.

    "Sample company Capture recognition processor Script to keep the existing metadata for new Documents (Doc, ID 1918874.1).

  • Default indd file missing and open with no. Para new documents. styles

    Hello

    When you create a new indd file in ID CS6, a set of tags para etc have been automatically loaded in the new doc. Today, I open a new file and it opened with only a database para tag. I know some years ago, I created a sort of default file that included all the settings I wanted as a default value for any new project, backed up where Adobe me and baptized what Adobe me ID will look for when creating new documents.

    I thought that it would be default.indd but without SOAP.

    Can someone tell me the exact name and the folder where this file should be kept.

    Thank you very much

    Jon

    Create a file with all the styles that you want, save and close. With no file open in the Panel switch paragraph and Styles from the dropdown choose load all styles... Choose the file that you saved with your styles and load them, then close the ID and relaunch. All new files from the file > new... should have these styles.

    You can also save files empty (or non-empty) with any configuration page and the selection of styles predefined as InDesign templates. You access those via file > open...

  • Default unit preference Illustrator CC 2015 not reflecting is not in the new document to pop-up menu.

    I recently improved and updated to Illustrator CC 2015 19.0.1 (Windows). I seem to have a persistent problem since I upgraded from CC to CC 2015 2014. I put all the preferences of the unit by default to millimeters, but when I create a new document the units from the drop-down list are always in points (until I manually select the drop down menu to find millimeters it). Once the document has been created all units are in millimeters, as it should. Before CC once preferred by default unit in 2014 has been set to millimeters the new pop-up menu also default document would display the dimensions of the document in millimeters. Is this a bug that needs to be address or there at - it a setting I'm missing?

    The problem has now been corrected since the last update to Illustrator (19.2.0). Thanks to all who responded.

  • When I open a new document for print in indesign, which is the default document PPI?

    When I open a new document for print in indesign, which is the default document PPI?

    There is no such association resolution level file in InDesign. The elements of your InDesign layout retain their respective characteristics; a 72 DPI raster image can coexist with a 300 ppi raster image and a 150 ppi raster image, as well as resolution independent vector graphics and text; and they all remain exactly as they are, independently of each other with respect to the resolution.

  • New document dialog uses a custom preset instead of [default]

    When I create a new document, InDesign CC 2014 automatically chooses one of my presets custom instead of [Default] (see below). Then, I need to manually select [Default] for a standard letter-size page. Does anyone know why he would do this, or if there is a way to force them to use [Default] first? There is a small problem, but it starts to get boring.

    Screen Shot 2015-04-17 at 3.37.22 PM.png

    try to replace your preferences

  • How to bypass the Inspector with a new document?

    In the Pages 5.6.1 How can I open a new document, a model, without opening the Inspector? I find no way to disable or stop the Inspector.

    I searched these support pages and google, & get dry on this. Anyone...?

    Note: I don't want to do this in older versions of Pages. And using fullscreen mode is not a good workaround solution; I need to see my Finder Windows, while I open new Pages documents.

    Thanks in advance for your suggestions!

    You mean the Model Viewer, not the Inspector.

    You can always save a template somewhere on your desk and opens by double clicking it or offer in the Pages of preferences as the default template.

    Peter

  • After upgrading from Vista created a new documents folder and now ignores the original

    Last week I updated my computer (which I believe has an update of the graphics card and some windows stuff) using Windows update and left while he was closing. I guess what he finished close, but as I was leaving for the weekend, I can't be 100% sure and this weekend my house loses power at least once.

    As for the problem, at windows startup today made first time setup that works normally when you connect to a user account for the first time. Applications of Sidebar by default loading, the default value of the user interface (that I don't use, so it was the first sign), and I found that on the opera opening, all my favorites and settings were gone.

    At the opening of my documents, I found that they were completely empty of content, including all hidden folders where all of my settings the user should be.

    Navigation around the computer, I find that this will C:\Users\USERNAME\ my documents are still intact, but are ignored, with all the shortcuts leading to my documents redirect me to the 'new' documents folder, which means that for all purposes useful all my user settings for all programs that store data in the documents have been reset.

    Maybe someone has an idea of what may have caused this?  Personally, it's one of the strangest bug I've ever seen in any version of windows, and I'm not sure how I should go to deal with it.

    Update:

    To check the path of the 'new' documents folder, it appears as C:\Users\TEMP

    This means at least all of my original documents folder has not been deleted, but I'm trying to support everything up to an external drive where vista decided to replace my old documents folder entirely.

    Hello

    You can perform a restore of the system on the computer to restore the previous settings again.

    Note: When you perform the system restore to restore the computer to a previous state, programs and updates that you have installed are removed.

    For more information follow the link below.

    System Restore: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows7/system-restore-frequently-asked-questions

    Once you've done the system restore perform the update of Windows once more and check what is happening.

    Hope this information is useful.

    Amrita M

    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Cannot open new document in MS Works

    When I try to use the Works word processor, I can't get a new document - it always opens the same. That can be done to be able to open a new document.  I have deleted it from the document, and began a new, saved, but when I apply to open a new document, the same one returnes and must be removed before work can be started.

    http://www.Microsoft.com/communities/newsgroups/list/en-us/default.aspx?DG=Microsoft.public.works.win&cat=en_us_9804e2ac-c762-44C9-9c6f-90e45f32d772&lang=en&CR=us

    Discussions in microsoft.public.works.win

    You will be easier with your question work when repost you it in the above works Newsgroup.

    See you soon.

    Mick Murphy - Microsoft partner

  • PS Preferences - new document preset resolutions

    Gossip of dinosaurs...

    PS default 72 pixels per inch. It's ugly! More T - Rex the 1980 Atari s. What are harm am do, accept these flaws Eater scary (why doesn't Adobe read my system in a way to apply my control panel in preferences, like most other applications)?

    First step, Google "photoshop" "new document preset resolutions. Pumped in the first place by hackers Adobe PR, a just as old Adobe's Forum post some 10 odd years ago...

    Image and resolution of the monitor (read-only) ... related to, impression one that linked to Scan tips

    There, a person named Wo Tai Lao it is framed as the expert and she (?), he wrote make you a PNG 500x500px, enlarge it to the size, measure the inches with a ruler and divide by 500. WO and all its resources related saying, 'it's your screen resolution

    verification of the reality of 2016...

    Well, this is so the era post Nintendo Atari, not true? My Home Office using a Mac Pro from 2016. The screens use T2 connections. Work horse display is a Display Port version 1.4, with 1.2 billion colors on the 34-inch 2560 x 1440 resolution (oh yes! so-o-o easy on my BenQ eyes). My second T2 "scrap box" with 2.4 million colors on some old connection HDMI is a standard of 24-inch 1080 p 1920x1200px. Mac Pro automatically resets the fall less than the same functional resolution area that my bigger screen (naturally leaving the box of scrap to its color of 24 inches and resolution limits internal. Appears in the shape (thanks Apple)!

    Answer forum of Wo Tai Lao the star back to Adobe. It does not matter what size or resolution that I use Photoshop Document new Preset resolutions, 100px is always exactly 1 inch. But here's the real thicket...

    Adobe Photoshop will create new images with resolutions of age of Pierre Atari-Nintendo if let you it fixed to this bad thing. Question so very valid, what is this 72px default to? This means Photoshop needs to make website fav icons, using a Wo Tai Lao script the era fav-icon Adobe? Are we supposed to until something less primitive if we build, say wallpapers? Where is implemented in Adobe support on the preferences of this criticism?

    What we said...

    Telephone support me has said, "it does not matter." Then I shared the screen and showed how important it is to support and we were gruff said, well, "set it to what you want."

    What we like...

    Kind of limit to what sells in stores today, we have to settle by primitive defect in Photoshop. It should be placed here as a reminder that the software we use is... "established". Kinda like the size of column parameters must mean London Herald and the New York Times.

    Screen Shot 2016-08-09 at 02.15.50.png

    You want to ensure that you could disintegrate the shit of Point/Pica size (is that). New Document Preset resolutions shows 300 pixels/inch. Our Canon MX 530 Series is actually 300 DPI, whatever that means in pixels? Hmm. The dinosaur croak like toad if we set Print and screen to 600?

    1411674854485_wps_47_Jurisdiction_Pauley_Perre.jpg

    NCIS and Adobe

    "I'm so lost without Gibbs!"

    What screen and print resolutions want my babies?

    Screen Shot 2016-08-09 at 02.56.39.png

    We'll go with Elf Lord of Pixels. Is this impression of Dino 300 resolution, or...

    x / 300 = 100 / 72 > x = 416.666666 Pixels/inch > or just 416?

    Someone, please help me!

    Adobe are largely correct that no matter how you set the screen resolution in Photoshop-except when you want to use the display 'size print'. Photoshop only cares about pixels and dots per inch review applies only when you print an image, but sometimes you don't want to see on the screen shows a picture with precision the size in inches or in centimeters and to do that you need to know the number of pixels per inch of your screen. Its not true 72 dpi is very outdated. If you are running 1920 x 1080 on a big flat screen figure will be around 80ppi (pixels/inch). It is only when the retina and other screens ultra high definition are used 72 dpi will start to look at the lowest.

    There are formulas to calculate the density of the screen, but an easy way is a screen like this calculator

    http://kingscalculator.com/en/other-calculators/pixel-density-calculator

    You just put to the screen size and resolution that you use and it displays a result

    As you can see a pretty big screen with an ordinary resolution is not special as density of screens is concerned. Once you have this number you put in the screen resolution box in preferences

    Now, when you want to see your image on the screen to size, it will print all you need to do is call the view "print size". The 81ppi parameter should not make a difference in another mode.

  • CD: Opening a new window by default / new default Windows

    Hello

    So crowing 2 documents on 2 screens, comment do pour Configurator Louverture to a document in a new window by default

    Thank you

    How to open new windows by default 2 documents on Monitor 2?

    Thank you

    Hi mikem85848492,

    To open a pdf doc in a new window you must navigate in Edition > Preferences > select 'Général' in the Categories list and uncheck the option that reads "Documents open in the new tab in the same window" under the label of the basic tools, and then click OK.

    Close the CD player and launch it again.

    Let us know if that helps.

    Concerning

    Sarojini

  • How to make sure that I needed to 'Graphic Styles' launched when I create a new document? in Adobe Illustrator CC 2015?

    7d38c5a901df4dfa88900419ebf04944.png

    I want to here these three styles launched by default when I create a new document in Adobe Illustrator CC 2015?

    I record this way:
    C:\Users\indigo\AppData\Roaming\Adobe\Adobe 19 Settings\en_GB\x64\Graphic Illustrator Styles

    Did not help :)

    Create a file that contains these graphic styles and save it in Illustrator C:\Users\indigo\AppData\Roaming\Adobe\Adobe 19 Settings\en_GB\x64\New Document profiles

  • After you disable the new interface to tabs, all new documents are not open in a larger window

    Hello

    Yesterday I upgrade my Adobe 11.0.10 Adobe Acrobat Reader DC 15.010.20056 player. The tabs interface was pleasant enough, but there are still some limitations with this features, such as,.

    1 > no option to set no maximum. tabs in a single window,

    2 > tabs cannot organize, to be moved to a new window and several selected

    I want to disable the new interface to tabs via Preferences > General > open documents in the new tab in the same window (not checked), but after you turn off the new tabbed interface, all new documents open after the first document are not open in a maximized window, they always opened in a restored window.

    No matter what I do, it keeps - on the opening of the second new pdf in this one, restored windows are the things that I tried to overcome this.

    1 > right of the DC open Adobe Acrobat click in the task bar > Adobe Reader DC > right click > properties > run: enlarged - only the first document opened in maximized windows, documents later opened in the restored only, window that too seem to not work when I closed the last document in a restored window. Opening in the same window type is part of the windows operating system, it does all the time, "opens the entire application in the same way that they have been closed, either maximized/restored and the size of Windows too". Only the first one application window is open in this way, rest of the windows open is seems to be not supported by the operating system.

    2 > of this forum discussion https://forums.adobe.com/thread/435552?start=0 & tstart = 0 , I checked for the mentioned, registry keys

    HKEY_CURRENT_USER\SOFTWARE\Adobe\Acrobat Reader\DC\SDI

    the default value is - "bNullDocMaximized" = DWORD: 00000001 , "bMaximizeNextDocument" = DWORD: 00000001 and "bResizeOnOpen" = DWORD: 00000000

    Exchange only tried on the third button (the rest has been preset to required values) - "bResizeOnOpen" = dword: 00000001 - restart > no change > reset to its default value

    What to do now...?

    Thanks in advance

    Hi Gangatharran,

    Thank you for bringing this to our notice.

    We have recorded a bug for this and will share an update on the progress made in this thread.

    Kind regards
    Rave

  • New document always opened as work plan

    for some reason, a few weeks ago, my photoshop began to open new documents such as work plans, I am 100% sure that I always select 'Web' by Type of Document, but when I create, it always shows as working, it's quite annoying, how can I turn it off?

    I know this is an old thread... It still applies in CC 2015.1.2

    The solution is actually very simple, do not use Web and Mobile App Design and iconography as a Type of Document they appear only default to the artboard.

    All others (outside of the artboard itself produces a normal document.

    While I understand the logic in the logic of automatic adjustment of artboard for Web etc I don't see why he SHOULD...

Maybe you are looking for