Scripts: Select an object with a note, duplicating and applying swatch

I am trying to write a Javascript that can do the following:
1) Select an object whose note has <Object Name> (so its layers is also selected)
2) Duplicate the layer of that object
3) Rename the new layer to <Layer Name>
4) Apply a swatch to the object on the new layer (the object is only single colour)
5) Apply a new note to the object (over-writing the original note).
I also want to write a separate script that can do the following:
1) Select an Object whose note has <Object Name> (so its layer is selected as well)
2) Hide all other layers
3) Save a copy of the document with a specific name
I can do this as an Illustrator action. However, I need several different copies of the scripts where the Object Name, Layer Name, Swatch and File Name changes.
Re-recording the action to change the names is cumbersome.
I have looked at the Illustrator scripting reference, but cannot see any commands for select objects by their notes.
I was wondering if someone could give me some pointers on how to proceed (Or possibly, if feeling very generous, could write the script for me )

That's my error changing variables before posting… I can't edit that post now but this should fix it… Plus give you a very basic UI to enter a value…
#target illustrator
var n = prompt( 'Please enter your \'Note\' string…', 'muppet', 'Note finder' );
findNote( n );
function findNote( n ) {
          var doc = app.activeDocument;
          var allMyArt = doc.pageItems;
          var toSelect = Array();
          for ( var i = 0; i < allMyArt.length; i++ ) {
                    if ( allMyArt[i].note == n ) { toSelect.push( allMyArt[i] ) };
          doc.selection = toSelect;
Oh I didn't mean b4 n after running a duff script… What you do with actions so I can see what objects are duplicated where then coloured…

Similar Messages

  • Send Object With a Note

    Hi
    When selecting 'Send object with a note' from a purchase order and clicking on the 'Attributes' tab the Sensitivity is set to '502 Confidential'.  Can you please advise how to change the sensitivity to '501 Standard'?
    Thanks

    Hi all,
    I have found the solution for it.
    Share with you.
    Inside Function Group:CRM_1O_UI
    Include LCRM_1O_UIF17
    for the 'is_disabled' field control the status of the corresponding fcode.
    Update following code:
    {   INSERT         xxxxx                                      1
    if sy-cprog = 'SAPMCIC0'.
        CALL METHOD toolbar_create_process0->add_button
          EXPORTING
            fcode       = lv_fcode
            icon        = lv_icon
            butn_type   = lv_type
            text        = lv_text
            quickinfo   = lv_tip
            is_disabled = 'X'.
    else.
    *}   INSERT
        CALL METHOD toolbar_create_process0->add_button
          EXPORTING
            fcode       = lv_fcode
            icon        = lv_icon
            butn_type   = lv_type
            text        = lv_text
            quickinfo   = lv_tip
            is_disabled = ' '.
    *{   INSERT         xxxxx                                       2
    endif.
    *}   INSERT

  • 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

  • When i try to use facetime on my imac it comes up with facetime not responding and starts to use nearly 2gb of memory. Any ideas please?

    when i try to use facetime on my imac it comes up with facetime not responding and starts to use nearly 2gb of memory. Any ideas please?
    Also messages does the same thing

    Hello BassoonPlayer,
    Since you are using one of the the school's Macbooks, it is quite possible that the time and date are not properly set on the computer that you are using.  FaceTime will not work if you do not have the proper time zone set up for the location that you are in.  This past week, there were a two other Macbook users I've helped by simply telling them to set the Date/Time properly.  By the way, you described your problem very well, which makes it easier for us to help you.  Hope this solves your problem -- if not, post back and I can suggest other remedies.
    Wuz

  • Pages '09: Can't select multiple objects with mouse?

    Hello! I want to select some shapes. I know that I can hold down shift and click on them individually one by one, but they're very many and grouped together, so I just want to draw a 'selection-rectangle' with the mouse, just as it works in all other programs I've ever used. But this doesn't seem to work. What am I doing wrong?

    Hello Stef,
    You can simply click and drag over an area to select multiple objects if you are in a Page Layout document, but since this is your fourth post you may be new to Pages and you may not yet even be aware of the Page Layout mode. At the top of your Pages window is the document title and next to the title in parentheses are the words "Word Processing" or "Page Layout".
    So, in a Word Processing document, it's just a little bit more involved. In the upper left corner of the window, click on the View icon and select "Show Layout". You will see gray around the edges - your desktop, a white sheet - your paper, and three rectangular outlines - the header field, the text frame and the footer field. This assumes that you have the Header and Footer turned on.
    As you move your mouse, the text insertion bar, a vertical line with curved features top and bottom, will move about the document. Move the insertion bar to the margin, outside of the boxes, and press and hold the COMMAND key. Your cursor will change to an arrowhead. Now you can select multiple objects by click-dragging, just as you are accustomed to doing in other applications.
    Regards,
    Jerry

  • Selecting Multiple Objects with Output Preview Causing Problems

    I'm trying to edit a PDF and need to select multiple objects. Without Output Preview open, I can easily select all the items I need using the shift key. With Output Preview open, whenever I try to select the second object, Output Preview creates a sticky note, instead of selecting the second object.
    I am also using the PitStop Pro plug-in.
    Any idea how to correct this problem? Thanks!

    Unfortunately it seems that the new sticky note feature with the output preview in Acrobat XI uses the same keyboard shortcut as multiple selection tool in Pitstop (shift).
    Closing the output preview is the easiest way to get around this issue.
    We could consider changing the key for multiple selection in PitStop, but 'shift' is pretty much a default, so what could we change it too?
    If anyone has any thoughts could they email me, I am the product manager responsible for Pitstop at Enfocus and my email is '[email protected]'
    All feedback gratefully received.

  • Selecting multiple objects with Direct Select tool

    I'm working in InDesign CS4 on a pc and am having trouble with the Direct select tool. I go through my document selecting multiple objects, change the color of the selected boxes only to find that about half of my objects have "deselected" themselves. Has anyone else had this problem? Or does anyone have a fix I could try? Thanks!

    I know, I was pretty vague.
    Are you continuing to hold the shift key with each addition? Yes
    Are you trying to selct things on more than one spread? No
    Are you being careful to click inside each object other than an image and on the frame for an image? Yes

  • Notes Duplicating and Disappearing

    I'm having a frequent problem with notes duplicating: a not will suddenly appear as two copies, differing by the most recent edit. If I then delete either in an attempt to clear thing up, both vanish! I can reproduce this reliably.
    Has anyone else experienced this?

    hey roy just letting you know youre not alone out there. i basically have the same problem youre experiencing.
    tried both imap and pop, disable/enable "keep notes in inbox", none of these worked.
    this is my scenario
    i create a note, enter data, press done, it stores it in the notesbox but cant be edited.
    so i try to delete that note, it duplicates itself up to 20ish notes that cant be opened, edited and they are all empty on data.
    so i relaunch mail and 20 notes are opening up filling the screen, each empty on data, then they all just disappear when i close them all down by alt cliking the green close window blob orb.
    can't use notes at all, was one of the main features i was looking forward too in leo. now im looking forward to the update.

  • Completely frustrated with downloan not working and deleting and attempting to reinstall resulting in three different accounts on my computer and none working.

    I downloaded Firefox mobile to my Droid. Connected to computer and followed instructions, using code provided on phone. Did not work. I tried to re-sync phone. It didn't work. I deleted Firefox on phone and reinstalled app. The connected phone to computer to re-sync. Could not get anything to work using"I have an account" tab so opened up another sync account. It didn't work. I deleted app again and tried again and used a third sync account to sync phone with computer. I got nowhere. Completely frustrated with three sync accounts and none working.
    Need help to delete all accounts and start over. Can't seem to find a way to do this.
    Thanks in advance.
    Bill

    Colin,
    I tried this (opening in Photoshop CS5 and resaving as jpg) as you mention:
    The remedy to this problem has usually been to open the image (the one that is having an identity crisis) in Photoshop or another image editor, and simply resave it. You don't need to edit it or rename it or anything--just open and resave.
    Re-imported and it does work fix (I get picture1 and picture2 instead of  just picture1 for all pictures).
    Having said that, I looked at all the file properties I could for:
    picture1.jpg (original)
    picture1.jpg (resaved in CS5)
    To see what changed. All are properties are identical (color depth, pixel size, etc.) except that resaved image is ~20% larger (I saved max file size jpg in CS5).
    So original is ~6MB
    resaved jpg is ~8MB
    So the question - why can't CS5 premiere import these directly (with resaving?) and what is working with the resave that locks up the first time?
    These pictures are straight from a Canon 50D, with no editing or resaving - dumped off camera to computer.  I can reproduce this error 100% of the time (new project, new folder, import 2 pics) so it isn't something goofy with the way I'm importing - 100% how premiere is handling this.
    Very disappointed that I now need to open/resave/rerender each of ~1100 images to simply use them.  Given that these jpgs are being produced by a mainstream camera with support image format.
    Any thoughts?

  • I have been having syncing issues with icloud notes, contacts, and now icloud email. Does anyone have suggestions?

    Just recently, I have been unable to receive icloud email on my iphone and new ipad3. Although, I am a loyal apple consumer, I feel a bit let down. I am a PhD student and used my ipad/icloud email for downloading  and reading PDF journal  articles. My goal is to eventally buy a MacBook Pro and eliminate some of the syncing issues with icloud by storing my documents on the hard drive. I hope this will give me some relief from all the trouble I have had with icloud. Please share your suggestions.

    Right now, there is an iCloud blackout.  Most people are having issues syncing Notes, Calenders, and Contacts between devices, emails aren't being sent, and Find My iPhone isn't working.

  • Is it possible to write a script that samples an anchor points underlying color and applies it?

    I was wondering if anyone with scripting knowledge for Illustrator can think of a script that would sample the underlying color of anchor points in a selected gradient mesh and apply it to them? I was just thinking of ways to speed up the process of creating a vector drawing based on a picture so that all you would have to do is model your mesh and then let the script apply the colors.
    Thanks

    no can do, there's no access to mesh point with scripting, sorry about that.
    have you tried Mesh Tormentor? it is free!!!, but I don't know if it will help with your problem
    http://www.meshtormentor.com/

  • How do I select a song from my ITunes Library and apply to a picture folder for a slide show?

    How do I selcet a song from my ITunes library and apply it to a picture folder for a slide show. I have a PC, not a Mac.

    Short answer:
    Click Hide Song(s), it is what you wanted to do...
    Long answer:
    iTunes in the Cloud is a feature of your iTunes store account that allows you to redownload or stream your past purchases. When you delete a purchased track that is downloaded to your computer (like the first one shown here) you are asked if you also want to hide the song from iCloud. This would remove it from the computer and also stop it showing up with the iCloud symbol as the other tracks from that album (which are not downloaded) do.
    If a track shows with the cloud symbol you can play (stream) it by double-clicking the title, or click the cloud symbol to download a local copy to your library. If you try to delete one of these tracks you get a slightly different message confirming that you want to hide the track. Clicking hide will remove the listing from the library and any other device that shows your past purchases.
    Should you want to retrieve any item hidden in this way at a later date use Store > View My Account > iTunes in the Cloud > Hidden Purchases > Manage.
    To hide all your previous purchases that are not downloaded to your computer use Edit > Preferences > Store and untick Show iTunes in the Cloud purchases.
    tt2

  • ABAP Select statement performance (with nested NOT IN selects)

    Hi Folks,
    I'm working on the ST module and am working with the document flow table VBFA. The query takes a large amount of time, and is timing out in production. I am hoping that someone would be able to give me a few tips to make this run faster. In our test environment, this query take 12+ minutes to process.
        SELECT vbfa~vbeln
               vbfa~vbelv
               Sub~vbelv
               Material~matnr
               Material~zzactshpdt
               Material~werks
               Customer~name1
               Customer~sortl
          FROM vbfa JOIN vbrk AS Parent ON ( Parentvbeln = vbfavbeln )
                 JOIN vbfa AS Sub ON ( Subvbeln = vbfavbeln )
                 JOIN vbap AS Material ON ( Materialvbeln = Subvbelv )
                 JOIN vbak AS Header ON ( Headervbeln = Subvbelv )
                 JOIN vbpa AS Partner ON ( Partnervbeln = Subvbelv )
                 JOIN kna1 AS Customer ON ( Customerkunnr = Partnerkunnr )
          INTO (WA_Transfers-vbeln,
                WA_Transfers-vbelv,
                WA_Transfers-order,
                WA_Transfers-MATNR,
                WA_Transfers-sdate,
                WA_Transfers-sfwerks,
                WA_Transfers-name1,
                WA_Transfers-stwerks)
          WHERE vbfa~vbtyp_n = 'M'       "Invoice
          AND vbfa~fktyp = 'L'           "Delivery Related Billing Doc
          AND vbfa~vbtyp_v = 'J'         "Delivery Doc
          AND vbfa~vbelv IN S_VBELV
          AND Sub~vbtyp_n = 'M'          "Invoice Document Type
          AND Sub~vbtyp_v = 'C'          "Order Document Type
          AND Partner~parvw = 'WE'       "Ship To Party(actual desc. is SH)
          AND Material~zzactshpdt IN S_SDATE
          AND ( Parentfkart = 'ZTRA' OR Parentfkart = 'ZTER' )
          AND vbfa~vbelv NOT IN
             ( SELECT subvbfa~vbelv
               FROM vbfa AS subvbfa
               WHERE subvbfavbelv = vbfavbelv
               AND   subvbfa~vbtyp_n = 'V' )           "Purchase Order
          AND vbfa~vbelv NOT IN
             ( SELECT DelList~vbeln
               FROM vbfa AS DelList
               WHERE DelListvbeln = vbfavbelv
               AND   DelList~vbtyp_v = 'C'             "Order Document Type
               AND   DelList~vbelv IN                  "Delivery Doc
                  ( SELECT OrderList~vbelv
                    FROM vbfa AS OrderList
                    WHERE OrderList~vbtyp_n = 'H' )    "Return Ord
          APPEND WA_Transfers TO ITAB_Transfers.
        ENDSELECT.
    Cheers,
    Chris

    I am sending u some of the performance isuues that are to be kept in mind while coding.
    1.Donot use Select *...... instead use Select <required list>......
    2.Donot fetch data from CLUSTER tables.
    3.Donot use Nested Select statements as. U have used nested select which reduces performance to a greater extent.
      Instead  use  views/join .
    Also keep in mind that not use join condition for more for more than three tables unless otherwise required.
    So split select statements into three or four and use Select ......for all entries....
    4.Extract  the data from the database  atonce consolidated upfront into table.
      i.e. use INTO TABLE <ITAB> clause instead of using
    Select----
    End Select.
    5.Never use order by clause in Select ..... statement. instead use SORT<itab>.
    6.When  ever u need to calculate max,min,avg,sum,count use AGGREGATE FUNCTIONS and GROUP BY clause insted of calculating by userself..
    7.Donot use the same table once for Validation and another time for data extraction.select data  only once.
    8.When the intention is for validation use Select single ....../Select.......up to one rows ......statements.
    9.If possible always use array operations to update the database tables.
    10.Order of the fields in the where clause select statement  must be in the same order in the index of table.
    11.Never release the object unless throughly checked by st05/se30/slin.
    12.Avoid using identical select statements.

  • Objects with IDs not instantiated inside Accordian using SWFLoader

    Flex SDK 3.2.1
    We are using SWFLoader to load one application from another application.
    The second (child) application uses Accordian component which contains datagrid with a specified ID attribute.
    When the code tries to access the datagrid using the specified ID the application throws the following error.
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    Any help will be greatly appreciated.
    Thank you,
    Srini

    I figured it out!
    For anyone else out there who might be looking for the same effect, here's how you do it:
    1) Create a cool shape with a cool stroke in Illustrator. 
    2) The stroke can be any color, but make sure that the Fill is white (not transparent).
    3) Copy and paste to InDesign. 
    4) Once in ID, the object will apear as a Group.  Go to Object -> Ungroup.
    5) Because the white centre of the object is filled with white, this will apear as one of the items in the group.  It will have it's own object frame. 
    6) Go to File -> Place.  Choose a photo and place it in the frame of the white space.  You'll get a lovely effect that can be manipulated as per usual in ID!

  • Overlap Buttons? Can you select 2 objects with one click?

    Hi I am trying to create a menu of a map for a client. They would like a text list of cities down one side and also dots over each city on the map.
    I have set the highlite groups to change the colour of the text but I would like to also set the menu so that when selecting the city in the the text area the coresponding dot over the city changes as well?
    As the cities are all ove the place and some quite close together i keep getting the buttons overlapping. Ive tried merging the layers so text and dot are together but it keeps overlapping and im not sure how, if i can, get it working?
    Product Version: 3.0.0.268
    DVD Devices Installed:
    HL-DT-ST DVD+-RW GSA-H53N (Firmware B104)
    Dell Precision PWS490 Intel Xeon Dual 5120 @1.86ghz 3.00gb RAM windows XP SP3 3TB raid storage
    Thanks in advance

    Hi Dave,
    The only way to do this with Encore that I know is to use a series of duplicate menus and the auto-activate feature.
    So when the audience navigates to a particular city's text, the auto-activate feature automatically executes a link to an exact duplicate of the menu they were just navigating, and displays the highlighted city text and a highlighted city dot. The dot won't actually be part of the button on the new menu, but it will look like it is.
    This technique involves careful pre-planning and a lot of linking work. It is easy to get lost in the links if you don't have a proper flowchart drawn on paper and if you don't use good menu-naming conventions.

Maybe you are looking for

  • Wireless Users In L2 Inband Virtual Mode

    /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in

  • Moving ITunes to a NAS

    Tomorrow I am getting a Synology 213j 2 bay NAS, that comes with their version 5.0 DSM software.  I will have 2 x @TB drives installed. My intention is to replace all of the functionality of my Mac Mini Mavericks server.  This server was set up as my

  • When can we get such an error..it is happening ..

    (Failed in , null - java.lang.NullPointerException      at java.io.File.<init>(File.java:194)      at com.tangosol.coherence.reporter.ReportBatch.getOutputPath(ReportBatch.java:330)      at com.tangosol.coherence.component.net.management.model.localM

  • Workflow install question

    Hello. I am new to Oracle Workflow so please accept my appologies if my question sound silly :) I am trying to install Oracle http and oracle workflow. the installer keeps giving me this error message: OUI10066 - Not all dependencies for the componen

  • IPhone 4 downloaded but not installed ios6

    not sure what to do please help