Assign color to findTextPreference as object

I have a script that creates a color, applies it to a particular property of a number of styles (one after the other) and then searches for that property. This works just fine the first time I run it in an InDesign session, and usually the second and third times as well. However, at some point I find that it stops working, because when the color is assigned to the findTextPreference property it is assigned as a string that gets some numbers after it. So, I do something like this:
var myColor = myDoc.colors.itemByName("testCol");
myCSty.underlineGapColor = myColor;
app.findTextPreferences.underlineGapColor = myColor;
However, if I then query app.findTextPreferences.underlineGapColor, it is a string, and that string will be something like "testCol 3" (it iterates upwards depending on how many times I've run it during a session). I can't change the string; assigning NothingEnum.NOTHING to the property and then reassigning the color just iterates the number again. In fact, even if I try to assign that color to a different color property, or to a findGrepPreferences color property, it continues to iterate the number. I so far have not been able to recreate this problem in a less complex script (I'm still trying), but I was hoping someone might have encountered this and might have some guidance.
I thought that the problem might be related to the bug discussed here: fillColor in find/change Preferences in indesign cs3 so I started adding my colors at the app level as well. This doesn't seem to hurt anything, but it doesn't help either. And trying to assign the color whose parent is app to my findTextPreferences property just gives me the error seen there (I guess that means the bug was fixed? I'm not sure.)
Is there any way to force the findTextPreferences properties to accept an object rather than converting that object into a string? Or is my problem too vague and unrepeatable to help at this point?
Thank you!

Upon further testing of this, it seems like the issue is rooted in one particular document which, if open, can experience this problem or cause it to occur in other documents (like it's polluting the session). I have no idea why, but since I can't provide the file it's not something anyone is likely to be able to recreate or help me with. Not sure if I should delete my question or close it, or what.

Similar Messages

  • Re-Color Art shifts colors around? How do I assign colors?

    How do I get the Re-color art to leave the assigned colors where they are. I have an item that comes in various color combinations. When I select re-color art and click on a pre saved color group, recolor art remaps the colors to different areas. I have a bag line featuring different cloth colors and the thread is a different color than the fabric. When I click on the next color group the color for the thread is assigned to the fabric with no rhyme or reason. If I could change the item color by using this tool, then it would be massively useful when a minute change in the item occurs. Rather than having to change 200 templates 1 at a time, I would only need to change 1 template that has all 200 color groups stored in it. That saves thousands of dollars in tedious modifications. If the only thing that recolor art does is shift colors around and allow you to effect hues and saturations, then it's useless for my needs. Cute parlor trick though.

    Mylenium,
         A bit touchy aren't we. The sarcasim is paletible. As for "prepare your swatch groups properly". The answer is yes. This is how I change colors on simple one or two color objects already. My statement had nothing at all to do with blaming any one or thing least not you Mylenium. I asked a question, which you obviously didn't read. If your not going to offer a solution or advice, may I make a suggestion Mr. Community Professional? Prove your acreditation and answer the question instead of playing protagionist. Just so you fully understand, here it is again in a much more simplified way...Right Mylenium.
         Let's pretend your doing designs for a wash rag company. These wash rags have a solid field with different color trim. All of the rags are pastel in the field, and the boarder's are all in neon colors. Got it so far. I could slow down. Now, you have a total of 10 different rags. Each one you group, open up the Re-colr art menu, sample the colors in rag number one (Let's call this Peach Neon Green). Still with me? Then select new color group. We then name it Peach Neon Green and close the menu. OK  heres where it gets tricky. Now we create another rag and we color it Lavender and Electric Blue and follow the steps above just as we did before. Suddenly the phone rings and the customer wants to change the lavender and electric blue back to the peach neon green. (Lets pretend there are 40 or 50 color combinations by now.) Simple right! Just open the Re-color art! Right Mylenium! Wait! Why is the Neon green the rag color and now the Peach is the trim color? It is as though the tool is randomly assigning the colors where ever it wants. Get it Mylenium?
         Some times we start to answer the question even before we fully comprehend it. Right Mylenium! Now be a good Expert of the community and go get me a Juice Box.
         Do you understand now Juice Box? Oh, sorry that's my pet name for you.

  • Loss of assigned color on OS X 10.7.2 and iCal 5.0.1

    Hello all,
    Has anyone run into an issue where iCal 5.0.1 looses its calendar color on a subscribed calendar? I have 3 subscribed calendars and only one of them has retained its original calendar color. The other 2 have defaulted to a light grey color with a perforated border.  I have made a few attempts to change the colors back to the originally assigned color but without any luck.
    Has any else experienced this or have any ideas I could try?
    Thanks,

    Logic's preference files may have become corrupted:
    1. Quit Logic Pro
    2. In the Finder, press and hold down the "option" key then select "Library" from the "Go" menu
    3. Open the "Preferences" folder
    4. Drag the following files to the Trash:
        - com.apple.logic.pro.cs
        - com.apple.logic.pro.LSSharedFileList.plist
        - com.apple.logic.pro.LSSharedFileList.plist.lockfile
        - com.apple.logic.pro.plist
        - com.apple.logic.pro.plist.lockfile
    These files will be re-created when Logic is next opened.

  • How can I chane the assigned colors for calendars on my iCal?

    I have a different colored calendar for each member of our family. Unfortunately the colors for 2 of my daughters calendars are too similar for their liking!! Is there any way to change the currently assigned color for a specific calendar?  Hopefully we can resolve this family crisis.
    Thanks.

    Figured it out.

  • Assignment of operations to all object list entries active

    Hello Friends,
                     Can any body please explain me what is the meaning of this setting "Assignment of operations to all object list entries active" under the order and notification integration.
    Regards
    Amar

    hi
    say if your order is having 5 operations ,then you want to assign the operations to the notification or Floc or Equipment in the object ,
    Go in to order in change mode ,select the object TAB select your object list then press the assignment button where it will show the operations where you can assign the object list to the operation you like.
    this is only for information as which operation to the performed on which object list
    regards
    thyagarajan

  • Untagged physical object must be assigned to a tagged parent object   ?

    Hi friends ,
    I am using Auto-ID Test tool  as simulattor  of Device Controller  . When i tried to trigger Tag commissioning from AII , I have sent the proper informations like GTIN , Device Controller ID , command etc.,
            It is triggering the rule TAGCOM_AA but i was getting the error at the activity POBJ_CREATE as   " Untagged physical object must be assigned to a tagged parent object  "
        If i do the tag commissioning via  Auto-ID Cockpit it correcly processing and sending the XML message to the appropriate destination .
        Please clarify !
    Thanks & regards.,
    V.Rangarajan

    Hi  Michael,
    Thank you very much for your valuable answer . But, i  stuck up   at the printer assignment .
    My question is
    1.If Tag commissioning will be taken care by the Device Controller ( Not by AII ) but command has to go from the AII to device controller .  If assign the printer  to  device group then AII will send directly  print command to Printer right ?
             Please clarify the Printer assignment steps .  I have referred the Slap and Slip configuratuion Guide but still doubt
         1. In Device Master Data Settigns - under Device Group Settings i have done as
    AII_DC     WRITE_DEV_GRP     Writer     Fixed Device     Tag Commissioning     Door     WRITE_STATION
        But i have not assigned the Printer , Where to Define this printer is it  RFC Destination ?  Pls , clarify this point .
       2. If i do that Tag commissioning via Auto ID ****  pit  AII is sending  Print  Command Message to the Device Controller (RFC Destination - which is assigned to the Device Controller )
      Once agin thanks for the good reply .
    Thanks  & regards.,
    V.Rangarajan

  • Why does the color of a smart object differ from the actual shape that it was made from?

    I have some smart objects in a file that I've been working on. For example, I have a simple replay button shape. But, for some reason the color of the smart object differs from the actual color of the shape. In other words, if I sample the color of the smart object it has a hex code of ae7f2c (image1). But if I double click into the smart object to see the actual shape color the hex code is correct: a37e2c (image 2). It's a very slight shift, but causing me to go off brand colors for a client that I am working for. Any idea what could be causing this? Thanks for your help.
    IMAGE 1
    IMAGE 2
    Running CS6 Version 13.0 x64, on iMac OSX 10.8.4

    How did you create this smart object? Paste from Illustrator. A shape layer from Photoshop?
    If from Illustrator turn off color management, copy and repaste into Photoshop.

  • Error number assignment table pointer (no.range object HRTABNR)  - LSO_PSV2

    Hi ALL
    On LSO_PSV2, when i create a course:
    Error number assignment table pointer (no.range object HRTABNR)
    Any ideas?
    Thanks in advance
    Sony

    Hi Sony,
    Please go to SNUM t-code and make sure there exists an interval for object HRTABNR.
    Regards,
    Dilek

  • Assigned color profile won't stick

    I have documents I need to send to China for production and their assigned color profile doesn't seem to be saving. Under the "edit" menu I've selected "Assign Profile" and checked "working CMYK". Then I save and close my document. When I reopen the document to double check it's color assignment I find that half the time the file has returned to "don't color manage". I'm not doing anything differently but I keep getting different results.
    What am I doing wrong?
    Thanks,
    Christy

    Hi,
    I just want to sympathise with the China/Printer issue.
    Most of my artwork goes over there and I want to rip my hair out with every new job. Steve is right that we as artists really should go by the printer's specs, but when dealing with a language barrier, not to mention a 12 hour time difference it's so far been imposssible for me to do. I keep a Pantone color picker at my desk and manually enter in the CMYK values. It doesn't always work though.
    About your problem, the only thing I can think of is that you have images in your file that were RBG when placed in your file. It might not be what's going on, but something to check anyway.  
    Good luck,
    Cherie

  • Assigning color space to dng files

    I use pe5. I can't assign a color space to my dng files. I have to convert them to jpg or tiff before I print them.
    In LR, can I assign color spaces directly to the dng file and thus can I print from the dng file?
    Andy

    -->The RAW file when printed from LR is in the Pro Photo space<br /><br />Well kind of <g><br /><br />http://www.ppmag.com/reviews/200701_rodneycm.pdf<br /><br />When using Draft mode, they are sRGB from the thumbnails.

  • Bulk assign colors or flags?

    is there a way to assign colors or flags to all the images in an Album?
    For bulk flags I have advice to "select all "Meta Data > Flag" but if I right click I don't see a meta data option and if I click on the meta data tab i only have been able to assign flags to one image even though they are all selected.
    Also I'd love to start assigning colors in bulk to images in Albums if this is possible. thanks

    Hi Leonie.
    I am trying this and the software is fantastic. Also your help is fantastic.
    But some things in here are very tricky because it is so powerful.
    For instance, can i please ask you if copying a version from an album to another album - will create two versions of the same image in the destination album (if there are versions of the same master in both)? i mean, in Finder it will ask me if I want to overwrite the file or if I don't want to move or copy or whatever.
    If I am trying to consolidate two albums so that there are not duplicates in the final album, can i copy the ones in the first to the second and delete the first? Or will there be two versions in the final if these exist?
    I am trying to test this but it is tricky since the images look very similar and I can't really tell at the moment which reference the same masters.
    Is duplicating in this case always happening, never happening, an option I can decide upon?

  • Is there any way to assign colored labels to events?

    Is there any way to assign colored labels to events without having to create numerous calendars?

    You can use numactl to lock any process to a NUMA node, but that only helps if your machine really is NUMA (AMD Opteron servers are, Itanium systems often are).
    You should be able to enumerate nodes using:
    numactl -H
    And lock the process to a node using for instance:
    numactl cpubind=$node_num membind=$node_num java MyClass
    It is hardware dependent how many CPUs and how much memory you have per node. A common number of CPUs is 1-4 sockets.
    Regards -- Henrik

  • Apply Random Color to Group of Objects

    Hello all, thanks for taking the time to help.
    Here's my issue... lets say I have 600 different objects in illustrator (just little circles with a fill color, no stroke) and 6 different colors that these circles should be. That means, I'd like about a 100 to be one color, 100 another color, etc... Is there anyway to select all 600 and just tell Illustrator that I have these 6 colors and I want to apply them to the selected objects randomly?
    Let me know if this is confusing... hopefully there is some option to do this. I don't want to apply them manually...
    Thanks!

    Rats. The [none] (no-color) swatch is stubborn.
    I was able to remove the [registration] swatch from the mix by making sure it's at the head of the palette and adding a (If swatchIndex>1) test to the script. But I can't get rid of the [none] swatch no matter what I do. Illustrator must treat it as a special case so that it cannot be referred to by index number.
    Help, James!
    One other thing: Not for nothing, but...
    lets say I have 600 different objects in illustrator (just little circles with a fill color, no stroke) and 6 different colors that these circles should be. That means, I'd like about a 100 to be one color, 100 another color, etc.
    ...is not exactly the same thing as...
    select all 600 and just tell Illustrator that I have these 6 colors and I want to apply them to the selected objects randomly
    What you want is a uniform distribution of those six colors but in no discernible pattern. That's not true random assignment, and this script won't get you there even if got the unwanted swatches out of the mix.
    No obvious solution here.

  • Color picker color does not match object color - CS3

    Hi - in RGB Illustrator doc, when I select RGB color in color picker and assign to object, the color in the object is not the same as the color I selected from the color picker.
    I think its related to view>>proof colors because if I proof using my LCD monitor colorspace, the color in the object and the color picker match but then they don't match the color in the palettes color box.
    But that's a kludge because ultimately I want to proof color onscreen using my color printer profile.
    has anyone seen this? Never had this problem with CS2.
    Using CS3 with Leopard.
    Thanks

    Hi,
    What you describe we recognized in Photoshop. We solved the issue going to the Paint Bucket Tool.
    There you can select e.g. Anti Alias, Contiguous, All Layers. With selecting (ticking) the option 'All Layers' the problem was solved. The options Anti Alias and Contiguous were already selected.
    Good luck!!!
    Lissa
    For some reason it seems impossible to have B_u_c_k_e_t typed into the message. The word is replaced by stars.

  • How do I prevent the Darker Shade Box (color shift) around Vector Objects when Printing

    Sorry in advance for the novelette. I am absolutely mystified and frustrated and would love some help! I've been working on this problem for about 30 hours over the last 4 days to figure out what the heck is happening and cannot find an answer through various forms of research.
    Basically, when I print a JPEG, I am getting this area (a box) of darker shaded coloring around my heart and love text.  I've tested it a million different ways and am at a loss as to what the problem is ... is it an application problem, a color profile problem between my applications and printer, an improper way that I saved my file, etc.
    Here is a photo I took of the image printed out (so it is slightly skewed from camera distortion):
    The details:
    (1) I create graphic art and sell it online. I save all of my printable art as JPEG files because of my customer base (diy hobbyists that print on their home printers without much knowledge base nor graphic design software).
    (2) I use both Adobe Illustrator (AI) and Photoshop Elements 11 (PSE11) to design and save my artwork.
    (3) I insert JPEG images into Microsoft Word 2003 documents to "test print" since most of my customers use home printers to print. Since most people have this basic software, it is a good gauge of the kind of print out they might get using the same or similar software.
    (4) My PSE11 color profile setting is the default sRGB. I have test printed many times and I get the truest colors with this color profile.
    (5) My AI color settings are normally also an sRGB color mode, but on occasion, I use a CMYK color mode if I am creating a larger document that I know the customer will need to take to a professional printer to print out.
    (6) I do my home printing (for proofs) on an Epson Stylus Photo 1400 (which has the 6 color ink cartridges).
    (7) Until this printing problem occurred on this test print out, I always used the "photo enhance" option when I designate settings for my printer via the Microsoft Word documents.
    IMPORTANT: This is when I have the color shift?? or color rendering issues?? and it is the only time. If I use the regular ICM/ICC color profile of sRGB, the printing issue doesn't occur. Instead, I have a solid color background instead of this one with the strips of lighter color on the top and bottom.  However, I can't control how the customer prints, so I need to feel confident that whatever color profile setting they use, they will not run into this problem.  I even test printed the documents over at FedEx and the darker box/color shift did not occur.
    (8) The document in question only has 3 sets of objects: the heart, the solid colored rectangle colored background and the text.  All 3 objects are vectors, they are at 100% opacity and there are no "special effects" applied.
    (9) The image was entirely created in AI this time and exported as a maximum quality JPEG file, although you will see below that I tried many ways to create and save the file so that I didn't have the color band borders on top/bottom.
    (10) I regularly use AI for part of my art, then I drag it to my PSE11 open document and it becomes a Vector Object (it cannot by copying/pasting into a PSE11 document).  I also regularly export AI images as PNG files, then insert them into an open PSE11 document. This printing issue has not occurred until recently.  Here is an example of a very complex AI image I created, then inserted into PSE11 just to add the background (the Teddy Bear and books are AI vector objects) that were exported as PNG files then inserted into PSE11 to integrate with the background image - I test printed with Photo Enhance and had no printing issues:
    So, from the research I have done, it looks like it is a color rendering or color space issue with conflicting color profiles in the same document. I checked my color profile settings and both sRGB and CMYK were set to embed ICC color profiles.
    I tried changing AI settings to Preserve Numbers (ignore linked profiles) for CMYK, but that didn't work.
    I also checked and made sure that not only the document setup showed the sRGB color profile, but that all the objects within the document also were converted to sRGB as well for consistency. That didn't work.
    I tried converting the document to CMYK along with the vector objects. That didn't work.
    I tried saving the heart image as a PNG file alone, the "love" text as a PNG file alone, both the heart and text together as a PNG files alone. Once saved as PNG files, I inserted them into an open empty PSE11 document - as I normally do. I then added the background color I wanted. That didn't work - the print still showed the color changes.
    I tried dragging each vector object separately and even as a group and got the same color change issue when printing.
    I tried "expanding" and "outlining" the text before exporting as JPEG, before exporting as a PNG and before dragging as a vector object into PSE11. Expanding the text did not help the situation.
    I tried exporting as Adobe PDF, then opening in PSE11, then resaving as JPEG. That didn't work.
    I tried flattening transparency (even though there is no transparency in the AI file). That didn't work.
    I tried rasterizing the image. That didn't work.
    Thinking that the file might be corrupt, I started from scratch and redesigned the same heart and love text.  Unfortunately, I had the same problem as before.  At this point, my AI started becoming buggy and would not open new files. It happened repeatedly and I decided it was best to uninstall and reinstall AI (and maybe that would fix the problem).
    I created just the heart in AI, then inserted it into an open PSE11 document (both after exporting as PNG and also by dragging as Vector Object from AI). It seemed to work. I could both drag the vector into PSE11 from AI and export from AI as a PNG, then insert into open PSE11 document with a background color - and it printed a solid background.
    So, I thought that reinstalling and setting back to defaults worked. But, then I added the love text around the heart and tried exporting as JPEG files and the same problem continued to recur. Whether I dragged as a Vector object into PSE11 (the heart object and love text separately and also another time with the vector objects dragged as a group) or saved them as PNG files and inserted into PSE11 - I got the different shades of color on what should be a solid background. I even tried saving the PSE11 as a PSD file first, then resaving as JPEG and I tried saving as PNG and printing and this didn't help solve the problem.
    I really think it is some color conflict issue but I can't figure it out. I am definitely not very knowledgeable about color profiles and how to sync all my devices, however, as I mentioned, this was not an issue until recently (and I think??? I recall changing the CMYK setting from Preserve Numbers to embed color profile a month or so ago - however, it should have been solved when AI went back to its defaults upon reinstall).
    The reason I believe it is a color rendering/color space issue is because I could see the color output when I saved the JPEG with CMYK color profile versus sRGB color profile and the sRGB colors were much richer, not surprisingly. The top and bottom colors matched the sRGB printout and the middle darker box section matched the CMYK printout.
    I am sure it is something fundamental or simple and I am completely overlooking it.  I wish it were just a transparency issue, because people know how to fix or do workarounds for it. But, there are no vector objects with any transparency ...
    If I missed some detail, I apologize. Any help would be a dream come true at this point! lol
    Thank you!

    Okay, I got motivated to try again.  From doing a bit more research on troubleshooting AI printing problems, the Adobe article talks about print drivers. It was advised to uninstall and reinstall the print driver if the printing issue persists. So, I did. Unfortunately, I still had the same result after reinstalling and trying a test print! Ugh.
    So, as Jacob said upfront, I seem to have an overactive print driver that is trying too hard (and it is a non-postscript printer which I realize is part of the problem).
    There are so many variables in my situation as to how I create art and save/export art. I sometimes work solely in AI, sometimes solely in PSE and sometimes I use both programs to create. Consequently, I will:
    (1) export directly from AI as JPEG if I am not adding PSE11 artwork.
    (2) export directly from AI as PNG  if I plan on inserting that image into PSE11 to add to artwork I have created in PSE11.
    (3) drag vector objects as a Smart Objects directly from AI to PSE11 to add to artwork I am creating in PSE11 if I know I will playing with the vector object and resizing in PSE11.
    So, I did a test print using scenario 2, where I inserted the heart and love text PNG (AI created vector object) into an old PSE11 document. This old document already had a vector object from AI with a solid background and I knew it printed correctly. So, after inserting this new PNG from AI into this old document, it printed correctly using the photo enhance mode.
    However, I haven't had a chance to actually create new art in the older AI files (that I know print properly), resave as something else and try another test print (either by exporting as JPEG and printing in Word or by exporting as PNG file and inserting into PSE11 document, then saving as JPEG and printing in Word).
    After testing the different possibilities of ICM settings within my printer, I found that the JPEG images printed out with the truest colors and best quality if I simply selected "no color management" from the printer. Shocker, huh? lol
    MY SOLUTION: So, what I think I will simply do is add an instruction sheet with the printables I sell, explaining that the color profile setting should never be handled by the printer so make sure to turn off color management by printer (and if they feel they must use the printer for color management, make sure the setting is sRGB since I embed that color profile in my JPEG's).
    Edited to add: Since my issue was never about how I could print a successful image (I knew I could simply change the color profile settings), but rather about how to make sure that customers would get consistent and high quality print outputs of my digital images, this seems like the best approach.
    I don't think I will every really know exactly why I am now getting color shifts in the "photo enhance" mode when I did not have this problem a couple months ago - applying the same methods of creating artwork. I was concerned that I was saving/exporting using incorrect or mismatched color settings or something of that nature.  However, since I went through the process of making my color spaces the same for everything, and I still have issue, clearly that is not the culprit. The only thing I can do to solve the problem and it is a straightforward solution anyway -> is to educate the buyer on how to print successfully (don't use photo enhance! ha ha).
    Thanks again to everyone who chimed in and offered advice!

Maybe you are looking for

  • Problem with entries from the ical client/server

    Hi together, I have the problem that my events are not longer visible in the ical-client of my assistant and I also can not see the events from her. Also I can not see this/my entries on the other clients (iphone, ipad). When I add an entry to my cal

  • How to export old sent mail in my macbook and import it in my Mac?

    I want to export my old sent mail in my macbook and import it in my new Mac?

  • Stereo Out -mono/stereo - Input 1/2-

    I've got a couple of projects open and just need some advice on something that I've just noticed. On the channel strip it has. Input 1 Stereo Out Two independent columns Mono circle Okay, I thought that because the the mono circle is there, there wou

  • Need help with epm installation

    hello, I´m triying to install EPM 11.1.1.3 with essbase, hyperion planning, profitability and cost, smart view and financial reporting in a virtual machine with windows server 2003. I´m unable to do it because i get errors. I don´t know what to do. S

  • I cannot find my iphone4s on itunes 11.1.1

    I cannot find my iphone4s on itunes since itunes 11 version. and then I update it to the latest 11.1.1. and hope that I can find it. But it is not. I try to change my usb cable; doesn't work. I try to plug in - plug out many times; doesn't work. I tr