Duplicate script label warning into preflight panel - possible?

Hello!
Duplicate script labels are creating problems for us.They occur when our graphic designers copy a picture box and forget to change the script label, resulting in two identical images - if the indesign document is closed - and reopened.
Is there any way to either provide a warning for duplicate script labels, and/or a insert duplicate script label-warning in the preflight panel?

Hi Hans,
Thanks for that suggestion.Simple and affective.
Cheers!
Date: Fri, 22 Mar 2013 01:07:21 -0700
From: [email protected]
To: [email protected]
Subject: Indesign script for locating metadata in images
    Re: Indesign script for locating metadata in images
    created by -hans- in InDesign Scripting - View the full discussion
Why scripting¿ http://forums.adobe.com/servlet/JiveServlet/downloadImage/2-5169242-310155/450-213/Copyrig ht.png
     Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5169242#5169242
     Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5169242#5169242
     To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5169242#5169242. In the Actions box on the right, click the Stop Email Notifications link.
     Start a new discussion in InDesign Scripting by email or at Adobe Community
  For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

Similar Messages

  • Script Label insert into FileName

    Any help would be greatly appreciated!
    This is a portion of "PageExporterUtility5.0.js" that I'm tailoring to use at our workplace. Finding a simple description of how to use the "Script Label" is stumping me. How would you modify the following to work? My InDesign document has a Text Frame that I'd like to utilize the text contents in the filename. The text frame has been identified with a "Script Label" called "DOC_SIZE". An example of the text contents would be "18X24" (which is not the actual page size, just a rough description is needed).
    Current Base Name:
    816069-OHI-none-none.indd
    Export Name:
    816069_18X24_"Output Directory".eps
    w/ the Output Directory, I'd like to use the Folder Name, not the full path.
    These are the revalent sections of the script identifying the "outFile" Name.
    VAR SETUP
    for(currentDoc = 0; currentDoc < peuINFO.numDocsToExport; currentDoc++) {
        var tempENTRY = getNewTempENTRY();
        tempENTRY.theDoc = app.documents[currentDoc]
        tempENTRY.singlePage = (tempENTRY.theDoc.documentPreferences.pagesPerDocument==1)?true:false;
        tempENTRY.getOut = true;
        var baseName = (tempENTRY.theDoc.name.split(".ind"))[0];   
        var baseName = baseName.replace(/-OHI-none-none/g, "")
    MIDDLE
        else{
                currentINFO.outfileName = currentINFO.baseName;
                exportPage(currentINFO, PageRange.allPages);
    EXPORT PORTION
        case 2:
                app.epsExportPreferences.pageRange = pgRange;
                    currentINFO.theDoc.exportFile(ExportFormat.epsType, (new File(outFile + ".eps")), false);

    If the problem is getting the text contents of your labeled box, try something like this:
    var docsizeBoxes = new Array;
    for (var i = 0; i < app.activeWindow.activePage.textFrames.length; i++) {
        if (app.activeWindow.activePage.textFrames[i].label == "DOC_SIZE") {
            docsizeBoxes.push(app.activeWindow.activePage.textFrames[i]);
            break; }
    var docsizeString = app.activeWindow.activePage.textFrames[i].contents;
    You should now be able to use docsizeString in parsing out the name of the output file.  This assumes that there will be one and only one text frame labeled "DOC_SIZE" on the active page. So you might need some error checking.
    If it were me, though, I'd just get the actual pageWidth and pageHeight from documentPreferences and use them. In my place, we don't have too many doc sizes to choose from.

  • Is it possible to duplicate an item in the project panel with scripts?

    Hey  all, I'm trying to make a script that will duplicate an item in the project panel. I know you can duplicate an item in a comp, but I'd like to duplicate a project Item...app.project.item(2).duplicate();
    Something like that, is it possible with some other coding to do that?
    Thanks

    Dave, I'm trying to duplicate in a script running inside AE.  I guess I could try to do a system command to duplicate, but I'd really like to do it inside AE so I can keep track of the new layer.

  • Preflight Panel. Could this be DONE?

    Hello.
    I'm fairly new with creating custom panel for Photoshop CS4/CS5 and I'm just wondering if creating a mini Preflight panel that reports details about an active document is possible. Similar to the screenshot below.
    Thanks.

    With Configurator you can do it but configuring a "script button"  (  through your own script)
    but it will display data only when you click the button
    If you want a panel as  shown in the image  you should use  SDK and FlashBuilder:
    http://www.adobe.com/devnet/photoshop.html

  • Suddenly unable to change script labels

    All of the sudden I'm unable to change the script labels for any of the frames in a document I am working on in CS4. Or, to be precise - ID will not remember/honor the changes I've made. I can type in a new value in the Script Label Panel and move on, but when I go back and look at that frame again, the old script label is still there - my change was discarded/disregarded.
    Any ideas? I did restart ID, no change.

    Indeed. That's the next step, but pick a new name so you don't overwrite the old file if possible (or at least back up the old one first if you need to preserve cross-refs).

  • Script Labels Not Working In CC

    Any time I attempt to edit a script label in InDesign CC, the change is not applied.  Clicking off the element results in anything typed being erased. This was a persistent problem for us in CS5 (hitting tab after entering the content made it stick), but was completely resolved in CS6, but is back rearing its ugly head in CC.

    Have you tried searching the forum? There have been several questions regarding this.
    Searching has changed between CS2 and CS4.
    Try putting the script in folder: Applications/Adobe InDesign/Scripts/Scripts Panel/Version 4.0 Scripts

  • Preflight panel Info. shows my placed 300 ppi PDFs at much less effective resolution

    Ï'm brand new to InDesign (graphic designer who primarily works in Illustrator, some Photoshop, until now). I understand resolution and PPI but not necessarily in-depth knowledge of the related necessary workflow needed within InDesign, if that makes sense. I've spent hours and hours the last couple days trying to learn the finer points of InDesign as I work on an ad magazine for my company, but I can't for the life of me figure this particular issue out, and I'm guessing (hoping!) it's a very simple solution.
    I placed several 300 PPI PDF images in the magazine document (vector PDF's I created in Illustrator, saved as editable PDF's).
    I created a Preflight Panel in InDesign with a custom Profile, named it Print Ready, and set image resolution to 250 to ensure as I finish up this magazine design that things are press/print ready. It now shows 5 images with Image resolutions lower than the 250 minimum - all of the pdfs I placed. They all show very low PPI, 74, 109, etc. The 300 PPI pdfs were already sized to the exact proportions they needed to be in the InDesign file and for print, so there was very minimal scaling to fit the images into their frames, so I'm assuming scaling couldn't have created this issue and it has something to do with my workflow and the way I'm bringing them in.
    I'd like to point out that this magazine document was created by another designer, and I'm picking up where they've left off, adding some final images and copy. The other picture images she had in the file appear fine, no errors in Preflight Panel...even some preview stock photo's with the X's across them that appear to be very low resolution (we haven't purchased them and replaced them yet in this InDesign file), so not sure I understand why those are not showing up in my Image Resolution as errors??
    Anyhow, at some point I came across the Document Presets, which is currently set to Default - and when I click Define, I noticed it shows the PPI at 72. Does this mean that files I place are "brought in" at 72 PPI, regardless if their original PPI is higher? And if so, how do I change that?
    If not, how do resolve or correct? 
    Sorry for the very long explanation - just want to give as many details as I can, since I'm not exactly sure which details are important to figuring out the problem. Thanks in advance!!

    I've checked the resolution in Photoshop just as a double-check and it shows resolution as 300 PPI. When you say "because they can be mixed" do you mean because elements and graphics with the PDF can be of varying resolutions? I hadn't thought of that, if that's what you meant. I do have some items within my pdf that might be lower resolution.
    If these show up in my Preflight Panel as an issue, does this mean they would be flagged also with the Printer? In trying to find a resolution I read several forum discussions about how Printers often run your document through a Preflight process and will send it back when there are low resolution images in the document.
    Is there some other way to be sure these images are in the InDesign document as 300 PPI so I can know they will in fact print correctly?
    PS - Peter - thanks for the super quick response! And I saw your the highlighted "Exceptional Contributor" on the right sidebar for the InDesign forum - clearly well-deserved! Congrats

  • How to enable the script label of a text frames in indesign using applescript

    hi all,
    am using Indesign CS2 with applescript..
    Using script I have to open a template in indesign and flow the word document into it...
    I can able to flow the word document into the template using "Place" command..but script labels of the text frames gets disabled...
    I need the script labels to be enabled...
    can anybody help me
    thanks in advance

    Script labels can't be disabled, so I'm not sure what your problem is -- perhaps seeing some code could help. Could it be that you're referencing a page item by label, but it is not responding because the item is part of a group?
    Shane Stanley <[email protected]>
    AppleScript Pro Sessions <http://scriptingmatters.com/aspro>

  • [AS] Script Label Items in a Group

    Hi all,
    I have a group of shapes that, when grouped together in Indesign, form an object.  This grouped object is script labeled "special".  I am trying to script label each of the individual parts of this grouped object "special" so that if users ever mistakenly ungroup the object, I can still manipulate all items with the "special" label...which is effectively my original grouped object.
    The catch is that I need to do this labeling with a script because I have thousands and thousands of files I'm working with.  I'd love it if something like this worked (but it doesn't):
    tell application "Adobe InDesign CS3"
    set theObject to page item "special" of document 1
    set theShapes to every page item of all page items of theObject
    set label of theShapes to "special"
    end tell
    The problem I keep running into is that it seems when an object is grouped, all the objects inside that group become, for all practical purposes, invisible.  The line "set theshapes to every page item of all page items of theObject" returns an empty list "{ }" as though there ARE no items making up the group.
    So then I thought I'd take a more tactile approach.  Select it, ungroup it, label it, group it back:
    tell application "Adobe InDesign CS3"
    set theObject to page item "special" of document 1
    select theObject
    ungroup selection
    set label of selection to "special"
    group selection
    end tell
    The problem with this approach is that after ungrouping the object with a script, there is no longer a selection as there is when doing the same by hand, so trying to set the label of a selection that does not exist produces an error.  Grrrrr.
    Friends, I know this can be done, but I need a little outside perspective on this to help me figure this one out.  As always, thanks in advance for your help!

    OK. Got it working but I'm not sure why. I went back to the bigger script of which the below is a part. And it works fine. I just don't understand why.
    tell application "Adobe InDesign CS4"
         activate
         set myDocument to active document
         set myPage to page pageNum of myDocument
         set active page of layout window 1 to myPage
         if not (exists library "Logowear_Lib.indl") then
              set theFile to open tagsLib
         end if
         set assetPlacer to item 1 of (place asset asset "3_12:13" of library "Logowear_Lib.indl" on myDocument)
         move assetPlacer to myPage
         move assetPlacer to myCoordinates
         set color_code_counter to 5
         set color_box_counter to 1
         tell myDocument
              repeat color_counter times
                   set theColorCode to item color_code_counter of Style_List
                   set oldLabelName to ("CW" & color_box_counter)
                   set newLabelName to my makeImageName(theSap, theColorCode)
                   set label of (object reference of every item of all page items of page pageNum of myDocument whose label = oldLabelName) to newLabelName
                   set color_code_counter to (color_code_counter + 2)
                   set color_box_counter to (color_box_counter + 1)
              end repeat
         end tell
    end tell

  • View all script labels and find an object by its script label

    Hello,
    I have an InDesign document in which many objects get a script label. I know how to view and edit the script label of an object, but is it possible to:
    1 - See a list of all the script labels of the document (as can be done with the styles for example)?
    2 - Search an object in the document by its script label?

    If you are using OSX this AppleScript displays a list of document labels:
    global labels
    set labels to []
    tell application "Adobe InDesign CS6"
        set x to every page item of active document
        repeat with i in x
            if class of i is group then
                my checkGroup(i)
            else
                my getLabel(i)
            end if
        end repeat
        display dialog labels as string
    end tell
    on checkGroup(g)
        tell application "Adobe InDesign CS6"
            set gi to all page items of g
            repeat with a in gi
                if class of a is group then
                    my checkGroup(a)
                else
                    my getLabel(a)
                end if
            end repeat
        end tell
    end checkGroup
    on getLabel(pageitem)
        tell application "Adobe InDesign CS6"
            if label of pageitem is not "" and label of pageitem is not in labels then
                set labels to labels & label of pageitem
            end if
        end tell
    end getLabel

  • Find a text frame on the page with script label

    hello to all
    I need to create a script to
    find a text frame on the page with script label "xxx"
    and read its contents into a variable.
    The content of the text frame is a number.
    thanks

    Hi Roberto,
    Welcome to the forum,
    This will find the labeled textFrame on the active page.
    var myLabel = "Foo", // change to label
          myPage = app.properties.activeWindow && app.activeWindow.activePage,
          myTextFrames = myPage.textFrames.everyItem().getElements().slice(0),
          l = myTextFrames.length,
          myVariable
    while (l--) {
        if (myTextFrames[l].label != myLabel) continue;
        myVariable = myTextFrames[l].contents;
        break; // presuming there's only one "Foo" labeled frame on the page
        // Otherwise you'll nead an array
    alert(myVariable)
    Trevor

  • Pls correct my script for script label creation

    Hi,
    I want to add the script label name in Masterpages only which was in 'Text thread' options. Is this 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 first line I want to create this script label "textpage" for master page 'text thread' text frame only. How to change my script pls help me?
    FYI:
    by
    hasvi

    @hasvi – I don't know if I understand you right. Do you want to label every text frame of a story with the same label value? As a starting point you want to work with a selected text frame of that story?
    If yes, select a text frame, could be any, and run that snippet:
    var textContainersOfStoryArray = app.selection[0].parentStory.textContainers;
    for(var n=0;n<textContainersOfStoryArray.length;n++){
        textContainersOfStoryArray[n].label = "textpage";
    Or do you mean you want to label the primaryTextFrame of the applied master spread, if you selected something on a "normal" page?
    That would be:
    //Object selected on "normal" page:
    var myPrimeryTextFrame = app.selection[0].parentPage.appliedMaster.primaryTextFrame;
    myPrimeryTextFrame.label = "textpage";
    Uwe

  • Script label inside of continuous text?

    Hi there,
    is there a way to add meta data to the content of text boxes or table cells?
    I've seen, that this is possible on text/picture boxes with script labels.
    The problem I have is, that I need something to identify different text strings inside of a text box.
    Any idea?
    Best regards,
    TYPO

    ... using "Tags" was my first intention, as I would like to use them for formatting the content of my textboxes.
    Unfortunately I haven't found anything about "custom" tags (in order to reference strings) in my InDesign Tagged Text manual.
    Can you point me to some reference / manuals / literature?
    Thanx in advance!

  • How do I get the Label for a Front Panel Control to appear in the Block Diagram but not on the Front Panel?

    How do I get the Label for a Front Panel Control to appear in the Block Diagram but not on the Front Panel? On the Front Panel I am making a complex control that consists of a Slider and a Numerical Input box. Both Controls display the same information and either can be used for Input. When one changs, the other is made to display the same value.
     But I only want the Slider to display the Label on the Front Panel, to avoid confusion. On the Block Diagram however, I want both controls to display their Labels so that I know what they are. How do I display the Label for a Control on the Block diagram, but not display its Label on the Front Panel?

    No.  The Label Visible property is separate for the front panel control label and the block diagram terminal label.
    How did you start out with the block diagram's label not being visible?  Whenever I drop a control or indicator, the label is always visible on both the FP and BD by default.  Maybe there is a LabVIEW option that causes new controls/indicators not to have their labels visible by default, but I have yet to find it.  I don't think an item should ever be dropped without the label visible, good LabVIEW coding practice demands that the labels for control terminals on the block diagram be visible so that you know what control or indicator a wire is going to.
    That being said, I have seen a lot of VI's posted where the label for the terminal on the BD is not shown (against good programming practice.)  I've gone to the BD and right clicked to show the label.  Sometimes, the people have an empty label (which will turn off the visibility for both the FP and BD) and I'm forced to add some text of my own into the label so I can figure out what their code is doing.  When I add some text to the label, at that time, I find both the BD and FP labels become visible.
    Are you dealing with controls that have empty labels to start?
    Good programming practices:
    1.  Always have a name for all of your controls, never use and empty label by deleting the text in the label.
    2.  Make the labels unique.  For example, don't have two controls both called Stop.  How do you know quickly know which terminal relates to which control?
    3.  Always show the labels on the block diagram, so you know the function of a control's terminal.  If you want to hide the label on the FP, that's okay.
    4.  If you want a different label to appear on the FP than whatever you actually called the control, then use the caption.  You can hide the label and show the caption.  This is useful if you need to programmatically change what the "label" is on the front panel such if you are making an application that needs to change its user interface such as for a foreign language.

  • Illustrator Script Labels?

    I've done a lot of scripting in InDesign and made quite a bit of use out of nearly everything's script label. Now I'm working on a template-oriented Illustrator project that will require I store information about each layer somewhere in the file... just a 1 or 2 word description that would have fit nicely in a script label. However, I discovered there are no script labels. Does anyone have a suggestion how I might store information in an .ai file that can be retrieved later by a different script? At the very least I want to be able to store the name of one of the root layers as the primary layer (position won't help in identifying the primary label). I looked into keywords and xmpdata, but I haven't been able to get it to store anything and I'm not quite sure it's going to be much help.
    Thanks,
    Ben

    Ben:
    You can name items in AI and refer to them in a script.
    If you're on a Mac using Applescript you could do something like:
    make new ellipse at beginning with properties {name:"BensCircle",}
    then to call it you could use:
    set selection to page item "BensCircle"
    Also, if you bring up your Attributes palette, hit the flyout and there is an option to "Show Note". You can store notes about objects in it (but it doesn't work on Layers as you might hope). The Notes are also accessible to scripting.
    Hope this helps (somehow).

Maybe you are looking for

  • FTP Adapter not polling

    Hi, We have a clustered environment in Oracle SOA 10.1.3.4 MLR#1. We are setting up 3 different bpel processes polling 3 different locations and using 3 different data source. When we deploy them none of the ftp polling is working. We looked at vario

  • Troubles with LMS and Explorer

    Goodmorning everybody, The past two months i've been trying to create a aw-piece that works in a LMS (SABA). Finally, technical speaking, it works. Still I have my doubts about it.... First, i've have used a java-code which communicates with the lms,

  • Newbee to APEX4.1: "Install" issue

    OK, I'm a pinhead... But, if: a. I have sysdba privileges (because that's the way I installed Oracle Express 10g and Oracle Express 11g (two different computers) and b. If I run SQL Developer on either machine and c. Run apexins.sql within SQL Develo

  • Hi, i try to buy something in a application and a message "connections impossible a l'iTunes store"

    What si the problem because when i'm buying music everything work?????

  • Ipad won't charge -- need to back it up

    My iPad will not charge and itunes will not detect it. I called Apple and they sent me a replacement cord but still nothing. I am reading on many sites that they will replace it so I need to get my stuff off my ipad. What is going to be the best way