Script for Document Footnote options change before first footnote above space.

Hi hope u r all fine,
Please help for this. I want to change the space in Document footnote option.
That is Minimum space before first footnote = "12 pt"; and Rule above of First Footnote in Column should be Rule off.
I need script for this.

@hasvi – look up the properties and methods here:
Jongware
InDesign JavaScript Reference Guide
http://www.jongware.com/idjshelp.html
I recommend the chm files listed there for easy searchability.
There is also a HTML version and a online version in HTML.
Properties like footnoteFirstBaselineOffset, footnoteMinimumFirstBaselineOffset, ruleOn and ruleOffset with their possible values are documented here:
http://jongware.mit.edu/idcs6js/pc_FootnoteOption.html
To set the properties and their values you have to address the document.footnoteOptions:
var myDoc = app.documents[0];
myDoc.footnoteOptions.properties = {
    footnoteFirstBaselineOffset : FootnoteFirstBaseline.X_HEIGHT,
    footnoteMinimumFirstBaselineOffset : "12 pt",
    ruleOn : false
Uwe

Similar Messages

  • I am new to scripting & I need Script for Document color mode

    Hi,
    Please help me to create a script which should find the Document color mode. I am new to scripting. And please let me know how to use the same.
    Balaji

    Are you using the Extendscript Toolkit Editor (ESTK)? In the Help menu you can find all the properties for Document that can be queried/changed.
    (Personally, I don't use ESTK, because I really really hate it. But I don't want to miss the Help, so I made my own version. I have Illustrator CS4, and it's possible your version doesn't have this, but under Document I find:
    documentColorSpace
    DocumentColorSpace:
    DocumentColorSpace.RGB
    DocumentColorSpace.CMYK
    readonly
    The color space used for the document.
    For the how-to-use I glady refer you to Adobe's own Starting With Scripting guides.)

  • Sequencing question: app requires IE settings change before first launch

    hi.
    I need to sequence an app that will open in IE.
    I did  a quick try, got some errors... Found later that it requires IE not above 9. I had 11.
    Sure I will try it again with right browser version and if necessary few tries. So in case of problem I can ask providing the errors
    But as preliminary question I want to ask an advice for the sequencing in the next installation scenario:
    1. Run msi (55MB package, so it is not just a shortcut)
    2. Before first launch, installation instruction requires to open IE and set "use username and password" for Internet and Intranet zones to YES.
    The question is would IE settings be captured during the installation and monitoring process if I will do it as required.
    Or it worth to set IE before starting sequencer, or I can set a registry for IE after editing Appv package after saving.
    Also, domain GPO can be used probably. But I know that I need to enter the app during monitoring.
    What will be appropriate to try?
    Thanks.
    "When you hit a wrong note it's the next note that makes it good or bad". Miles Davis

    I suggest that when you re-sequence you have the correct version of IE on your sequencing VM. Also, ensure IE has been launched before attempting to sequence to ensure any first run user settings are not going to be captured in your virtual package.
    Also, please take a look at this excellent article posted by Dan Gough around overriding Group Policy Settings and consider it's impact for what you may be trying to do:
    http://packageology.com/2014/02/overriding-group-policy-settings-app-v/
    PLEASE MARK ANY ANSWERS TO HELP OTHERS Blog:
    rorymon.com Twitter: @Rorymon

  • Script for running multiple find/change queries

    Working on a large ID book document (*.indb), I have saved several dozens of Find/Change Queries (named "col01", "col02" etc.) that I run on "All documents". For a particular reason I have to run these queries several times a day.
    So I was wondering whether there is, or whether anybody out there would write, a script that runs these queries one after the other. Given the size of the book, it might be necessary to provide for the script to pause after each query is run (before it goes on with the next), but I am just guessing.
    Any help is much appreciated!

    There are a couple of others:
    http://forums.adobe.com/message/5173943#5173943
    this is more at code level rather than a GUI, but the actual queries are made using the Find/Change dialog box.
    Also
    http://www.kahrel.plus.com/indesign/grep_query_manager.html
    This is good too, but only does GREP searches (no text, glyph or object find/replaces) that were written by the user - does not use the ones installed with InDesign. Does allow changes by selection, story, document or folder.
    Did try the Doquerylist suggested by Kasyan. This allows GREP/text changes by the user/installed with InDesign, but only applies to a selection or text-thread.
    Always good to have more than one way of accomplishing a task though!

  • Script for Document Setup size...

    Hello All,
         I have a request for a script, not sure how one would go about it but here we go.
    An AI CS4 user selects a shape, they then execute a script that...
    Resizes the Document Setup Art Board to one inch larger (length width) than the selected shape.
    Then a rectangle is drawn in the document and is sized the same as the art board.
    Any help would be great!!!
    Thanks in advanced.
    Anton

    All,
         I am tweaking this script again and have run into a road block that you may have a simple answer for.  When I execute this script when selecting a single object it works perfect, if I execute it while selecting a group of objects the script will not apply the spot color to the selection.  The script will however do everything but apply the spot color.  Here is the latest edit. Thanks for any input.
    Anton
    #target illustrator
    function main() {
         if (app.documents.length == 0) {
              alert('Open a document before running this script');
              return; // Stop script here no doc open…
         } else {
              var docRef = app.activeDocument;
              with (docRef) {
                   if (selection.length == 0) {
                        alert('No items are selected…');
                        return; // Stop script here with no selection…
                   if (selection.length > 1) {
                        alert('Too many items are selected…');
                        return; // Stop script here with selection Array…
                   } else {
                        var ccSpotColor = cmykColor(0, 100, 0, 0);
                        var ccCol = spots.add()
                        ccCol.name = 'CC';
                        ccCol.color = ccSpotColor;
                        ccCol.tint = 100;
                        ccCol.colorType = ColorModel.SPOT;
                        var cc = new SpotColor();
                        cc.spot = ccCol;
                        var selVB = selection[0].visibleBounds;
                        var rectTop = selVB[1] + 36;
                        var rectLeft = selVB[0] - 36;
                        var rectWidth = (selVB[2] - selVB[0]) + 72;
                        var rectHeight = (selVB[1] - selVB[3]) + 72;
                        selection[0].parent.name = 'ARTWORK';
                        selection[0].filled = false;
                        selection[0].stroked = true;
                        selection[0].strokeColor = cc;
                        selection[0].strokeWidth = 1;
                        var regLayer = layers.add(); // Creates Regmark Layer
                        regLayer.name = 'Regmark';
                        var tcLayer = layers.add(); // Creates TC Layer
                        tcLayer.name = 'Through Cut';
                        var ccLayer = layers.add(); // Creates CC Layer
                        ccLayer.name = 'CC';
                             var Cutline = selection[0]
                             Cutline.move(ccLayer, ElementPlacement.INSIDE);
                             var ThroughCutBox = tcLayer.pathItems.rectangle(rectTop, rectLeft, rectWidth, rectHeight, false); //This is TC box
                        ThroughCutBox.stroked = false;
                        ThroughCutBox.filled = true;
                        var tcSpotColor = cmykColor(0, 100, 90, 0);
                        var tcCol = spots.add()
                        tcCol.name = 'TC';
                        tcCol.color = tcSpotColor;
                        tcCol.tint = 100;
                        tcCol.colorType = ColorModel.SPOT;
                        var tc = new SpotColor();
                        tc.spot = tcCol;
                        ThroughCutBox.fillColor = tc;
                             tcLayer.visible = false;// Make TC Layer Invisable     Here
                        artboards[0].artboardRect = (ThroughCutBox.visibleBounds);
                        redraw();
                        rectWidth = (rectWidth-72)/72;
                        rectWidth = roundToDP(rectWidth,1);
                        rectHeight = (rectHeight-72)/72;
                        rectHeight = roundToDP(rectHeight,1);
                        var textString = rectWidth + ' x ' + rectHeight;
                        prompt('Copy Me', textString);
    main();
    function roundToDP(nbr, dP) {
         dpNbr = Math.round(nbr*Math.pow(10,dP))/Math.pow(10,dP);
         return dpNbr;
    function cmykColor(c, m, y, k) {
         var newCMYK = new CMYKColor();
         newCMYK.cyan = c;
         newCMYK.magenta = m;
         newCMYK.yellow = y;
         newCMYK.black = k;
         return newCMYK;

  • The date modified date for documents does not change

    All my documents except for today and yesterday (whenever that happens to be) shows the date modified as being a random date of last year that is not when they were last modified. Does anybody know how to fix the problem so as the documents accurately show when they were last modified?

    Go to website.
    Change it back.
    You will have 2 minutes to delete iCloud from iPhone.
    Change it to new one on website and verify.
    Sign in new one on the phone.

  • Script for document name labels

    How hard would this be?
    A script that would type the file name into the document. I searched for similar threads but no luck. Here are the details...
    1. If the document was named TEST.pdf the script would type TEST in the document.
    2. The font color, size, and type would be Black, Arial Bold,  0.4 in.
    3. The font would be converted to outlines.
    4. A rectangle 0.05" larger than text would be placed around the text.
    5. The rectangle would have no fill and a 100% magenta spot color named "CC" stroke.
    6. The rectangle stroke would be moved to the CC layer (pre-existing layer).
    7. The text "TEST" would be moved to the Artwork layer  (pre-existing layer).
    Thanks for any input or help.
    Anton

    Anton, this should be pretty close for a guide… I don't know what your exact font name would be… so this uses my closest match. Also you don't mention text positioning on the artboard/doc… The stroke is default 1pt as is. The height of the outlined text would be dependent on your font and you may have to tinker with the size where shown…
    #target illustrator
    function docNameToText() {
         if (app.documents.length = 0) {
              return;
         } else {
              var docRef = app.activeDocument;
              var docName = docRef.name;
              var text = docName.replace(/\.(ai|eps|pdf)$/i,'');
              var arialFont = app.textFonts.getByName('ArialMT-Bold'); // Add font name here…
              var nameText = docRef.textFrames.add();
              nameText.contents = text;
              var nameChar = nameText.lines[0].characters;
              for (var i = 0; i < nameChar.length; i++) {
                   nameChar[i].characterAttributes.textFont = arialFont;
                   nameChar[i].characterAttributes.size = 40; // Adjust font size here…
              var textGroup = nameText.createOutline();
              textGroup.position = [36,-36]; // Half Inch down/across from top/left
              var groupBounds = textGroup.visibleBounds;
              var ccLayer = docRef.layers.getByName('CC');
              textGroup.move(ccLayer, ElementPlacement.INSIDE);
              var artLayer = docRef.layers.getByName('Artwork');
              // This can't be the right way to do this now can it?
              var boxTop = groupBounds[1] + 4;
              var boxLeft = groupBounds[0] - 4;
              var boxWidth = (groupBounds[2] - groupBounds[0]) + 8;
              var boxHeight = (-groupBounds[3] - -groupBounds[1]) + 8;
              var spotBox = docRef.pathItems.rectangle(boxTop,boxLeft,boxWidth,boxHeight);
              spotBox.filled = false;
              spotBox.stroked = true;
              //spotBox.strokeWidth = 1; // Default is 1pt
              var ccSpot = docRef.swatches.getByName('CC');
              spotBox.strokeColor = ccSpot.color;
              textGroup.move(artLayer, ElementPlacement.INSIDE);
    docNameToText();

  • In PSE13, when doing a Photomerge Panorama I get a Script Error: "Documents must be saved before they can be merged".

    I'm attempting to merge ten portrait format 24 Mpx JPGs.  The message appears after I click "Add Open Files".
    I get the same message when attempt to merge other files, even a small number of them.
    I've been through the process successfully using PSE12.

    Here's a thread on that:
    http://feedback.photoshop.com/photoshop_family/topics/documents_must_be_saved_before_they_ can_be_merged

  • Online Adobe Interactive Form must be changed before SAVE works properly

    HI guys,
    We are using Adobe Reader X.
    We arr launching an ABAP Web Dynpro application that has an Adobe Interactive Form linked to it.
    Our Adobe Form has many "subforms"  and we determine what you see based off your Web Dynpro choices
    The problem we are having is the display of the Adobe Form will change perfectly, but if you SAVE a copy to your PC using the Adobe buttons, what gets saved to your PC doesn't match what you see on the screen.
    However, if you change any data on the Adobe Form and then SAVE, the version on your PC now matches what you see on the screen.
    Has anyone else run into this?
    Thanks,
    Anthony

    Hi Antony,
    At the 1st intance, you have data completly, and on change event you are making the subforms visibility dyanmically.
    Fine now once the form is saved locally, and then its opened, the Abobe reader doesn't know the visibility status.
    So here again on form ready check the repective field value which treggers its visibility and set its presence.
    For example: if the form is like flowing to different users in a workflow, to maintain its earlier status this is how I do it.
    which mean I will have a same validation and script for both form ready & change events.
    Hope this helps you out.
    Cheers,
    Sai

  • Account determination for document splitting

    hi to everyone,
    When i try to clear the down payment against an invoice in F-39 its gives following error.
    "The online document splitting is active in your system. Here, each document is assigned to a accounting transaction variant and each document row to an item category.
    You determine for each business transaction variant which item categories can or must be posted here.
    A splitting rule is defined for each business transaction variant, which determines which item categories are to be split and how the splitting should be determined.
    Additional rows need to be created in a G/L account that was defined in the account determination in an account determination key.
    The following error occurred for the document you entered:
    No account has been entered for account determination key 000 in the chart of accounts".
    I had activated doc splitting and assigned std  method 0000000012 to it.i have also assign G/L accounts for document splitting. Still i am getting above error.
    Can anybody help me out.?
    its urgent
    thanks in advance
    tanuja naik

    Hi
    Account determination key 000 is for document splitting Zero balance clearing account. Create a clearing account and assign the same.
    Regards
    Venkat

  • I am trying to use the liquify tool for the first time. I created a new document (RGB/8) and before I place my photo, the liquify option is available. After I place the photo, the liquify option disappears. What am I doing wrong?

    I am trying to use the liquify tool for the first time. I created a new document (RGB/8). Before I place my photo, the liquify option is available. After I place the photo, the liquify option disappears. What am I doing wrong?

    What am I doing wrong?
    For one thing you forgot to mention the version of Photoshop you use.
    Did you place the image as a Smart Object? Liquify got Smart-capabilities with Photoshop CC.

  • Script for 'Check Links Before Opening Document' preference

    I'm trying to find the VB script for changing the "Check Links Before Opening Document" checkbox on the File Handling panel in the Preferences dialog? I haven't found any documentation referring to the Links items on that panel.
    Bob

    Thanks for the info.
    Was there a document you pulled this from?
    I have an old document from CS2 days that is invaluable for providing a detailed list of available script methods and properties. Obviously things that have been added in subsequent InDesign releases aren't in this document. Later InDesign CS releases offer script SDKs that contain helpful sample scripts but I don't find a detailed summary similar to one from CS2. Have I just not found them? Or how does one find the script method/property for things not contained in the sample scripts?

  • How Can I write a script for change first indent?

    How can I write a java script to tell indesign:
    what ever the text first indent is, I want to change first indent =
    1) 8mm
    2) 0mm
    3)-8mm (if left indent is 0, change the first indent to 8mm, and then change first indent = -8)
    3 scripts
    Please someone help me, please!

    Hi hasive, thank you for your responses, thank you very much,
    I need three scripts
    1st script, I want to set the first indent to 8mm;
    2nd script, I want to set the first indent to -8 mm, but if the left indent is 0, please set the left indent to >8mm then set the first indent to -8mm;
    3rd, I want to set the first to 0mm, if the first indent is 8mm or -8mm;
    thank you
    Harvey

  • Changing Script Editor Documents format

    I hope I am in the right Forum---I recently purchased a Mac mini/Intel. I did not have AppleWorks migrated over from my iBook so when I first tried reading AppleWork files on the mini from my Zip drive they wouldn't read so I was experimenting with alternate applications such as Script Editor. Something happened!! All my Works files now are shown in Script Editor document format yet unable to open any of them. I have since migrated AppleWorks from my iBook but the only way to open any of these files now is to first open up AppleWorks application then open the newly formatted (formally AppleWorks) file. How do I get all my archived Works files reformatted back from Script Editor??
    Mac mini Intel/iBook G3   Mac OS X (10.4.5)   iBook has OS X (10.3.5)

    Hi, CABJR.
    What I suspect happened is that you used the method outlined in "Mac OS X 10.4 Help: Changing the application that opens a document", selected Script Editor as the application, and used Change All.
    See my "Resetting Launch Services" FAQ. In the section for Tiger begin with step 6, since in this case it's not optional.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X
    Note: The information provided in the link(s) above is freely available. However, because I own The X Lab™, a commercial Web site to which some of these links point, the Apple Discussions Terms of Use require I include the following disclosure statement with this post:
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • Is there a script for changing layer names in ID CS4?

    I have multiple documents with an average of 20 layers in each. Each of the layers is named for the expiration date of the coupon in the ads. When a new order comes in I retrieve the previous files and change the dates via scripts and the Find/Change option. I have looked but cannot find a way to rename the dates in the layers as well.
    Does anyone know of a script for this?
    Thanks in advance!

    E-mail, eh? You're missing out a lot of fun stuff, as there is
    - editing your own posts
    - using bold and italics to highlight important stuff
    - finally being able to shout (some posters think it's necessary to use a large bold font to make their post stand out in the crowd. They are correct, it does. In the Bad way.)
    - inserting images
    - uh, Jive (-- sorry, couldn't think of any more fun stuff to add)
    Visit the scripting forum (using a web browser, s'il vous plait) by clicking here.

Maybe you are looking for

  • HT4356 AirPrint

    Can I use my Iphone hotspot as a router for Airprint to support printing from my Macbook Pro and Ipad?

  • Ipod sound only works for right ear

    Hello. I have an Apple Ipod 5th generation. I have had it for a few months now. Lately, the right channel sound stopped working. Only the left ear works. It does not matter which headphones I use. If i pull the headphone jack out a little bit, I get

  • Sound works with speakers but not without.

    The sound suddenly went off earlier today,can hear when plugged into speakers or head phones only?

  • ISQLplus install problem

    I am trying to install iSQLPlus on a Windows 2000 server. I have 8.1.7 enterprise edition installed currently with just the sample database. The oracle http server seems to run fine and loads the iplus signon form. When I try to enter the login info

  • CS5 and Quicktime

    For those with CS5... is Quicktime included in the install, or should I download from Apple and install myself? If QT is included with CS5... which version?