Use Javascript to select artwork on a particular artboard?

Is there a way to use Javascript to select all artwork on a particular artboard?
Or if you couldn't designate the selection based on the artboard index, another way i could see doing it would be to select all artwork within a bounding box? For example if i were to measure the artboardRect of an artboard and then set the selection to all pageItems within that bounding box?
Thanks in advance!

awesome. i'll keep that one for my records. for my purposes right now, the selection by active artboard function is perfect. now i just need to work out how to loop through each pathItem within that selection and determine if it contains a certain spot color (and if it does, add to a counter of some sort) and verify that the number of occurrences of that spot color equal the total number of arboards in the doc (that is to say.. verify that a certain spot color exists at least once on every artboard).
so i assure you i'll be back to soak up as much of your experience and knowledge as i can get my grubby paws on. =)
Thanks again, so much. you've been incredibly helpful. CarlosCanto as well.

Similar Messages

  • I am currently using Lightroom 5.6 and operating on a Mac with OSX Ver 10.9.5. I am receiving an error problem when doing the following -  I am exporting selected photos from a particular Catalogue saved on Drive 1 to a folder created on another Drive whe

    Hi, I am having a little trouble with exporting images to another drive and Catalogue and need some help if anyone can give me some advice
    I am currently using Lightroom 5.6 and operating on a Mac with OSX Ver 10.9.5.
    I am receiving an error problem when doing the following -
    I am exporting selected photos from a particular Catalogue saved on Drive 1 to a folder created on another Drive where a Lightroom Catalogue has been created. In this Catalogue I have arranged for the images once exported to be moved to a different folder - I used the Auto Import process under the File dialogue box.
    When processing the Export I receive an error message for each of the images being exported indicating the following -
    Heading Import Results
    Some import operations were not performed
    Could not move a file to requested location. (1)
    then a description of the image with file name
    Box Save As                                  Box  OK
    If I click the OK button to each image I can then go to the other Catalogue and all images are then transferred to the file as required.
    To click the OK button each time is time consuming, possibly I have missed an action or maybe you can advise an alternative method to save the time in actioning this process.
    Thanks if you can can help out.

    Thank You, but this is a gong show. Why is something that is so important to us all so very, very difficult to do?

  • How do I use Javascript to populate a text field based on a selection from a drop down box?

    Greetings,
    I have virtually no experience with JavaScript and I am trying to figure out how to add some basic automation features to an Adobe form.  I have a drop down box called "Hospital_Name" that will contain approximately 7 possible selections.  When the user makes a selection, I would like to have the text field (called "Hospital_Address") below the drop down box populate with the corresponding address for the selection.  I have the "Hospital_Address" text field configured for multiple lines and would like the address to have a line break between the street address and the city/state/zip.
    For example, if the user selected "Hospital 1", the text field would display:
    123 Main St
    Anytown, CA 12345
    Any help or examples you can provide would be greatly appreciated.

    You have the element names within the object within brackets.
    Make sure your brackets are properly placed and matched.
    // Place all pre-population data into a single data structure
    var Location = {
    "--Hospital--":{ line1: " ", line2: " " },
    "Bellevue Medical Center":{ line1: "2500 BMC Drive", line2: "Bellevue, NE 68123" },
    "CHI Bergan Mercy":{ line1: "7500 Mercy Road", line2: "Omaha, NE 68124" }, 
    "CHI Immanuel":{ line1: "6901 N. 72nd Street", line2: "Omaha, NE 68122" }, 
    "CHI Lakeside":{ line1: "16901 Lakeside Hills Court", line2: "Omaha, NE 68130" }, 
    "CHI Midlands":{ line1: "11111 S. 84th Street", line2: "Papillion, NE 68046" },
    "Creighton University Medical Center":{ line1: "601 N. 30th Street", line2: "Omaha, NE 68131" },
    "Nebraska Medical Center":{ line1: "4400 Emile Drive", line2: "Omaha, NE 68105" }
    // some debugging code to see location names;
    console.show();console.clear():
    for(I in Location) {
    console.println(I);
    // end debugging code;
    function SetFieldValues(Hospital_Name) {
        this.getField("AddLine1").value = Location[Hospital_Name].line1;
        this.getField("AddLine2").value = Location[Hospital_Name].line2;
    This is not a beginners task but requires a fair amount of knowledge about the structure of objects, defining strings, and structure of arrays.
    Are you sure you have all the field names correctly spelled and capitalized?
    Do you get any error in the JavaScript console?
    Just trying the line that defines the "Location", I get the following error:
    SyntaxError: invalid property id
    1:Console:Exec
    undefined
    All the form field in a PDF are processed by using JavaScript and any error in any script will stop JavaScript processing.
    It might help to have a link to the problem form.
    Make sure your brackets are properly placed and matched.
    // Place all pre-population data into a single data structure
    var Location = {
    "--Hospital--":{ line1: " ", line2: " " },
    "Bellevue Medical Center":{ line1: "2500 BMC Drive", line2: "Bellevue, NE 68123" },
    "CHI Bergan Mercy":{ line1: "7500 Mercy Road", line2: "Omaha, NE 68124" }, 
    "CHI Immanuel":{ line1: "6901 N. 72nd Street", line2: "Omaha, NE 68122" }, 
    "CHI Lakeside":{ line1: "16901 Lakeside Hills Court", line2: "Omaha, NE 68130" }, 
    "CHI Midlands":{ line1: "11111 S. 84th Street", line2: "Papillion, NE 68046" },
    "Creighton University Medical Center":{ line1: "601 N. 30th Street", line2: "Omaha, NE 68131" },
    "Nebraska Medical Center":{ line1: "4400 Emile Drive", line2: "Omaha, NE 68105" }
    function SetFieldValues(Hospital_Name) {
        this.getField("AddLine1").value = Location[Hospital_Name].line1;
        this.getField("AddLine2").value = Location[Hospital_Name].line2;

  • Using Javascript to require 2 drop down menus to have something selected

    Hi everyone. I'm trying to get 2 drop down menus to each have something selected when the form is submitted. I'm using javascript for this, but I can't get it to work. Basically, if one is blank and the other one isn't, I want an error to pop up saying they have to fill in the one that is blank and vice versa. What am I doing wrong? Here's what I have for the javascript and on the form below. My 2 drop down names are Mfg_Spec_Prod_Approval_Initials and Mfg_Spec_Prod_Approval_Rev. Thanks for anyone's help!
    Andy
    <SCRIPT LANGUAGE="JavaScript">
            function verify() {
                var partNumber = '';
                var ecoNumber = '';
                var ProdInit;
                var ProdInitValue='';
                var ProdRev;
                var ProdRevValue='';
                var allArray = document.getElementById('listofids').value.split(",");
                var error=false;
                for(var i=0;i<allArray.length;i++) {
                    ProdRev = document.getElementById('Mfg_Spec_Prod_Approval_Rev'+allArray[i]);
                    ProdInit = document.getElementById('Mfg_Spec_Prod_Approval_Initials'+allArray[i]);
                    ProdRevValue = ProdRev[ProdRev.selectedIndex].value;
                    ProdInitValue = ProdInit[ProdInit.selectedIndex].value;
    <!--- This code is if the BOM Initials is not empty and the PNR Initials is empty.--->
                    if(ProdInitValue != '' && ProdRevValue == '') {
                        error=true;
                        ecoNumber = document.getElementById('ECID'+allArray[i]).value;
                        partNumber = document.getElementById('Part_Number'+allArray[i]).value;
                        alert("You must enter a Rev for ECO " + ecoNumber + " Part Number: " + partNumber);
                    else if(ProdRevValue != '' && ProdInitValue == '') {
                        error=true;
                        ecoNumber = document.getElementById('ECID'+allArray[i]).value;
                        partNumber = document.getElementById('Part_Number'+allArray[i]).value;
                        alert("You must enter your initials for ECO " + ecoNumber + " Part Number: " + partNumber);
                if(error) {
                return false;
            else {
                return true;
        </script>
    Start of form
    <cfform name="EditItem" method="post" action="My_Machining_action.cfm" onsubmit="return verify();">
    <cfset MfgSpecProdInitials = DocumentationSearch.Mfg_Spec_Prod_Initials>
    <td align="center">
    <cfif Mfg_Spec_Prod_Initials Is Not ""<!---  and Mfg_Spec_Prod_Initials EQ cookie.UserInitials --->>
    <select name="Mfg_Spec_Prod_Approval_Initials#ItemID#" id="Mfg_Spec_Prod_Approval_Initials#ItemID#">
    <option value=""></option>
    <cfloop query="ShowProdInitials">
    <option value="#Initials#"
    <cfif #Initials# EQ MfgSpecProdInitials>selected</cfif>>#Initials#</option>
    </cfloop>
    </select>
    <cfelse>
    </cfif>
    </td>
    <cfset MfgSpecProdRev = DocumentationSearch.Mfg_Spec_Prod_Rev>
    <td align="center">
    <cfif Mfg_Spec_Prod_Initials Is Not ""<!---  and Mfg_Spec_Prod_Initials EQ cookie.UserInitials --->>
    <select name="Mfg_Spec_Prod_Approval_Rev#ItemID#" id="Mfg_Spec_Prod_Approval_Rev#ItemID#">
    <option value=""></option>
    <cfloop query="ShowDocRevChoices">
    <option value="#Doc_Rev_Initials#"
    <cfif #Doc_Rev_Initials# EQ MfgSpecProdRev>selected</cfif>>#Doc_Rev_Initials#</option>
    </cfloop>
    </select>
    <cfelse>
    </cfif>
    </td>
    <input type="submit" value="Update">

    Eddie,
       I actually got this javascript below to work so if one drop down is left blank, and the other one is filled out, an error will pop up saying to entering either some initials or a rev. The only problem is that I have a dynamic list of drop downs in rows, so I need this javascript to run for each row. If I do the 1st row with 1 drop down selected and the other not, it gives me the error, which is perfect. But if I want the 2nd row to error out, for instance, doing the same thing, the error will not pop up. How do I make this work so it does this for each row since the list of drop downs is dynamic? My drop down menu names are Mfg_Spec_Prod_Approval_Initials and Mfg_Spec_Prod_Approval_Rev.
    <script type="text/javascript">
                        function verify() {
                            var Mfg_Spec_Prod_Approval_Initials = document.getElementById('Mfg_Spec_Prod_Approval_Initials');
                            var Mfg_Spec_Prod_Approval_Rev = document.getElementById('Mfg_Spec_Prod_Approval_Rev');
                            if(Mfg_Spec_Prod_Approval_Initials.selectedIndex == '' && Mfg_Spec_Prod_Approval_Rev.selectedIndex != '') {
                                alert('select Initials!');
                                return false;
      else if(Mfg_Spec_Prod_Approval_Rev.selectedIndex == '' && Mfg_Spec_Prod_Approval_Initials.selectedIndex != '') {
                                alert('select a Rev!');
                                return false;
                            return true;
                    </script>
    Andy

  • Dynamic changes of option tags in a Select tag using JavaScript

    I got this problem during my project.
    I used Select tag in HTML code.
    I have to change options related to Select tag, based on events.
    How can we change options dynamically using JavaScript?
    Please post solution to this problem..

    You know Sun Java Studio Enterprise forum isn�t a right place for JavaScript & HTML questions.
    BTW here is you can find a lot of js stuff: docs, samples, tutorials, etc:
    http://www.w3schools.com/js/default.asp

  • Browser Selection using Javascript

    Hi All,
    I am using a multi select ibrowser for a query data set.I am calling a function on selection of that item on browser. But on page load I need to take default as first row of that browser and need to call the function related to that. But i am willing to keep that row showing as selected on browser. Is there anyway i can do that using javascript....?
    There is one more button on the same screen which says 'Show for next Row' like that sort. On clicking that button I need to unselect the earlier one and need to select the next row of that browser and call the same browser select function.
    I didn't get any applet method for selecting a browser row using javascript.
    Any ideas will be appreciated....
    Regards,
    Satish

    Hi Satish,
    You can use this method to display an item by default as the ist row of ibrowser on page load .
    document.Appletname.getBrowserObject().setDefaultItem(variable_name);
    To select next row of an ibrowser after click 'Show for next Row' button, you can use this method:
    var vVariable = document.Appletname.getBrowserObject().getItemAt(int itemNo);
    document.Appletname.getBrowserObject().setDefaultItem(vVariable );
    Just try this out.This may work.

  • Is there a way to selectively disable "quick search" on specific websites (i.e. those which use javascript-driven keyboard shortcuts)

    Some websites use javascript (or differently) driven keyboard shortcuts - for example some google services or the tinytiny-rss feed reader. On those sites users normally don't use the "quick search" function, but it tends to get in the way of the keyboard shortcuts which tend to be pretty useful.
    So, is there a way selectively disable quick-search on some websites? Maybe there is a Addon for this?
    Thanks in advance, Kind Regards
    - NebuK

    1.SmartyPanouZe3rd,
    Sep 4, 2013 1:03 PM   in reply to SmartyPanouZe3rd
    This is a follow-up to the above question I had.
    Since i noticed people looking at the question, but no replies showing up, i contacted BC support directly with the same question.
    I got a reply.
    I did tests based on the reply.
    Here is what is going on based on the reply.
    (spoiler alert : It works... but it's not yet a perfect score.)
    All the details are posted here :
    http://www.animavdo.com/mut/ambiguity-001.html
    Hope this can help others.
    Cheers.
    PS  I still will use DW for the heavy lifting...
           But MUSE is nice for quickly putting together a mini website.
           Highly recommended App.

  • Changing a select list using javascript

    Hi all,
    yesterday I had a doubt using apex_item.checkbox and how to change them using javascript:
    Re: Passing a checkbox as a parameter to a javascript function
    Today, I'm facing a similar problem, but with select lists. Here it goes. I have a report with apex_items, like this:
    select
    apex_item.checkbox(1,"ID",NULL,NULL,NULL,'f01_#ROWNUM#') " ",
    apex_item.select_list_from_lov(2,"SW_STATUS",'F2010051_SET_STATUS','onChange="setItems(''f01_#ROWNUM#'',''f03_#ROWNUM@'')"','NO') sTATUS,
    apex_item.select_list_from_lov(3,"REVISIO",'F2010051_SET_REVISIO',NULL,'NO','f04_#ROWNUM#') "REVISIO"
    from Fx1_vThe javascript code is as follows:
    <script type="text/javascript">
    function setItems(cb,estat){
      elem = $x(cb);
      alert(elem.value);
      $x(cb).checked = true;
      elem2 = $x(estat);
      alert(elem2.value); 
    </script>The idea is that everytime the item g_f02 (a select list) changes, calls the JS function with two parameters: a checkbox (g_f01) and another select list (g_f03). The function should change the items to a defined values. The checkbox changes ok thanks to the help I got yesterday, but I can't work with the third item (select list g_f03). When I try to show the value, it says "undefined".
    how could I see the actual value of the select list LOV and change it to 1, for example?
    Thank you very much, any help will be appreciated!!!
    Edited by: Elena.mtc on 19-may-2011 8:11

    Hi,
    Do you have typo in query?
    Should it be
    select
    apex_item.checkbox(1,"ID",NULL,NULL,NULL,'f01_#ROWNUM#') " ",
    apex_item.select_list_from_lov(2,"SW_STATUS",'F2010051_SET_STATUS','onChange="setItems(''f01_#ROWNUM#'',''f03_#ROWNUM#'')"','NO') sTATUS,
    apex_item.select_list_from_lov(3,"REVISIO",'F2010051_SET_REVISIO',NULL,'NO','f04_#ROWNUM#') "REVISIO"
    from Fx1_vAnd JavaScript
    <script type="text/javascript">
    function setItems(cb,estat){
      elem = $x(cb);
      alert(elem.value);
      $x(cb).checked = true;
      elem2 = $x(estat);
      alert(elem2.value); 
      $s(elem2,1); // $s function is for changing item value
    </script>Regards,
    Jari

  • How do you rotate a selection using Javascript?

    I am trying to find a simple script on how to rotate a selection using javascript within InDesign CS3. Any ideas!?
    Thanks in Advance!

    Hey!
    Yeah, you can!
    app.activeWindow.transformReferencePoint = AnchorPoint.CENTER_ANCHOR
    or you can check my InDesign Scripting Snippets blog
    http://indisnip.wordpress.com/2010/07/24/rotate-single-selected-object/
    where I explained how it works.
    tomaxxi

  • Set the selection in an office app using JavaScript

    In an Office App is there a way to store the current selection in a word document and using the stored information later to re-select the selection using JavaScript?

    Hi ojix,
    >> In an Office App is there a way to store the current selection in a word document and using the stored information later to re-select the selection using JavaScript?
    What do you mean with “store the current selection”? As far as I know, currently, we are able to store the data of selection or create a binding to the current selection.
    For storing the data of selection, you could use Document.getSelectedDataAsync method (JavaScript API for Office). You could refer the link below:
    # Document.getSelectedDataAsync method (JavaScript API for Office)
    https://msdn.microsoft.com/EN-US/library/office/fp142294.aspx
    For creating a binding to the current selection, you could use the Binding object (JavaScript API for Office). You could refer the link below:
    # Binding object (JavaScript API for Office)
    https://msdn.microsoft.com/en-us/library/office/fp161045.aspx
    >> >> re-select the selection using JavaScript?
    I am afraid the re-select action is not supported in current version of Office JavaScript API. If this is a feature you want to include in future versions of Office Javascript API, please submit a feedback to Office Development Platform Uservoice.
    http://officespdev.uservoice.com
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

  • How to Insert user selected files as list attachment using JavaScript?

    I could able to Inset list items using ECMA Script, But for the user added attachment how to save it to list item.
    Please help

    check the similar post
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/3d92510f-f966-45b2-989d-734ba21c5ce5/how-to-attach-file-to-list-item-using-javascript-in-sharepoint-2010?forum=sharepointcustomizationprevious
    More links
    http://sharepoint.stackexchange.com/questions/88487/using-sharepoint-client-api-to-upload-file-as-attachment-in-javascript
    http://sharepoint-community.net/forum/topics/copy-attachments-of-sharepoint-list-item-to-a-document-library

  • Using javascript in a Web app to choose correct webform

    Hi, I've design a javascript function that should in theory call the correct webform when a particular option is chosen in a webapp item.
    The web app is an Event Web App that I made and I want the client to choose whether its a paid event or a free event from a drop down menu and the corresponding webform will appear.
    Javascript and webforms just seem to hate each other.
    My code is :
    <h1>{tag_name}</h1>
    {tag_description}
    <div id="event">{tag_event type}</div>
    <script type="text/javascript">
    var str=document.getElementById("event").innerHTML;
    var n=str.replace("Paid","45008").replace("Free", "10254");
    document.getElementById("event").innerHTML= '{module_webform,'+n+'}';
    </script>
    I know the script should work because I tested it using random words and the string would appear but when I actually put the webform number in
    firebug shows this error:
    <script type="text/javascript">
    var str=document.getElementById("event").innerHTML;
    var n=str.replace("Paid","45008").replace("Free", "10254");
    document.getElementById("event").innerHTML= <!-- CATALYST_ERROR - There was a problem with page modules. Ensure module syntax is correct. -->
    </script>
    Anyone have a solution?

    Hello ChristoRay,
    I'm curious to know if you have got this working? I have not tested this out, but I wouldn't think that you could use JavaScript to dynamically change a module.
    I would think that you could just create a drop down for them called "Free10254 or Paid45008" with the numbers being the values they select.
    Then within the details layout you can have:
    {module_webform,{tag_free10254 or paid45008}}
    This would cut out the need for js.
    Hope this helps,
    Chad Smith | http://bcgurus.com/Business-Catalyst-Templates for only $7

  • Search Annotation by its Name Using Javascript

    Hi
    my requirement is to find the annotation using its Annotation name using Javascript
    i.e by entering the Annotation name in my user interface  created by javascript it should set focus to that particular annotation

    I don't think it's possible to do that exactly. You can search for the annotation, but you can't select it. However, you can switch the document to the page where the annotation is located.

  • Javascript errors - Summing columns using Javascript

    Hi
    I have two regions on a page which are tabular forms that I have manually setup using APEX_ITEMS that I would like to use some JavaScript to pick up the values entered and sum that row up. I used Vikas example for tabular form calculation and it works perfectly for 1 region however if I have two regions it seems to give me the following error message in Firefox:
    g_table.rows[rownum].cells[getCellPos(g_table, html_GetElement("COL05"), "column")] has no properties
    Which I gather is because there are two columns on the page named COL05 and idea how I could get around this problem.
    I've put an example here: http://apex.oracle.com/pls/otn/f?p=35414:4

    Hello,
    It could be a bit difficult to auto sums a row, as
    usually rows include non-numeric columns. In any
    case you can always use a computation column in your
    select statement, or build a derived column in the
    report attributes tab. The problem is to update these
    columns in real-time, after a specific cell has been
    changed, and for that you need JavaScript.I realised this thats why I wanted to pickup the column and Row and then I would be able to replace the value in the specified column ie. total column using javascript for each row.
    I’m not sure I’m following you, but if you mean the
    current (active) rownum per displayed report page,
    you can use the #FIRST_ROW_FETCHED# and
    #LAST_ROW_FETCHED# substitution strings, in the
    footer of the report region.
    If you meant something else, please elaborate a bit
    more.Look at the revised demo app http://apex.oracle.com/pls/otn/f?p=35414:4 as you can see in this particular example each region returned 15 rows of data. I wondered if there was a way to pick up the last row returned so that I could use the same javascript function I use to calculate the rows I could update that specific column/total row. Example, in my demo app you will see a null row returned I would like to find this row then update the values.

  • Using applet to select a part of an image and then save it

    Hi ,
    I want to use applet to select a part of an image and then save that particular selected part to a server. can anyone provide me a code for this. I have found codes on the sun site which help in uploading an image but I am having trouble in trying to select a part of the image.

    Sorry to get back to you so late, but I was away from my computer this afternoon.
    I'm not sure just what you are after. I do see that you have positioned the tree on the labels. I went to the web site for the label company, and their instructions are not too helplful.
    http://www.pixentral.com/show.php?picture=15sBkl9OZE9xSkHoLMxgwjTFv2VCg1
    I changed the white portion of 1 label to black - - this can be any color. To do this use the magic wand tool, tolerance=10 worked for me, then go to Edit>fill selection.

Maybe you are looking for