Scripts wont autoload in Indesign cc

I have copied the follow in extendtoolscript.
//DESCRIPTION:Write Author in Metadata 
// Another Jongware Script 16-Jan-2015 
#targetengine "add_author_info" 
app.addEventListener("afterNew", add_author_info, false);  
function add_author_info (event) 
    var theDoc = event.parent; 
    theDoc.metadataPreferences.author = "Insert N. Here"; 
And saved it in C:\Users\User\AppData\Roaming\Adobe\InDesign\Version 10.0\nl_NL\Scripts\Scripts Panel\Startup Script
I can select it manually in InDesign and then it works fine.
However it doesn't load automaticly when im starting Indesign, so i have to start the scrip everytime im using InDesign.
Are there any solutions on this, or did i do anything wrong?

And saved it in C:\Users\User\AppData\Roaming\Adobe\InDesign\Version 10.0\nl_NL\Scripts\Scripts Panel\Startup Script
Try putting the script in the InDesign Application folder rather than your user folder—it will show in the Script Panel’s Application folder
Applications ▸ Adobe InDesign CC 2014 ▸ Scripts ▸ Scripts Panel

Similar Messages

  • Script to merge 2 Indesign files on alternating pages

    Hello
    I have created a data merge document for a book I am writing (Luckily I already had everything in Excel) . I created a template with the style headings and graphics frames positioned and sized exactly where I wanted them.My master page had repeating elements etc.
    Loved the process and it worked beautifully. It literally saved me a weeks worth of formatting and inserting graphics work. However the file basically created the Left hand page ONLY of a 2 page spread.
    My understanding from studying tutorials on data merge is that they can only create ONE page output altho I know you can change it to 2 page spreads afterward.
    The second data merge created a file what would ideally be the right hand page of every spread.
    This is a reference/encyclopedia type book with each 2 page spread a distinct entity devoted to a subject
    I need to join the 2 files together.
    The first file would be the left hand or EVEN page
    The second file would be the right hand or ODD page.
    The document is 350 pages.Each page is the same size,margins and subject matter but with different headings and graphics
    (Dragging pages would be too tedious and I have had problems with ID crashing. Don't want to go there again)
    I did read an answer by Dave Saunders (  9. Nov 1, 2008 5:03 PM (in response to Al Ferrari) Re: Script to interleave two InDesign files of equal page counts )
    Would that work do you think?
    I have ID CS4 6.0 running on windows vista.
    I have ZERO scripting experience but I can follow directions.
    Is there any way, scripting wise, I could (or should) accomplish this?
    Thank You in Advance for any help
    Lauren

    My understanding from studying tutorials on data merge is that they can only create ONE page output altho I know you can change it to 2 page spreads afterward.
    That isn't true. Data merge can be done with many pages. See my response to this post:
    http://forums.adobe.com/message/3909894#3909894
    In response to the OP's script request, i can't be of any help.
    What i'm hoping is that after reading how to make a data merge with both left and right hand pages from the post i've linked, that the data could be merged again... assuming there was little (or no) post-processing of the file after the merge was performed.

  • Postcript font's wont' load in InDesign CC 2014

    I recently downloaded CC to my computer and the postcript fonts wont' load on InDesign CC 2014. Please help!

    Hi P Spier, thanks for prompt response. I am working from my laptop and I'm using Font Book. I couldn't install them at all...I placed them under Library>Fonts, also under my Username>Library>Fonts, etc. but still not result. Any other recommendations? Thanks!

  • VBA-script not working in InDesign

    Goal: To have text placed from Word formatted in the paragraph styles I like. I receive the text from other authors and they are formatted with standard Word paragraph style formatting.
    Two solutions:
    Format the text in Word (change paragraph styles) using VBA, place/import it and somehow make sure that InDesign uses the styles I already defined in InDesign, not the way that style is defined in Word. I can't figure out how to do this.
    Do the formatting in InDesign, using script. But the VBA-macro does not work in InDesign.
    How may I change the code in order to work in InDesign? The code should look for specific paragraph styles and change them or the style of the next paragraph.
    Sub stilSkifte()
    Selection.GoTo What:=wdGoToPage, Which:=wdGoToNext, Name:="1"
    Dim para As Paragraph
    For Each para In ActiveDocument.Paragraphs 'søk gjennom hvert enkelt avsnitt i dokumentet
       On Error Resume Next
        'INGEN MELLOMROM og overskriftene
        If para.Range.Style = "Ingen mellomrom" Then
            para.Style = "Normal"
            GoTo SisteLinje 'Gå til linja i koden som heter SisteLinje, = gå til neste avsnitt
        End If
        If para.Range.Style = "Overskrift 1" Then
            para.Style = "Tittel-små"
            GoTo SisteLinje 'Gå til linja i koden som heter SisteLinje, = gå til neste avsnitt
        End If
        If para.Range.Style = "Overskrift 2" Then
            para.Style = "Ingress"
            GoTo SisteLinje 'Gå til linja i koden som heter SisteLinje, = gå til neste avsnitt
        End If
        If para.Range.Style = "Overskrift 3" Then
            para.Style = "mellomtittel"
            GoTo SisteLinje 'Gå til linja i koden som heter SisteLinje, = gå til neste avsnitt
        End If
        'NORMAL til BYLINE
        If para.Range.Style = "Ingress" Then
            If para.Next.Style = "Normal" Then
                para.Next.Style = "byline1"
            End If
               GoTo SisteLinje
        End If
        If para.Range.Style = "byline1" Then
            If para.Next.Style = "Normal" Then
                para.Next.Style = "byline2"
            End If
               GoTo SisteLinje
        End If
       'Hvis avsnittet er i NORMAL og det neste er...
        If para.Range.Style = "Normal" Then
            '...i NORMAL endres dette til NORMAL M INNRYKK
            If para.Next.Style = "Normal" Then
                para.Next.Style = "Normal med innrykk"
            End If
            GoTo SisteLinje
        End If
    SisteLinje: Next
    End Sub
    I apriciate any suggestions!

    Thank you Kasyan, but it doesn't work as I expected it to. The InDesign style are somtimes overridden, sometimes not. It seems to have something to do with wether the Word-style is based on another Word-style or not. In addition I have my InDesign styles grouped, and when InDesign upon placing a text doesn't find the style on the top level, it imports the Word-style.
    My solution:
    Change Word-styles so they are not based upon another style
    Running the VBA-code in Word
    Placing the text using "Use InDesign style definition" for paragraph and character styles conflicts.
    Editing the imported InDesign styles so that they are based upon and equals the original InDesign style in the respective group

  • Scripting applications preferences in Indesign CS2

    Hey folks, I'm attempting to set the cmsSettings preferences (current color management system) in Adobe InDesign CS2 using javascript but my code is not working. The script goes something like this:
    #target InDesign
    app.ColorSetting.cmsSettings="MyColorSettings";
    This errors - ID says that it doesn't recognize the object called ColorSetting. Any assistance is appreciated.
    Will

    Check your documentation. The class name is ColorSettings; the property (name of the 'variable' inside a class) can have any name, such as "app.bob", "app.jack", or "app.colorSettings". It's sort of convention that these are written with lowercase, to let humans distinguish them easily from class names (which are, obviously, written using initial uppercase).

  • I am having trouble implementing scripting functionality in an indesign template for a DPS project.

    Basically how should the interaction between inserted HTML and the CSS, JS applied for the HTML happen?
    I created plain HTML code which has text fields, buttons and the functions that perform some simple calculations. But when imported via Object>Insert HTML the HTML functionality was lost. I then tried creating and exporting an indesign template which contained all the buttons required for the calculation as a HTML file via File>Export option, added modified HTML code and then used Object>Insert HTML. But no luck.
    Is there a better way to import and/or how do we initiate a button to be used via scripting? (Eg: convert a image into a button in indesign, but.... how best to initiate a "onClick" function for the button created via Js or Jquery).

    I'm having the same issue. And Dreamweaver now crashes after just a few seconds.

  • Any script for PowerMath Equation (InDesign CS4)

    Hi,
    All, I'm new to Indesign Scripting, and I'm hoping someone can help me.
    Is that possible any type of script (Apple/Java) for edit/update Poermath Eqation in Indesign CS4.
    In my Knowledge (not found) Powermath Editor have no Dictionary. Is that possible we make script for Powermath Editor.
    Thanks for answering.
    Regards
    snegig

    You can try it like this. (Tested on Mac OSX)
    // export indesign doc to idml
    // tested on Mac OSX
    // this code is Public Domain
    // check if the doc is saved
    var doc = app.activeDocument;
    if (!doc.saved) {
      doc.save();// if not save it
    // take the .indd's name and make a .idml from it
    var aName = doc.name;// get the name
    var newName = aName.replace("indd", "idml");// replace the indd to idml
    // crate a new FIle Object
    var theFile = File(File(doc.filePath).fsName + "/" + newName);
    // export
    doc.exportFile(ExportFormat.INDESIGN_MARKUP, theFile, false);
    // done

  • Applescript script wont work under Mail's rules

    I have an Applescript that works perfectly for replying to certain incoming emails when it is called on manually yet when I try to set it to run automatically as part of Mail's rules in preferences, it just wont run. The other criteria within the same ruel work perfectly. It's just the Applescript that wont function. Any ideas as to what may be impeding it from working ?

    there is a known bug in apple script which hangs the script if the a mail rule makes an outgoing message. i submitted a bug report about it a couple of months ago and was told that it's a known issue.
    There is a workaround. see the post by Todd laney in [this thread|http://discussions.apple.com/thread.jspa?threadID=1226817&start=0&tstart =0].

  • I need this indesign cs3 script to run under Indesign cs2

    This is paragraph changes script which is run under indesign cs 3, I need this  script to run under my indesign cs 2, can anyone help me pls?. thank you  in advance
        Fixing paragraph style combinations
        Version: 1.1
        Script by Thomas Silkjær
        http://indesigning.net/
    var the_document = app.documents.item(0);
    // Create a list of paragraph styles
    var list_of_paragraph_styles = the_document.paragraphStyles.everyItem().name;
    // Make the dialog box for selecting the paragraph styles
    var the_dialog = app.dialogs.add({name:"Fix paragraph style pairs"});
    with(the_dialog.dialogColumns.add()){
        with(dialogRows.add()){
            staticTexts.add({staticLabel:"Find:"});
        with(borderPanels.add()){
            var find_first_paragraph = dropdowns.add({stringList:list_of_paragraph_styles, selectedIndex:0});
            staticTexts.add({staticLabel:"followed by"});
            var find_second_paragraph = dropdowns.add({stringList:list_of_paragraph_styles, selectedIndex:0});
        with(dialogRows.add()){
            staticTexts.add({staticLabel:"Change:"});
        with(borderPanels.add()){
            var change_first_paragraph = dropdowns.add({stringList:list_of_paragraph_styles, selectedIndex:0});
            staticTexts.add({staticLabel:"followed by"});
            var change_second_paragraph = dropdowns.add({stringList:list_of_paragraph_styles, selectedIndex:0});
    the_dialog.show();
    // Define paragraph styles
    var find_first_paragraph = the_document.paragraphStyles.item(find_first_paragraph.selectedIndex);
    var find_second_paragraph = the_document.paragraphStyles.item(find_second_paragraph.selectedIndex);
    var change_first_paragraph = the_document.paragraphStyles.item(change_first_paragraph.selectedIndex);
    var change_second_paragraph = the_document.paragraphStyles.item(change_second_paragraph.selectedIndex);
    // Set find grep preferences to find all paragraphs with the first selected paragraph style
    app.findChangeGrepOptions.includeFootnotes = false;
    app.findChangeGrepOptions.includeHiddenLayers = false;
    app.findChangeGrepOptions.includeLockedLayersForFind = false;
    app.findChangeGrepOptions.includeLockedStoriesForFind = false;
    app.findChangeGrepOptions.includeMasterPages = false;
    app.findGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences.appliedParagraphStyle = find_first_paragraph;
    app.findGrepPreferences.findWhat = "^";
    //Search the current story
    var the_story = app.selection[0].parentStory;
    var found_paragraphs = the_story.findGrep();
    var change_first_list = [];
    var change_second_list = [];
    // Loop through the paragraphs and create a list of words and mark them as index words
    myCounter = 0;
    do {
        try {
            // Create an object reference to the found paragraph and the next
            var first_paragraph = found_paragraphs[myCounter].paragraphs.firstItem();
            var next_paragraph = first_paragraph.paragraphs[-1].insertionPoints[-1].paragraphs[0];
            // Check if the next paragraph is equal to the find_second_paragraph
            if(next_paragraph.appliedParagraphStyle == find_second_paragraph) {
                    change_first_list.push(first_paragraph);
                    change_second_list.push(next_paragraph);
        } catch(err) {}
        myCounter++;
    } while (myCounter < found_paragraphs.length);
    // Apply paragraph styles
    myCounter = 0;
    do {
        change_first_list[myCounter].appliedParagraphStyle = change_first_paragraph;
        change_second_list[myCounter].appliedParagraphStyle = change_second_paragraph;
        myCounter++;
    } while (myCounter < change_first_list.length);
    alert("Done fixing pairs!");

    CS2 didn't support grep searches so you're going to have to do some serious reworking of the script. It's not a flick of the wrists.
    Dave

  • Spot Channels in CS6 wont import into Indesign and Incompatable with CS5

    File imports into Indesign but without spot channels.
    File will not open in Photoshop CS5
    By changing the spot color to Pantone Solid and resaving, I was able to open in Photoshop CS5, however the channel still did not import into Indesign CS5.
    I resaved the file from CS5 and the file imported correctly into Indesign.
    Windows 7 Home Premium 32
    AMD Phenom 9850 Quad-Core 2.5GHz
    4Gb RAM

    You didn't use Pantone Solid, you most likely used Pantone+ Solid (which is a new book).
    If you want to open that in Photoshop CS5, you'll need to copy the new book to CS5.
    InDesign - they had several bugs relating to spot color channels, which they should be fixing.
    But they too may need the new color book data.

  • Text wont appear in indesign cs5.5

    im trying to start a new document but when i draw a text box and try to either type or paste in text nothing comes up, the courser wont even move to its not that the text is invisible it just isnt there in the first place?

    Is there something else onthe page that has text wrap applied that might be affecting this frame?

  • Unix shell script wont execute from ODI

    Hi All.
    I have an interface that calls a shell script to append a record number to a flat file. The shell script is  called by the Execute OS command action.
    This works fine in our dev environment as we have migrated the code to a new environment it no longer works.
    The error I'm getting from the session task is "wrong process code: 127" and from the session step
    ODI-1226: Step Append Record Number into the file fails after 1 attempt
    ODI-1242: Operating System command execution fails
    I'n calling the shell script as below:
    sh xxc_rms_append_record_number.sh
    The shell is in the same directory as the agent i.e. agent/bin
    Thanks in adavance
    Guy

    Hi ,
    I assume you are using ODI 11g.
    Please try / check the below steps --
    1> Try to use OdiOsCommand instead of OSCommand .
    2> Try to execute the shell script in the directory in the path you want to run (not from ODI)
    3> Recheck the path whether you should run in that directory or not (Environment wise directory can be changed)
    Thanks

  • Automatically open in Preview script wont work on 10.6

    Trying to take pictures with an Eye-Fi card and have them automatically open full size in Preview upon uploading. The script I have works just fine for my iMac running 10.5, but not at all on my iMac running 10.6. The script works fine if I physically drag a file into the designated folder, but not it uploaded. Same thing when I make folder action scripts in Automator. Please help. Here is the script:
    on adding folder items to this_folder after receiving these_items
    -- PROCESS EACH OF THE ITEMS ADDED TO THE ATTACHED FOLDER
    repeat with i from 1 to number of items in these_items
    set this_item to item i of these_items
    tell application "Preview"
    activate
    open this_item
    end tell
    end repeat
    end adding folder items to

    Does it change anything if you write the script as follows?
    *on adding folder items to this_folder after receiving these_items*
    *   tell application "Preview"*
          activate
    *      repeat with this_item in these_items*
    *         open this_item*
    *      end repeat*
    *   end tell*
    *end adding folder items to*

  • Script wont work after building/burning dvd

    Hi everyone,
    I have a problem with a HUGE dvd-project I'm working on at the moment. It's a compilation dvd with 50 different short videos and approximately 55 menus. a large part of the 50 videos is connected through the menus with 201 unique buttons.
    First I made different stories to be sure the viewer gets directed to the menu he/she came from when a video ends. But because the project became too big (99 tracks and or stories is the maximum) I got into scripting.
    I thought I actually managed to write the right scripts, but now it seems that a stand alone dvd-player doesn't recognize the scripts. Every time a video ends or I use the menu button on the remote control the (first) main menu appears.
    *So my question for all the friendly folks out there on the other end of the glass fiber-cable is: What can I do to make it work? Is this a problem someone recognizes? Is it my scripting? Is there a way to work around scripting?*
    If you need more info please let me know. I wanted to keep it as short as possible at first, but I can elaborate some more if needed.
    thanks in advance
    ciao!

    As already said, the pre-scripting is usually the culprit... and as StudioX said, I \did leave much of the detail out in that article, which was intended to build on from other sources, such as the manual!
    If you remove the setting which puts the scripts as prescripts, and be explicit with the menu jumps (i.e. write them out in full each time and don't rely on 'current item' and dividing by '32'), then the scripting should work.
    Additionally, the script lines you quote in your prescript may not work, depending on where you are in the disc when they are run. The very first script you create will have a value of 63489, which when you divide by 32 gives just over 1984, so will be rounded to either 1984 or 1985. Since this does not equate to any menu item then the jump cannot work, since GPRM3 will never be equal to '1'. As a result the disc reverts to the main menu.
    To make this more reliable you need to work out the value of the last item, which if it is track or story 1 will be 49280. Story 2 in track 1 will be 49408, story 3 49536. This continues even if you then go to a new track. Knowing this the maths then to get to a menu is easier.
    If you 'get last item' and know that you are coming from a track or story then you can subtract 49280 and divide by 128. If you are on track or story 1 then the result is zero. Otherwise it is going to be 1, 2, 3, etc. If you know which clips you access from each menu then you can add a series of 'if' statements, for example:
    Jump menu1 If (GPRM3 <= 20)
    Which would mean anything up to your first 20 clips would send you back to menu1.
    You can then add in the button jump before this statement and you should be getting closer to what you need.

  • How to script for resize CS3 indesign

    Hi there,
    I've been trying to search the internet for a script that I can use in the following situation.
    I already use this script to center the content:
    myObj = app.selection[0];
    myObj.fit(FitOptions.centerContent);
    the next step I would like to do...after inserting a pdf file within a rectangle frame (that being the "image box"). I would like to, after using the above script, resize the contents of the rectangle frame to whatever percentage for both X and Y (scale X Percentage, as well as Y, both different values).
    Any help would be much appreciated. Also, the indd files are all named different, as well as the pdf's being inserted.

    Here's a very basic sample script to get you started:
    if (app.documents.length == 0) exit();
    if (app.selection.length == 0) exit();
    var sel = app.selection[0];
    if (sel.constructor.name != "Rectangle") exit();
    var pdfFile = File.openDialog("Choose a PDF File");
    if (pdfFile == null) exit();
    app.pdfPlacePreferences.pdfCrop = PDFCrop.cropMedia; // General > Options > Crop to
    var pdfPage = sel.place(File(pdfFile))[0];
    with (pdfPage) {
         absoluteHorizontalScale = 40; // Horizontal Scale
         absoluteVerticalScale = 60; // Vertical Scale
    sel.fit(FitOptions.centerContent);
    It inserts the 1st page of the selected PDF file. If you want to insert specific pages, use app.pdfPlacePreferences.pageNumber property.
    Kasyan

Maybe you are looking for