How to select needed objects [CS6-JSX]

i try to move all particular objects to new layer
so first i try to select items by strokeWidth.
var mDoc = app.activeDocument;
var allObject = mDoc.pathItems;
for(i=0; i<allObject.length; i++){
    if (allObject[i].strokeWidth==0.17599999904633) allObject[i].selected=true;
but receive nothing selected.
i assign stroke to needede objects as 0.176 pt. OK. Then try to see this parameter of one, being selected, through script
$.writeln(mDoc.selection[0].strokeWidth);
and receive this long number 0.1759999....
but when i use this number in codeline (see above), nothing is being selected. Why?
After this i tried to select by color
$.writeln(mDoc.selection[0].strokeColor);
but can't get color, exept "CMYK model". So how can i select objects by stroke color?
thanks!

I dont't know if something like app.runMenuItem is possible in CS6+ (I doesn't work with CS6/CC)
But you can create an action and call this action with
Application.doScript (action: string , from: string , dialogs: Boolean )
This is definitly possible in CS6+
Have fun

Similar Messages

  • How to select the objects sharing the same appearance in the same artboard?

    I have several artboards in the file and I want to select all the objects having the drop shadow effect in the artboards I'm working. No matter I use the "Select" in the menu or the "Select similar objects" button in the control panel, it selects all the objects having the same appearance in the entire canvas, not only the one in the artboard I'm working. Any means or there's nothing can do?
    Please help!

    J_Lai wrote:
    yes, that's work and I also tried to lock the objects in another artboard in order to select the objects in the working artboard only. However, I think that's stupid to get it done in this way and Adobe should improve this in the next version.
    This is easy enough to state but if you think this is wrong then you should perhaps suggest a way this feature could be manifested.
    For instance to you this should only effect the current artboard but there will come along another user who will say hey wait a minute I need to select all the drop shadowed objects and remove them now I have to go from atboard to artboard.
    If you see what I mean, II found out that when I find something that is seemingly stupid that in fact there is a reason for it and there has to be a way to describe how it can be improved without breaking what you already have.
    For instance you want it to just effect the current artboard but then there will be those who also want it if it even touches the artboard and those who will want it on a range of atboards and those who will actually want AI to know which artboards you want even without you specifying which artboards. That last one sounds illogical but that is the nature of the problem and the human conditions.
    So though I agree this can be improved perhaps you have an idea how this can work for everyone?

  • How to select all objects in a document?

    AI newbie question:
    I have an active document with two linked files, I need to select both of these in a script and embed both.  Then I will be selecting these separate and performing various actions on each.
    In JavaScript, once I have the document object how can I select both linked files/items?
    Thanks,
    Dave

    This will select all your linked files in the active document and embed them:
    * a slight modification *
    for(i = app.activeDocument.placedItems.length - 1; i >= 0 ; i--) {
            app.activeDocument.placedItems[i].selected = true;
            app.activeDocument.placedItems[i].embed();
    cheers;
    Message was edited by: sonicDream

  • How to select multiple objects for left- or right-edge align?

    Hello all,
    This is my first day using indesign so hopefully this is an extremely basic question, but I haven't been able to find the answer anywhere online yet.
    Let's say you have a page full of objects and you want to align only a few of them to the same right- or left- edge, without affecting the others.
    You select just the ones you want to align by clicking while holding shift, correct?
    But then a box appears around all of them, which means you can no longer align them to each other's edges because (I think) it's seeing the box as already aligned.
    Please let me know if you see what I'm doing wrong and how to do it better.
    Thank you!

    It's not seeing them as aligned, it's just showing you the bounds of all selected items. They will align. Another little trick is (after all are selected with the shift key) click once on the edge of the one you want them to align to. It will get a bolder outline, stay where it is, and will become the guide for aligning the others.

  • How to select multiple objects in the layerpanel?

    Hi everybody, I have this enoying problem:
    I want to select a few paths in the layerpanel by NOT clicken on every one.
    So for example I have the following structure:
    Layer 01
         path01
         path02
         path03
         path04
         path05
         path06
         path07
         path08
         path09
         path10
    And I want to activate path03 to path09 for further modifications - I would have to select every single path by clicking on it in the Target column.
    Is there a faster way like selecting path03 and than holding the Shift-key and selecting path09 ? <- (This obvious solution doesn't work)
    Thanks for your help!

    I found an odd work around
    I know you but ther is more to it so read on.
    shift select the paths you want in the layers and the to skip one or more pths option/alt select and to continue of course use the shift key again.
    Onece you have all the pthas you want from the layers panel flyout Options for Selection. Check lock.
    The Object>Unlock All , it will only unlock the selected items you just locked and they will then be slected on the canvas as well.
    Here is a couple of screen shots notice the locked layer stays locked and unselected in both the layers panel and on the canvas,

  • How to select freehand in CS6?

    Hi,
    I am looking for a way to select areas in my picture completely freehand (i.e. by painting over them with a paintbrush), similar to how the quick selection tool works, but I don't want the program to select anything but what I paint over. The quick selection tool adds certain areas based on similar colors, and I don't want that.
    Thanks

    You can use quick mask (shortcut Q), paint in the areas you want, then exit quick mask to get your selection.

  • How, in Illustrator CS5, can I select all objects with three points (or nodes)?

    I am quite new to Illustrator, but it seems this should be simple.  (It is trivial in CorelDraw X4:  After selecting an object with three nodes, I go to Edit > Find and Replace > Find Objects > Find objects that match the currently selected object, and navigate through the remaining menus.)
    In Illustrator CS5, the options under Select > Same do not seem to include selecting all objects with the same number of nodes as the currently selected object.
    Double-clicking on the Magic Wand Tool also fails to provide such an option.
    Thank you for any help.
    P.S.  Also useful would be knowing how to add other criteria to this search, e.g. how to select all objects with three points *and* the current fill color.

    There is a script that can select "less than x points"
    Kelso Cartography

  • I need step by step instructions on how to move an object from one photo to another photo - in Photoshop CC 2014.

    How do you move an object in one photo to another photo in Photoshop CC 2014

    In the document with the object select the object  and use copy (Crtl|CMD+C) then in the other image document use  paste (Crtl|CMD+V).
    However its not a move its a copy the object is still in the original image.  (Crtl|CMD+X) instead of (Crtl|CMD+C) would cut the object out of the first image but leave a hole there that you would need to fill with a replacement to complete a move.

  • How to select the all object at a time while installing business content

    Hi All,
    how to select the all object at a time while installing business content Please let me know if nay document is there
    Thanks Ahmed Pasha

    Hi,
    Please check out the below links
    [Business content Installation|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/102906a4-f13d-2e10-7199-ce316ff254b8?QuickLink=index&overridelayout=true ]
    [BI Content|http://wiki.sdn.sap.com/wiki/display/BI/InstallingBusinessContent]
    Hope it helps.
    Regards,
    AL

  • I really need someone to help me. I have been trying to figure out how to select a PDF document to convert to a Word doc. When I go to select a PDF file, all that shows up is the WORD docs. does not show ANY of my PDF files... Please help me figure out wh

    I really need someone to help me. I have been trying to figure out how to select a PDF document to convert to a Word doc. When I go to select a PDF file, all that shows up is the WORD docs. does not show ANY of my PDF files... Please help me figure out what is going on? We have it set on auto renewal so I know its not that we haven't renewed this subscription, because we pay automatically.

    Hi olivias,
    It sounds like there may be some confusion on your system about what application should be associated with PDF files. You can reset filename associations by following the steps in these articles (depending on your operating system):
    How to change the default application for a file type | Macworld
    http://windows.microsoft.com/en-us/windows/change-default-programs#1TC=windows-7
    Please let us know if you have additional questions.
    Best,
    Sara

  • Does anyone know how to select multiple files in photoshop cs6 on macbook pro lion

    I'm new to Mac operating system. Can anyone tell me how to select multiple images in cs6 photoshop? Without having to hold down a shift or cmd key and clicking on each one.

    I assume you are using the Shape tool to draw your hexagons. After you drag out the shape, use the Transform controls to tweak the size, so that the width is evenly divisible by 4, and the height is an even number. If you wand a gap between shapes, include that in your adjustments. Make a note of the new width and height.
    Once the scaling is committed and the shape is selected, Control+Alt+T to Free Transform Copy, and in the Option Bar, set the X and Y to Relative. Set X to zero, and Y to the height you set earlier, and commit the Transform. Then Repeatedly press Shift+Control+Alt+T to make more transformed copies.
    With a vertical column of shapes, Alt-Click on the Shape Path in the Paths panel to select the whole path. Control+Alt+T again. This time, again using relative, set X to three-quarters of the width you noted earlier, and Y to one-half the height, and commit
    Finally, again Alt-click on the Shape Path in the Paths panel, and Transform Copy relative with X = one and a half times the width you noted, and Y to zero. After committing this, Shift+Control+Alt+T as above to extend more columns.
    And JJ, those are Octagons .

  • How do you select an object that is directly under another object?

    How do you select an object that is directly under another object?
    I was working from a template and I wanted to make a text box the same size as a column box that was put there in order to keep the text in the confines of the paper that is was being printed to.
    I could actually put text in each column fine but I wanted it to be in a text box so that I could slightly tilt the test box to compensate for my printer feeding it in slightly wrong. I accomplished this on another template but I could not on this one. If I was working in InDesign or something I know I could just select that layer but I'm at a loss of what to do here. How do I select a column right under a text box? I just thought of something. Once I make the text boxes the same size as the columns I think I can just delete the columns from the inspector. But that would be kind of a work around. I know you can hold down command when nothing is selected from outside the document and then highlight but this is not working. Does anyone have some tips and tricks when it comes to having control over which objects you are selecting when it comes to objects that are overlapped as well as directly over each other.
    Thanks.
    Tim

    I'm not sure it's documented any where, but it's not too difficult. First, ⌘-click outside of the layout area to enter object mode then drag the cursor towards the two objects until you see the handles. Now, again ⌘-click on the top object to deselect it. You can now move the underlying object to the front to edit, delete, etc.
    After typing this, it dawned on me, why not just click the top object to select it & move it to the back? I've only done the other way a bazillion times & now I think of this.

  • CS6: Select multiple objects - Hide border?

    Hi!
    Lots of our layouters are bothered because of the same thing: If you select multiple objects in CS6, you'll get a border which surrounds all of the selected objects. That way it's quite difficult to see, which items are already selected and which aren't, especially if they are all aligned.
    I hope, you understand what I'm talking about. I displayed it in the following screenshot.
    The text frame and the yellow frame are selected. The red one isn't but you have to look closely to see that, because there is this thin border spanning over all of the objects, covering the red object, too.
    Is it somehow possible to hide / disable this "extra" border? If you have a lot of objects on the page (with backgrounds and everything), the layouters have some problems with seeing what they already selected and what they didn't select yet.
    Best,
    Anke

    @Bob: quite hard, if you have about 50 elements on one layer (the layouts are done with only two major layers .... don't ask me -.-)
    @pixxel schubser: nope, I mean the overall border, that covers all of them in one big frame...
    @Sandee: I know. But tell that to 20+ layouters, who want their program to work the same way as it did before (CS3...)... They are really confused by this extra border.
    @Ellis: Wow, I didn't try that! Great, no border!!! Only that seems to be a bit buggy. If you have a lot of objects, after time it seems to "lose" some of them you selected at the beginning. Still, I'll tell the layouters, maybe this will make them a little happier Thanks a lot!
    For all, who didn't quite know what I was talking about... this is Ellis' solution without the extra border:

  • How to set BDCDATA table for a SELECT-OPTIONS object?

    Dear experts,
    I have a transaction with PARAMETERS and SELECT-OPTIONS objects. This transaction will be called by another program by using CALL TRANSACTION 'mytransaction' USING mybdcdata statement. Below is some of the called transaction's source code:
    DATA:
      date TYPE sflight-fldate.
    PARAMETERS:
      p_carid TYPE sflight-carrid,
      p_conid TYPE sflight-connid.
    SELECT-OPTIONS:
      so_date FOR date.
    This is what I wrote in the calling program to define the values of the called transaction PARAMETERS fields:
    DATA:
      wa_bdcdata TYPE bdcdata,
      it_bdcdata TYPE TABLE OF bdcdata.
    wa_bdcdata-program = 'MYPROGRAM'.
    wa_bdcdata-dynpro = '1000'.
    wa_bdcdata-dynbegin = 'X'.
    APPEND wa_bdcdata TO it_bdcdata.
    CLEAR wa_bdcdata.
    wa_bdcdata-fnam = 'P_CARID'.
    wa_bdcdata-fval = 'AA'.
    APPEND wa_bdcdata TO it_bdcdata.
    CLEAR wa_bdcdata.
    wa_bdcdata-fnam = 'P_CONID'.
    wa_bdcdata-fval = '017'.
    APPEND wa_bdcdata TO it_bdcdata.
    CALL TRANSACTION 'MYTRANSACTION' USING it_bdcdata.
    Unfortunately, I don't know how to set the values for the SELECT-OPTIONS screen fields. How to do this?
    I've Googled this and tried several guesses but none was found or successful. Thanks in advance.
    Regards,
    Haris

    Hi ,
      Better go for  SUBMIT report   instead of CALL transaction  ...
      find the name  of  report being called  on that transaction which you will be calling  . Use that report name in SUBMIT 
    Just take help from  below code .
    Before using do please read  by pressing f1 on SUBMIT  syntax .
    data:seltab     type table of rsparams,
             seltab_wa  like line of seltab.
        move: 'LANGU'  to seltab_wa-selname,
              'S'      to seltab_wa-kind,
              'I'      to seltab_wa-sign,
              'BT'     to seltab_wa-option,
              'D'      to seltab_wa-low,
              'I'      to seltab_wa-high.
        append seltab_wa to seltab.
        clear seltab_wa.
        move: 'E'      to seltab_wa-sign,
              'EQ'     to seltab_wa-option,
              'F'      to seltab_wa-low,
              space    to seltab_wa-high.
        append seltab_wa to seltab.
        clear seltab_wa.
        move: 'AUFNR' to seltab_wa-selname,
              p_aufnr to seltab_wa-low.
        append seltab_wa to seltab.
        clear seltab_wa.
        submit rkaep000  using selection-set 'VARIANT1'
                          with aufnr = p_aufnr
                          with selection-table seltab
                          exporting list to memory
                          and return .
    regards
    Deepak.

  • How to select objects marked in the layer panel?

    Hello,
    this may be simple and trivial, but somehow I fail to express it nicely so that the search engines would find the answer for me...
    so here is my question.
    Imagine that you have several objects marked in the layers panel. (by "marked" I mean, I simply clicked on the objects name in the panel)
    Unfortunately, when they are marked there, it does not make them yet selected in the main viewport.
    So - how do I make the marked objects selected without Shift+clicking every single circle on the right-end side of the object name?
    (using CS5 version of the Illustrator)
    Many thanks!

    Well, I was thinking your second-born child, Scott, but the cursor will work too.
    P-Dan: hold your option (alt) key down and drag your cursor over the NAMES of the objects (or groups or layers) in the layers panel. If you want to skip over an object or two (or 10), hold both shift and option keys down and click on the noncontiguous object you want to add to the selection. From there, with the option key still down, you can continue selecting contiguous objects. Or hold the shift and option keys down and hop-scotch through your layers panel selecting discontiguous objects at will.
    If all of this is too much for you, a viable alternative is to go into dentistry.
    May I remind you all also that Monika suggested this very technique way up high in this thread.

Maybe you are looking for

  • Install fails? Mac Mini won't work??

    I partitioned my Mac Mini, giving it 15GB of space. Went into install and I get: Setup is inspecting your hardware configuration_ for maybe a second. Then I have a black screen. Anything particular I'm doing wrong? I've heard that you may need an App

  • Multiple global structures

    Hallo colleagues, I have the following problem with global structures: - I copied queries with the TA RSZC - A deal of them on a development system and a deal of them in a productive   system - In some of the queries a global structures - I got for a

  • Heading Change for keyfigures in the layouts

    Hi- We have two keyfigures in Manual Layouts which has short description as heading. Now users want to see Long description as heading. 1. I went to change mode of Manual layout and copied the "Long description" to heading. Still when users are creat

  • Fan running all the time - 2011 21.5 inch i5 iMac

    I purchased a new 2011 21.5-inch: 2.7GHz i5 on Friday just gone (2 days ago). All was going well with the new toy until this morning (Sunday). Suddenly the CPU fan was running all the time and at full speed when the computer was not under any real lo

  • Creative suite6 design premium

    I am trying to download creative suite 6 design & web premium for mac when i click the link in firefox nothing happens, when i try in safari it goes to a new page which says You don't have permission to access "http://trials2.adobe.com/AdobeProducts/