How do I Select all the items in a document based on SpotColor?

I'm trying to select every object with the color "CutContour"
So far I've been trying:
myDoc.selection = myDoc.spots.getByName("CutContour"); 
I guess this obviouslly wouldn't work though because myDoc.selection is looking for an array of objects.
However, I can't figure out how to loop through all the objects in the document and check to see if they contain the SpotColor.
Any help would be incredibly appreciated!
EDIT:
I want to use the Select > Same > Stroke Color , but I heard that using that in Javascript isn't available unless you have CS6 (which I currently don't). Is it true that accessing menu items through scripting is a feature in CS6?

Thanks for clearing some of that up for me!
I only need to select path items, and I see that if I do something along the lines of:
var objects = myDoc.pageItems;
I can get an array of all the items in my document. However, I'm trying to figure out where to go from here, but the process seems overly complex. I want to loop through objects and see if they are pathitems, and then check to see if they have the color I'm looking for, but I can't find the strokeColor property in the Javascript reference. Also, what about compoundPathItems (closed paths)? If I check for PathItems, will I also get CompoundPathItems?
EDIT:
This is what I have so far, however, it is not working correctly /:
var myColor = myDoc.spots.getByName("CutContour");var arrObj = [];for (var i = 0; i <objects.length; i++) {  if (objects[i].typename == "PathItem" && objects[i].fillColor == myColor) {    arrObj.push(objects[i]);    objects[i].move(layer_Cut, ElementPlacement.PLACEATBEGINNING);  }}
See, the whole goal is to move all objects with the color "CutContour" to

Similar Messages

  • How to select all the frames in a document?

    i did select only particular active session.is it possible to select all the frames in a document?

    Hi vinothvijay,
    You can use below interface to select all the frames in the document.
    ISelectionManager* selMgr = Utils<ISelectionUtils>()->GetActiveSelection();
    if(selMgr)
       selMgr->SelectAll(ac,nil);
    Regards,
    Santosh K.

  • How do you selected all text boxes in a document

    Say you have 100 pages in a document and you have a threaded text box placed on pages 1 through 100. How do you selected all the text boxes at the same time? You might do this to change the size of the boxes, or lock all of the boxes, or apply an object style to all of the boxes.

    Depending upon how well your document is set up though, layout adjustment might work.
    If changing text box size is on your agenda, and every text box is lying exactly on guides, then layout adjustment might work.
    The only way I can think of to lock all frames in a story, or to change the size of all text frames in a story, would be to write a Javascript. And, even after years of practice, I know that it'd still be faster for me to just step through the document and make the changes by hand than it would be to bang my head against Javascript for n hours before I found a good solution.
    Barring these exceptions, I think that Bob's statement
    You don't because you can't.
    is actually pretty accurate. Terse, maybe, but accurate.

  • How Can I Remove All the Links in a Document?

    I want to remove all the internal and external bound links in
    a number of my html documents. Is there any way I can do this with
    one action. I tried using Control + F on </a> and replacing
    it with nothing and that works. But Control + F on <a
    href="URL"> doesn't work as the url for that is different every
    time.
    Is it possible to remove all the links in one sweep, I hate
    to do it manually one by one as there are just so many?

    Tanim23 wrote:
    > Is it possible to remove all the links in one sweep
    Yes. In the Find and Replace dialog box, set Search to
    Specific Tag, and
    select a in the drop-down menu alongside. Then set Action to
    Strip Tag.
    You can do this in the current document, a particular folder,
    or the
    entire site, depending on what you select in the Find in
    drop-down menu.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS4",
    "PHP Solutions" & "PHP Object-Oriented Solutions"
    http://foundationphp.com/

  • This may sound goofy but how can i delete ALL the items in my shopping cart

    i would really like to know how to do this so i can start from scratch i printed off all that was in it so i can refer back to it but i want it all gone at once just all of it clicking the x is just too much for me to sit for minutes on end / hours to do just too much in there.
    VV ginaanig

    Try this instead:
    Drive Partition and Format
    1. Open Disk Utility in your Utilities folder.
    2. Select the backup volume from the left side list. Click on the Erase tab in the DU main window.
    3. Set the format type to Mac OS Extended (Journaled.)
    4. Click on the Erase button.
    You will need to reconfigure Time Machine preferences for the backup.
    FYI: Never remove Time Machine backup data except through the Time Machine application. If you aren't sure about using Time Machine then visit Pondini's Time Machine FAQ for help with all things related to Time Machine.

  • How do I put all the songs from a compilation album into the same /album/folder in Itunes v12

    How do I put all the songs from a compilation album into the same /album/folder in Itunes v12 i know in other versions it was via get info but as all of the tunes have the same album title , I am not sure what tio change to achieve this ?

    I don't see your screenshot but I assume you're starting with something like this, i.e., the compilation split into multiple albums:
    If you select all the items that you want to be in a single album, right-click > Get Info you'll see this:
    As you say, in iTunes 12 you don't see a field to enter a distinct Album Artist value.  You can, however, address this by clicking the Add Field button and selecting Album Artist:
    That makes the field available in the metadata dialog so that you can enter the required value:
    You can also show the pre-iTunes 12 version of the dialog by holding the SHIFT key when selecting Get Info - this allows you to enter the Album Artist directly:

  • Selecting all the files in a directory

    How would i select all the files in a directory, write the info of the files into a new file, and after the end of each file, make a New Line?

    hi zymus,
    check this code u will get the solution for ur problem..
    import java.io.*;
    public class files {
    public static void main(String[] args) {
    File f = new File("c://");// specify ur directory name here
    String[] n = f.list();
    System.out.println("ALL FILES.....");
                   if (n != null)
                             System.out.println("length = " + n.length);
    for (int i = 0; i < n.length; i++) { System.out.println("i = " + n[i]); }
                                  String[] n2 = f.list(new myJavaFileFilter());
                                  System.out.println("ALL JAVA FILES.....");
                                  if (n2 != null)
                                       System.out.println("length = " + n2.length);
    for (int i = 0; i < n2.length; i++)
         System.out.println("the files are::::::::: " + n2);
    class myJavaFileFilter implements FilenameFilter
    public boolean accept(File dir, String name)
         if (name.indexOf(".pdf") > 0)// give the file extension what u want
         return true;
    return false;

  • How do I find all the purchased items on my iPhone? When I try to update the iPhone iOS while connected to my MacBook it says there are purchased items on the phone that have not been transferred to my iTunes library and that I should transfer them.

    How do I find all the purchased items on my iPhone? When I try to update the iPhone iOS while connected to my MacBook it says there are purchased items on the phone that have not been transferred to my iTunes library and that I should transfer them before updating.

    Thanks. This seems to have worked easily.

  • Using 12.0.1.26 Im trying to move photo's from an app on the pad to laptop but the select all in Edit is not hilighted, how to you select all?

    the select all under edit is not highlighted in 12.0.1.26, I need to move a large number of photos from pad app sharing area to laptop, how do I select all? Thanks

    the select all under edit is not highlighted in 12.0.1.26, I need to move a large number of photos from pad app sharing area to laptop, how do I select all? Thanks

  • How to select all the colomns_names from a table, with their datatypes ..

    hi :)
    i would like to know, how to select in SQL all the columns names from a table with their datatypes so that i get something like this :
    Table 1 : table_name
    the column ID has the Datatype NUMBER
    the column name has the Datatype Varchar2
    Table 2 : table_name
    the column check has the Datatype NUMBER
    the column air has the Datatype Varchar2
    and that has to be for all the tables that i own ! ..
    P. S : i m trying to do this with java, so it s would be enough if you just tell me how to select all the tables_names with all their colums_names and with all their datatypes ! ..
    thank you :)
    i ve heard it can be done with USER_TABLES .. but i have no idea how :( ..
    Edited by: user8865125 on 17.05.2011 12:22

    Hi,
    The data dictionary view USER_TAB_COLUMNS has one row for every column in every table in your schema. The columns TABLE_NAME, COLUMN_NAME and DATA_TYPE have all the information you need.
    Another data dictionary view, USER_TABLES, may be useful, too. It has one row pre table.

  • How can i display all the query items to a table?

    how can i display all the query items to a table in a jsp file?
    i always have an out of memory error..

    any body??any idea?
    is it possible thru configuration or i have to write a program by the abaper??
    Biswa

  • How do you select all paragraphs using the same style in Pages 5.2?

    I'm trying to find how to select all paragraphs using the same style in Pages 5.2 without any success.  I writing a book and I need to able to adjust all my paragraph styles globally.  I see how upgrade my paragraph style when I do something new, but not how to revert back to the orginal template.
    For example, in my custom template for my book I have 12 font for a review questions paragraph style.  I changed the font size for all this paragraph style to 18 font.  Now I want to change it back to size 12 font.  But I have this paragraph style at the top and bottom of my document.  How to I select all of my review questions style so I can make the font change to all at the same time? 
    I just upgrade to Pages 5.2 from Pages '09. 
    Thanks for the help,
    Rob

    The Pages User Guide might help here.
    Better to post your topic in the Pages designated community > Pages: iWork: Apple Support Communities

  • How do I select all instances of a clip in the timeline at once without manually shift clicking each instance?

    Title says it all!
    How do I select all instances of a clip in the timeline at once without manually shift+clicking each instance?
    The reason I want to do this is because I have a music video with MANY quick cuts. So clips are cut up and splattered all over the place. I am colour-correcting now and so I want to be able to select one clip everywhere it exists in the timeline so I can drag the effect onto all them at once, without having to find each instance of the clip in the timeline. This "batch select" would make it so I don't miss any instances of the clip and also saves a ton of time going through the timeline and shift clicking each time the clip turns up.
    I hope PP is smart enough to do this
    Thanks in advance!
    -- Tim

    Pick one instance of the clip, maybe even the first bit ... and use the new Master Clip feature ... here's first a written explanation and then a video tutorial on doing this ... it's a great feature.
    Adobe Premiere Pro Help | Master Clip Effects
    How to apply effects to all instances of a clip | Adobe Premiere Pro CC tutorials
    Neil

  • I use Windows Vista and Microsoft Outlook. After migrating to iCloud, the calendar of iCloud tranferred only part of my past Calendar items to the folder iCloud Calendar in my Outlook. How can I transfer all the entries?

    I use Windows Vista and Microsoft Outlook. After migrating to iCloud, the calendar of iCloud tranferred only part of my past Calendar items to the folder iCloud Calendar in my Outlook. How can I transfer all the entries? In iCloud's site all are there.

    If the calendar is on iCoud.com, all you would need to do to get it on your phone is go to Settings>iCloud on your phone, sign into your iCoud account and turn Calendars on.  The iCloud calendars will then download to your phone.

  • HT201269 I restored my iphone and now it has gone back to factory settings. How do I transfer all the purachsed items from my itunes back onto the phone?

    I restored my iphone and now it has gone back to factory settings. How do I transfer all the purachsed items from my itunes back onto the phone?

    Hello whytea4
    Check out the articles below and choose the one for your computer to sync media and apps to your iPhone.
    iTunes 11 for Mac: Set up syncing for iPod, iPhone, or iPad
    http://support.apple.com/kb/PH12113
    iTunes 11 for Windows: Set up syncing for iPod, iPhone, or iPad
    http://support.apple.com/kb/PH12313
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

Maybe you are looking for

  • Templates not locking correctly

    Hi All, I have a site that using a DreamWeaver CS3 template as the base of the overall structure of the site. The live dev area using the template can be found at http://www.otsmanagement.com.au/dev The template uses only one editable region which is

  • HD Movie / TV episode download issue / problem / difficulty

    The issue is that the download is extremely slow. I purchased both the HD and the SD versions of Lost - "the Final Journey" - (2.56 GB and 1.11 GB respectively), as they are free. The download was proceeding in parallel. While the SD episode was down

  • Why no web browser on Apple TV?

    I have just installed Apple TV, which replaced an old Elgato EyeHome. One of the nice features of this device was that it in addition to all the streaming features it allowed web browsing (though via a very poor browser!). I was wondering why Apple h

  • Weblogic 8.1 using JRockit 1.4.2_15 and XMLEncoder on 64-bit Linux

    I am using Weblogic 8.1 sp6 with JRockit 1.4.2_15. When I call XMLEncoder the following exception below is thrown. When I use the Sun JDK, all is fine. We need to use JRockit. It appears that some awt shared library is not found. Further attempts to

  • Unlinked VIs when building a project

    Hi, I have a build problem.  Their seems to be a problem findig some VIs when I build my application under LabVIEW 8.  Trying a mass compile before the build process does not help much.  Any Ideas ? Error 7 occurred at ABAPI Dist Report Read Link Inf