Modification of the Script label

Hello

I've been watching the script of the label provided with InDesign CS3 and I made a few small changes, but I am confused on how I can remove the drop down menus to apply a Swatch and Style apply, I want that just use 1 swatch and 1 model I made?

can someone help me with that please?

Concerning

Seth

JavaScript is not a standard feature, so you'll have to make your own:

function padToFour(number) {
  if (number<=9999) { number = ("000"+number).slice(-4); }
  return number;
}

(sidenote, I wonder who wrote the original scripts for adobe examples)

Tags: InDesign

Similar Questions

  • Automatic measures only 1 color ink (modification of the script)

    Hi all

    I need to modify this script as well as bring the measure already in are... PANTONE Pantone 485 (solid coated),

    I need to change this string, but do not know how...

    Thank you very much

    line color measurement

    var color = new RGBColor;                                              How to change it, to the ink pantone...?

    255 = Color.Green;

    0 = Color.Blue;

    /*
    * Description: An Adobe Illustrator script that automates measurements of objects. This is an early version that has not been sufficiently tested. Use at your own risks.
    * Usage: Select 1 to 2 page items in Adobe Illustrator, then run this script by selecting File > Script > Other Scripts > (choose file)
    * License: GNU General Public License Version 3. (http://www.gnu.org/licenses/gpl-3.0-standalone.html)
    *
    * Copyright (c) 2009. William Ngan.
    * http://www.metaphorical.net
    */
    
    
    // Create an empty dialog window near the upper left of the screen 
    var dlg = new Window('dialog', 'Spec');
    dlg.frameLocation = [100,100];
    dlg.size = [250,250];
    
    
    dlg.intro = dlg.add('statictext', [20,20,150,40] );
    dlg.intro.text = 'First select 1 or 2 items';
    
    
    dlg.where = dlg.add('dropdownlist', [20,40,150,60] );
    dlg.where.selection = dlg.where.add('item', 'top');
    dlg.where.add('item', 'bottom');
    dlg.where.add('item', 'left');
    dlg.where.add('item', 'right');
    
    
    dlg.btn = dlg.add('button', [20,70,150,90], 'Specify', 'spec');
    
    
    
    
    
    
    // document
    var doc = activeDocument;
    
    
    // spec layer
    try {
              var speclayer =doc.layers['spec'];
    } catch(err) {
              var speclayer = doc.layers.add();
              speclayer.name = 'spec';
    }
    
    
    // measurement line color
    var color = new RGBColor;
    color.green = 255;
    color.blue = 0;
    
    
    // gap between measurement lines and object
    var gap = 2;
    
    
    // size of measurement lines.
    var size = 10;
    
    
    // number of decimal places
    var decimals = 0;
    
    
    // pixels per inch
    var dpi = 72;
    
    
    /**
              Start the spec
    */
    function startSpec() {
      
              if (doc.selection.length==1) {
                        specSingle( doc.selection[0].geometricBounds, dlg.where.selection.text );
              } else if (doc.selection.length==2) {
                        specDouble( doc.selection[0], doc.selection[1], dlg.where.selection.text );
              } else {
                                  alert('please select 1 or 2 items');
              }
    
    
              dlg.close ();
    }
    
    
    
    
    
    
    
    
    /**
              Spec the gap between 2 elements
    */
    function specDouble( item1, item2, where ) {
      
              var bound = new Array(0,0,0,0);
    
    
              var a =  item1.geometricBounds;
              var b =  item2.geometricBounds;
      
              if (where=='top' || where=='bottom') {
      
                        if (b[0]>a[0]) { // item 2 on right,
      
                                  if (b[0]>a[2]) { // no overlap
                                            bound[0] =a[2];
                                            bound[2] = b[0];
                                  } else { // overlap
                                            bound[0] =b[0];
                                            bound[2] = a[2];
                                  }
                        } else if (a[0]>=b[0]){ // item 1 on right
      
                                  if (a[0]>b[2]) { // no overlap
                                            bound[0] =b[2];
                                            bound[2] = a[0];
                                  } else { // overlap
                                            bound[0] =a[0];
                                            bound[2] = b[2];
                                  }
                        }
    
    
                        bound[1] = Math.max (a[1], b[1]);
                        bound[3] = Math.min (a[3], b[3]);
      
              } else {
      
                        if (b[3]>a[3]) { // item 2 on top
                                  if (b[3]>a[1]) { // no overlap
                                            bound[3] =a[1];
                                            bound[1] = b[3];
                                  } else { // overlap
                                            bound[3] =b[3];
                                            bound[1] = a[1];
                                  }
                        } else if (a[3]>=b[3]){ // item 1 on top
      
                                  if (a[3]>b[1]) { // no overlap
                                            bound[3] =b[1];
                                            bound[1] = a[3];
                                  } else { // overlap
                                            bound[3] =a[3];
                                            bound[1] = b[1];
                                  }
                        }
      
                        bound[0] = Math.min(a[0], b[0]);
                        bound[2] = Math.max (a[2], b[2]);
              }
              specSingle(bound, where );
    }
    
    
    
    
    /**
              spec a single object
              @param bound item.geometricBound
              @param where 'top', 'bottom', 'left,' 'right'
    */
    function specSingle( bound, where ) {
    
    
      
              // width and height
              var w = bound[2]-bound[0];
              var h = bound[1]-bound[3];
    
    
              // a & b are the horizontal or vertical positions that change
              // c is the horizontal or vertical position that doesn't change
              var a = bound[0];
              var b = bound[2];
              var c = bound[1];
      
              // xy='x' (horizontal measurement), xy='y' (vertical measurement)
              var xy = 'x';
      
              // a direction flag for placing the measurement lines.
              var dir = 1;
      
              switch( where ) {
      
                        case 'top':
                                  a = bound[0];
                                  b = bound[2];
                                  c = bound[1];
                                  xy = 'x';
                                  dir = 1;
                                  break;
      
                        case 'bottom':
                                  a = bound[0];
                                  b = bound[2];
                                  c = bound[3];
                                  xy = 'x';
                                  dir = -1;
                                  break;
      
                        case 'left':
                                  a = bound[1];
                                  b = bound[3];
                                  c = bound[0];
                                  xy = 'y';
                                  dir = -1;
                                  break;
      
                        case 'right':
                                  a = bound[1];
                                  b = bound[3];
                                  c = bound[2];
                                  xy = 'y';
                                  dir = 1;
                                  break;
      
              }
    
    
              // create the measurement lines
              var lines = new Array(); 
      
              // horizontal measurement
              if (xy=='x') {
      
                        // 2 vertical lines
                        lines[0]= new Array( new Array(a, c+(gap)*dir) );
                        lines[0].push ( new Array(a, c+(gap+size)*dir) );
                        lines[1]= new Array( new Array(b, c+(gap)*dir) );
                        lines[1].push( new Array(b, c+(gap+size)*dir) );
      
                        // 1 horizontal line
                        lines[2]= new Array( new Array(a, c+(gap+size/2)*dir ) );
                        lines[2].push( new Array(b, c+(gap+size/2)*dir ) );
      
                        // create text label
                        if (where=='top') {
                                  var t = specLabel( w, (a+b)/2, lines[0][1][1] );
                                  t.top += t.height;
                        } else {
                                  var t = specLabel( w, (a+b)/2, lines[0][0][1] );
                                  t.top -= t.height;
                        }
                        t.left -= t.width/2;
      
              // vertical measurement
              } else {
      
                        // 2 horizontal lines
                        lines[0]= new Array( new Array( c+(gap)*dir, a) );
                        lines[0].push ( new Array( c+(gap+size)*dir, a) );
                        lines[1]= new Array( new Array( c+(gap)*dir, b) );
                        lines[1].push( new Array( c+(gap+size)*dir, b) );
      
                        //1 vertical line
                        lines[2]= new Array( new Array(c+(gap+size/2)*dir, a) );
                        lines[2].push( new Array(c+(gap+size/2)*dir, b) );
      
                        // create text label
                        if (where=='left') {
                                  var t = specLabel( h, lines[0][1][0], (a+b)/2 );
                                  t.left -= t.width;
                        } else {
                                  var t = specLabel( h, lines[0][0][0], (a+b)/2 );
                                  t.left += size;
                        }
                        t.top += t.height/2;
              }
      
              // draw the lines
              var specgroup = new Array(t);
      
              for (var i=0; i<lines.length; i++) {
                        var p = doc.pathItems.add();
                        p.setEntirePath ( lines[i] );
                        setLineStyle( p, color );
                        specgroup.push( p );
              }
    
    
              group(speclayer, specgroup );
    
    
    }
    
    
    
    
    /**
              Create a text label that specify the dimension
    */
    function specLabel( val, x, y) {
      
                        var t = doc.textFrames.add();
                        t.textRange.characterAttributes.size = 8;
                        t.textRange.characterAttributes.alignment = StyleRunAlignmentType.center;
    
    
                        var v = val;
                        switch (doc.rulerUnits) {
                                  case RulerUnits.Inches: 
                                            v = val/dpi;
                                            v = v.toFixed (decimals);
                                            break;
      
                                  case RulerUnits.Centimeters:
                                            v = val/(dpi/2.54);
                                            v = v.toFixed (decimals);
                                            break;
      
                                  case RulerUnits.Millimeters:
                                            v = val/(dpi/25.4);
                                            v = v.toFixed (decimals);
                                            break;
      
                                  case RulerUnits.Picas:
                                            v = val/(dpi/6);
                                            var vd = v - Math.floor (v);
                                            vd = 12*vd;
                                            v =  Math.floor(v)+'p'+vd.toFixed (decimals);
                                            break;
      
                                  default:
                                            v = v.toFixed (decimals);
                        }
      
                        t.contents = v;
                        t.top = y;
                        t.left = x;
      
                        return t;
      
    }
    
    
    function setLineStyle(path, color) {
                        path.filled = false;
                        path.stroked = true;
                        path.strokeColor = color;
                        path.strokeWidth = 0.5;
      
                        return path;
    }
    
    
    
    
    /**
    * Group items in a layer
    */
    function group( layer, items, isDuplicate) {
      
              // create new group
              var gg = layer.groupItems.add();
    
    
              // add to group
              // reverse count, because items length is reduced as items are moved to new group
              for(var i=items.length-1; i>=0; i--) {
      
                        if (items[i]!=gg) { // don't group the group itself
                                  if (isDuplicate) {
                                            newItem = items[i].duplicate (gg, ElementPlacement.PLACEATBEGINNING);
                                  } else {
                                            items[i].move( gg, ElementPlacement.PLACEATBEGINNING );
                                  }
                        }
              }
      
              return gg;
    }
    
    
    
    
    
    
    
    
    // ----------------------------------------------------------------------------------------------------------------------------------------
    
    
    dlg.btn.addEventListener ('click', startSpec );
    dlg.show();
    
    

    As a first step, you must necessarily swatches Pantone in your document.

    Then it's easy:

    Change this:

    // measurement line color
    var color = new RGBColor;
    color.green = 255;
    color.blue = 0;
    

    to do this:

    // measurement with Pantone line color
    var color = doc.swatches.getByName('Pantone 485 C').color
    

    That's all.

  • Pls fix my script for the creation of script label

    Hello

    I want to add the script label name in Masterpages only which was in options 'thread of text. Is it possible by script?

    This is my code

    var myTextFrame=app.selection[0];
    myTextFrame.label="textpage";
    var myNextFrame=myTextFrame.nextTextFrame;
    while(myNextFrame !=null)
    {
        myNextFrame.label="textpage";
        myNextFrame=myNextFrame.nextTextFrame;
        
    }
    
    
    Instead of first line I want to create this script label "textpage" for master page 'text thread' text frame only
    

    Instead of the first line, I want to create this script name "enriched" page master "thread of text" text frame only. How to change my script pls help me?

    FOR INFO:

    1.png

    by

    hasvi

    Hi Hasvi,

    Try this.

    var doc = app.activeDocument;
    var mspreads = doc.masterSpreads;
    
    for(var i =0;i1)
            {
                    var txfmlength = mspreads[i].textFrames;
                    for(var j=0;j
    

    Kind regards

    Cognet

  • Suddenly unable to change script labels

    All of a sudden, I can't change the labels of script for one of the images in a document that I'm putting in CS4. Or, to be precise - ID won't remember/honor the changes I made. I can type a new value in the Script label Panel and pass, but when I go back and look at this new framework, the old script label is always there - my change was scrapped / unknown.

    Any ideas? I have restart ID, without change.

    Try an export to .inx...

  • Run the Script on the Open Document event

    OK so I know about the spectacle of afterOpen and I think I understand how to use it, however, I do not understand how to open to a specific document.

    I don't want this script runs on all the documents that I opened, I would like to incorporate into a document and then run it whenever I open this document. Is this possible?

    Maybe run the script in the script label?

    Or I just put a script in the start Panel, and then create a session script that checks the name of each document open and then runs the script, if I have a match?

    Thank you

    As you chart put it in the startup scripts folder

    //startup script
    #targetengine "session"
    main();
    function main(){
        var myEventListener = app.eventListeners.add("afterOpen", excuteScriptLabel);
    }
    
    function excuteScriptLabel(myEvent){
              //The parent of the event is the document.
              var myDocument = myEvent.parent;
        if (myDocument.constructor.name == "Document") {
            if (myDocument.label != "")
                app.doScript(myDocument.label, ScriptLanguage.javascript);
        }
    }
    

    Then try this line on a document and save it, and then open the same file and a few others, you will notice that this code only run on this document:

    app.activeDocument.label = "alert (\"Yes\");";
    
  • After using the iphone app, I get error: "unable to get labels for the script.

    Hello

    I think that this is related to the iphone app for Adobe Story. I added some comments on my script using the application, now when I try and open my script, I get an error; "Unable to get labels for the script.

    I tried Internet Explorer 9 and the desktop application. Both produce the same error.

    The script is completed to 55 pages, so I really don't want to lose...

    Thank you

    Hi Chris,

    We have fixed the problem and shared the document with you back. You can accept the notification, copy the document into a new (to be an owner) and work on it now. Meanwhile, we will also investigate why the problem occurred at all.

    Sorry for the inconvinience.

    Kind regards

    Sunny

  • Modification of the example Script to harvest in the ID

    I need help changing the way brand script sample harvesting works in InDesign.

    It works very well for the addition of benchmarks of crop to the objects in the document, but my company needs to be placed slightly different crop marks.  The best way I can describe it is to refer to the example below. The script gives item A crop marks.   I need them to resemble the B element. Both sets show crop marks that are long quarter of an inch and a quarter inch away from the image. I need them to be linked as b. and have the long side of the crop mark be the edge and not the short side, as if it has.

    sample2.png

    Ideally, we would have also the script create a text box created for text in Bell Gothic Std, "BOLD", 9 pt, centered between the marks of low crop, but it's just in a perfect world.

    Any help is appreciated as I have no knowledge script to do this on my own and do not have the opportunity to learn.

    Thank you!!

    Ann

    * Ceci post earlier in the regular indesign forum by mistake. My apologies for the double post.

    Write a completely new scenario is easier than figgering what to change, then:

    prevHMU = app.activeDocument.viewPreferences.horizontalMeasurementUnits;
    prevVMU = app.activeDocument.viewPreferences.verticalMeasurementUnits;
    app.activeDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.POINTS;
    app.activeDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.POINTS;
    for (s=0; s
    

    Copy, paste into a text editor (or in the ExtendScript editor that comes with InDesign). Save it as "MyCustomCropmarks.jsx" (or any other useful name) in your scripts folder.

    The script creates the four points and the text box as a bonus. The police should be put right - if it errors on this line, the name maybe isn't correct.

    Use: select one or more of your images and double-click the script. (It's true: it also works on more than one image!)

  • How to change the label color in the script Labelgraphics in?

    I use the ID CS4 and run the script Labelgraphics to tag multiple images in a document of great size. When I run the script thre, the box with the name of the file is transparent with black text. I wish that the box was white with black text. Is it possible to edit the script that will allow this? It would be great if there was a 'style of object' in addition to 'paragraph style' in the pop-up of script execution. Anyone?

    I was going to try but decided to look around a bit. See Change Script adds captions from the Clipboard to Images. The script modified by Steve Wareham allows to set a background color; and you can use the drop-down list Style to select a paragraph style that has "[Book]" as the color of the text.

    [Edit] UM. You want black text. Well, essentially it is that put you it in the style of paragraph for your caption, so still no sweat.

  • launchd works but the script is run?

    I have looked for answers here, but could not find them. So my question is this: I created a launchd like this: com.schedule.arp.plist

    <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>com.schedule.arp.plist</string> <key>ProgramArguments</key> <array> <string>/Library/Scripts/arp.sh</string> </array> <key>StartInterval</key> <integer>300</integer> </dict> </plist>

    I can see that the computer runs every 5 minutes as it should. Here is the console:

    Apr 21 09:46:39 eps-amsterdam com.apple.xpc.launchd [1] (com.schedule.arp.plist [2946]): Service came out with abnormal code: 1 Apr 21 09:51:39 eps-amsterdam com.apple.xpc.launchd [1] (com.schedule.arp.plist [3274]): Service came out with abnormal code: 1 Apr 21 09:56:39 eps-amsterdam com.apple.xpc.launchd [1] (com.schedule.arp.plist [3554]): Service came out with abnormal code: 1 Apr 21 10:01:39 eps-amsterdam com.apple.xpc.launchd [1] (com.schedule.arp.plist [4156]): Service came out with abnormal code: 1

    The actual script is here:/Library/Scripts/arp.sh it contains the following:

    #!/bin/sh sudo php56 /opt/local/apache2/htdocs/epsamsterdam/arpreach_full/a.php cli/auto

    But this last part is not executed? Manual to hit this command in the terminal works very well. So where should I go wrong? I am running to El Capitan 10.11.4

    First, if the job should run as root, it should be in/Library/LaunchDaemons with appropriate permissions (owned by and writable only by root). Eliminate the 'sudo' to the script. Provide the full paths to 'php56' and ' cli/auto '.

  • How can I get the control specifies a reference (by the script)?

    By what method of property can I control that specifies a reference? (See an example of a reference to the code snippet).

    When I reference (ControlReferenceConstant in the script), I can't get control of the reference points to. I guess it's done with the property ' reference control bound to. " But I don't know how to convert the variant to the control. Conversion to the control class does not work. (See excerpt below). Conversion does not return an error, but the reference is not valid.

    A few details: the variant contains a reference to a control and has a name matching [2]. The type of reference data is just as well [3]. But the reference is 0, which is of course invalid digital show (seen in the probe and indicator).

    An entire book would be to iterate through all controls (indicators included as well as items in clusters and berries). The label could be the first check. But because they do not have to be unique is not enough. As a second step could be verified that the ReferenceConstant is listed by the property "nodes of control."(delede contrôle) reference ".

    [1] LV12 helps ControlReferenceConstant properties:

    http://zone.NI.com/reference/en-XX/help/371361J-01/lvscript/controlreferenceconstant_p/

    [2] get the variant name with:

    Select 'Type of Show' in the context menu of indicator varying or

    OpenG VI 'get name of data '.

    NIs in \Utility\VariantDataType\GetTypeInfo.vi VI

    [3] get the Refnum Type in the variant with

    NIs in \Utility\VariantDataType\GetRefnumInfo.vi VI

    If you look at using the property, you will see that it actually returns the data type of the node, not the actual control. That's way, you cannot use the reference in variant - it's not a real reference to a control.

    I think it's all just an oversight that no one added to the relevant property to the node, but there is a simpler solution for you that I think should work, that should come to him on the other side - for each control in the public Service, get the property [] of control reference nodes and it look for the reference of your node. If you found it, the node made reference to this control.

  • management of the script errors when using the step of the call placed

    I have a script which is activated by a trigger of jtapi. At some point places the caller on hold, makes a call using step Place call, plays a prompt and then terminates the call.

    If the trigger (first contact) hangs up when the phone for the second contact rings, when the second contact answers the phone plays the default script or "Sorry we currently live the problems of the system."

    Here's what I did (without success) to try to get around it: changed the default script for the application (do not know why it does not work.) This logic is invoked in a subflow, maybe that's the problem?), placed a Terminate step for the second contact in case of square step call, put in a bunch of steps On Error Goto who attend a stage finish to the second contact.

    Brandon, until the original caller is replaced, an 'exception' will be thrown.

    To make up for it, to the step "On Exception GoTo" > choose the ContactInactiveException > choose the label you want the call to go into the script > clears the exception (on no exception) and then play your .wav file (sorry, the band hung up.. blah, blah) > and then terminate.

    who should git'r done.

    Pleae rate useful positions.

  • Apply the shift via the script

    Hello

    from Toon Boom, I have many animations frame by frame vectored in the form of PDF files that need to be converted to SVG.

    Using an Illustrator script I found on the web, it is no big deal.

    This is the script:

    /**********************************************************
    
    
    ADOBE SYSTEMS INCORPORATED 
    Copyright 2005-2010 Adobe Systems Incorporated 
    All Rights Reserved 
    
    
    NOTICE:  Adobe permits you to use, modify, and 
    distribute this file in accordance with the terms
    of the Adobe license agreement accompanying it.  
    If you have received this file from a source 
    other than Adobe, then your use, modification,
    or distribution of it requires the prior 
    written permission of Adobe. 
    
    
    *********************************************************/
    
    
    /**********************************************************
    
    Save as SVGs.jsx
    
    
    DESCRIPTION
    
    
    This sample gets files specified by the user from the 
    selected folder and batch processes them and saves them 
    as SVGs in the user desired destination with the same 
    file name.
    
    
    Based on Adobe's "Save as PDFs" sample script, intended for Illustrator CS6
    
    **********************************************************/
    
    
    // Main Code [Execution of script begins here]
    
    
    // uncomment to suppress Illustrator warning dialogs
    // app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;
    
    
    var destFolder, sourceFolder, files, fileType, sourceDoc, targetFile, svgSaveOpts;
    
    
    // Select the source folder.
    sourceFolder = Folder.selectDialog( 'Select the folder with Illustrator files you want to convert to SVG', '~' );
    
    
    // If a valid folder is selected
    if ( sourceFolder != null )
    {
      files = new Array();
      fileType = prompt( 'Select type of Illustrator files to you want to process. Eg: *.ai', '*.pdf' );
    
      // Get all files matching the pattern
      files = sourceFolder.getFiles( fileType );
    
      if ( files.length > 0 )
      {
      // Get the destination to save the files
      destFolder = sourceFolder;
      for ( i = 0; i < files.length; i++ )
      {
      sourceDoc = app.open(files[i]); // returns the document object
    
      // Call function getNewName to get the name and file to save the SVG
      targetFile = getNewName();
    
      // Call function getSVGOptions get the SVGSaveOptions for the files
      svgSaveOpts = getSVGOptions( );
    
      // Save as svg
      sourceDoc.exportFile(targetFile, ExportType.SVG, svgSaveOpts );
    
    
      sourceDoc.close();
      }
      alert( 'Files are saved as SVG in ' + destFolder );
      }
      else
      {
      alert( 'No matching files found' );
      }
    }
    
    
    
    
    /*********************************************************
    
    
    getNewName: Function to get the new file name. The primary
    name is the same as the source file.
    
    
    **********************************************************/
    
    
    function getNewName()
    {
      var ext, docName, newName, saveInFile, docName;
      docName = sourceDoc.name;
      ext = '.svg'; // new extension for svg file
      newName = "";
    
      for ( var i = 0 ; docName[i] != "." ; i++ )
      {
      newName += docName[i];
      }
      newName += ext; // full svg name of the file
    
      // Create a file object to save the svg
      saveInFile = new File( destFolder + '/' + newName );
    
    
    
      return saveInFile;
    }
    
    
    
    
    function getSVGOptions()
    {
      var svgSaveOpts = new ExportOptionsSVG();
    
    
      //just using defaults aside from what's written below
      //see http://cssdk.host.adobe.com/sdk/1.0/docs/WebHelp/references/csawlib/com/adobe/illustrator/ExportOptionsSVG.html
    
      svgSaveOpts.embedRasterImages = true;
    
      return svgSaveOpts;
    }
    

    Due to some other issues, I am currently for any compensation my graphics using the object > path > offset in Illustrator and assigning a value of 0.001 mm.

    I thought that it is the simplest solution, and after that, the graphics are perfectly fine.

    The problem is that it is not only a few simple graphics, but animations with often more than 200 images (which would mean 200 PDF files to edit).

    It manually all would be almost impossible.

    So I'm wondering if there isn't a way to add the offset command to the script, so all of my PDF files have been applied all offset by being converted into SVG.

    Would it be possible (I'm really hoping so)?

    I just need a way to automate that. An action recording can be useful for some images, but I think rather in a batch operation.

    Thank you!

    but you can use actions on a lot!

    Use the 'batch' option in the drop down palette menu actions. It allows you to perform an action on a folder of files.

  • Select all the script maps

    Hi all

    Hoping someone out there can help, I need my script to end with one of the following 3 options:

    Select all: as in "cmd one"

    Select all the objects on the layer "Tabs".

    Select all the objects with the Script title boxes"tabs".

    Reason being, when the script ends I need a bunch of boxes to be pre-selected loan for a manual deselect by 1 point (chosen by the user) and then they Deletes selected objects manually to finish. (I didn't understand my original script here as has no impact on the autonomous part I need for the final selection)

    Hoping that this is a simple script but as it is rare to have a script of object selection and not do something with them, I think it's impossible to create.

    Thank you, Bren

    Read the object model and you will find that the equivalent script Cmnd + A is as follows:

    app.selection = null;
    pItems = app.windows[0].activeSpread.pageItems;
    app.select (pItems, SelectionOptions.ADD_TO);
    

    To select all items in the layer tab page, filter the items in the page:

    app.selection = null;
    pItems = app.windows[0].activeSpread.pageItems;
    
    for (i = pItems.length-1; i >= 0; i--) {
      if (pItems[i].itemLayer.name === 'Tab') {
        app.select (pItems[i], SelectionOptions.ADD_TO);
      }
    }
    

    To select objects with a certain script label is a variant of the (or an addition to) the second script.

    Peter

  • hide the text label in the section report IR under certain conditions

    Hello
    We have a textlabel and a calculated field in a section of report to the IR 11.1.2.1. Is it possible (in a script) to hide the textlabel and field based on certain conditions, like for example, if the field computes to 'zero '?
    Thank you.

    Use a field instead of the text label. In the Expression Editor you can use the function if() {} else {}

    HTH

    Wayne

  • is it mandatory to run the script preclone.pl on DB level as well as on retainer for Apps

    Hi guys,.

    is it mandatory to run the script preclone.pl on DB level as well as on the application on the Source layer.

    If I'm not going to run the preclone script then cloning is possible?

    Environment:

    Oracle Apps: R12

    Database: 10.2

    Kind regards
    Sachin

    is it mandatory to run the script preclone.pl on DB level as well as on the application on the Source layer.

    Yes, it's mandatory.

    If I'm not going to run the preclone script then cloning is possible?

    Cloning can be done without preclone. You can run preclone while the services are on the rise and running.

    FAQ: Cloning Oracle Applications Release 11i [ID 216664.1]--19. # Don't fast Clone modifies the source system?

    Thank you
    Hussein

Maybe you are looking for

  • officetimeline

    I switched from PC to Mac at work, but find the desktop calendar does not work. Is there something comparable?

  • What is banner do not work and how I can remove it?

    When surfing the net a page sometimes appears with a few survey questions or turn away to a Dr. OZ page. In the address of the Web site, it displays Server.BannersDontWorkHow can I remove this and prevent it don't bother me again?

  • How to install the display on the satellite Pro 4600 driver?

    I can't find the option to do so. Can someone explain to me on how I can do this?I don't see an option so on the control unit of the device.What option do? Thanks in advance! Any help will be greatly appreciated. Post edited by: Thierry

  • Series T440S appears as R8000000 in the BIOS

    I recently bought a t440s from a friend, and I wanted to search for its guarantee. The serial number under the battery is recognized by the lenovo warranty check, but in the bios, the serial number is R8000000, this would become a problem for me in t

  • Problem with "unknown error" when burning DVD

    I'm having problems to burn a DVD after manufacturing and save the file to Windows Live Movie maker, I am trying to burn the DVD and it takes forever to get to 83,0% and stops before burning.  99%, stops the burn and I get an unspecified error.  I'm