[AS] CS3- Find any text with style, then replace that text with a new applied fill color.

I am trying to find the simplest way in cs3 to find any text with style, then replace that text with a new fill color. I can find text and change text. I can find a style and change it to a new style. I can't seem to find a style and change the applied fill color. I do not want to change the properties of the style, just the applied color. Yes, I want the + sign, for now. I know, why not update the style, I am not allowed to. Any help would be great. Since the search is not available, I need a new response.
Thanks.

You can work around the bug by just doing a find, then looping through the<br />results, changing the color one at a time. It'll be a fraction slower, but<br />should do the trick:<br /><br />tell application "Adobe InDesign CS3"<br />    set find text preferences to nothing<br />    set properties of find text preferences to {applied paragraph style:"The<br />name"}<br />    set theFinds to find text document 1<br />    repeat with i from 1 to count of theFinds<br />        set properties of item i of theFinds to {fill color:"Replace color"}<br />    end repeat<br />end tell<br /><br />The bug is fixed in CS4, BTW.<br /><br />-- <br />Shane Stanley <[email protected]><br />AppleScript Pro Florida, April 2009 <a href=http://scriptingmatters.com/aspro>

Similar Messages

  • Find/Change words (with GREP) and apply a style...

    I need a Script for Find/Change words with GREP, and apply a paragraph style...
    Thanks...

    Hi Marcos,
    If you want the script to create character styles: Bold , Italic, Bold Italic, etc, and replace local formatting with these styles, use scripts in post #3.
    But if you want find and change words, or/and replace local formatting with styles defined by you, use FindChangeByList script.
    If the latter, I recommend you to download and install Record Find Change script (written by Martin Fisher).
    Then choose settings you need in Find-Change dialog – make sure they work as expected – and run Record Find Change script. A Notepad/TextEdit file will pop up with a line containing the recorded setting. Copy it, open FindChangeList.txt, delete the contents of this file and paste the line you just copied (or add it to the bottom of the file).
    Repeat the process for all find-change operations you need.
    Finally run FindChangeByList.jsx to make all changes in one go.
    However, while using Record Find Change script, you may encounter a problem: it doesn’t record paragraph and character styles placed inside a group. But you can write references to such styles like so:
    appliedParagraphStyle:app.activeDocument.paragraphStyleGroups.item("Style Group 1"). paragraphStyles.item("Paragraph Style 1")
    Kasyan

  • Using CTRL + F not working to find any text within the query result

    Hi friends,
    I am trying to use find option to find any text within the result section of a query but when I do CTRL+F  the find window appears and I can input the text that I wanted. But when I press Enter it is not giving me any result though the entered text
    is in the query result. I am using Sql Server 2012 Management studio. Any Body please help me. There is a job that I have to search certain things after running a script and now I am doing copy paste to excel and doing searching from there. 

    Prashant,
    Looks like you are trying to do in SSMS, and it is because the result set is in Grid view , if you want to use CTL + F then your result should be in Text format, try to do using CTL + T ( To get result in Text) and then use CTL + F to find any
    text.
    Thanks
    Manish
    Please click Mark as Answer if my post solved your problem and click
    Vote as Helpful if this post was useful.

  • Why will my iphone 4s not find any devices with blue tooth it just keeps on searching

    why will my iphone 4s not find any devices with blue tooth it just keeps on searching...??

    If you're trying to connect to another Apple device you can't, it's not supported.
    Here are the supported profiles http://support.apple.com/kb/ht3647

  • I recently left my computer at a hospital by mistake.  I have find my phone app and then noticed that app also works for ipad and mac.  Does it work with Snow Leopard?

    I recently left my computer at a hospital by mistake.  I have find my phone app and then noticed that app also works for ipad and mac.  Does it work with Snow Leopard?

    No.
    The iCloud services require 10.7.5, or higher.

  • I can no longer hold down a key and get the character to repeat as say, aaaaa. Instead I get a menu of accented a's, such as àáâäæãåā. I can't find any thing in the System Preferences that allows my to turn this function off

    I can no longer hold down a key and get the character to repeat as say, aaaaa. Instead I get a menu of accented a's, such as àáâäæãåā. I can't find any thing in the System Preferences that allows my to turn this function off.

    Back up all data before proceeding.
    Please triple-click anywhere in the line below on this page to select it:
    defaults write -g ApplePressAndHoldEnabled NO
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window by pressing the key combination command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
    Wait for a new line ending in a dollar sign ($) to appear below what you entered. You can then quit Terminal. Log out or restart the computer.

  • With the new software for the I phone it appears 12 000 mails without reading and I can't find the solution, With the new software for the I phone it appears 12 000 mails without reading and I can't find the solution

    With the new software for the I phone it appears 12 000 mails without reading and I can't find the solution, With the new software for the I phone it appears 12 000 mails without reading and I can't find the solution

    Actually your suggestions are the ones that i have tried. i have seen that you have tried to help others with this issue and the only one that i could find that said they found the problem said that it was an ilife update issue and it fixed it and i have no available updates. i know it has to do with something in photo stream because it happens when i create a new library and it is loading the photos but i get the message before i reach the maximum 1000 photos. so i've tried updating, new library(first backing up photos and then deleting them from iPhoto), reinstalling OSX many times, running disc utilities. I called Apple the first day i had this issue and i was the first person to call them for support with the retina display and i actually had it escalated to a senior advisor and we thought we fixed the problem but we did not. i am pretty fluent in dealing with troubleshooting these type of issues and this is the first time i'm reaching out to the community. i figured now that the retina has been out some time now that there would be an obvious answer to this issue. thanks for the quick reply.
    Bebers5

  • I cant seem to find any of the previous fx textures that i used to have before. Including the nature ones such as water, wall and moon textures.

    I cant seem to find any of the previous fx textures that i used to have before. Including the nature ones such as water, wall and moon textures.

    Please give us some more information: Photoshop version and OS version (First two lines of Help > System Info).
    Did these textures come with your install or are they from a third party?
    How did you access them before? Usually Textures are Presets you load into your Patterns dialog. If you install a new version of Photoshop or Reset Photoshop, you have to go into the Patterns Panel menu and reload them.

  • Highlighting the text by changing the "character fill color" with double-spacing?

    Highlighting the text by changing the "character fill color" doesn't seem to go well with double-spacing.
    Has anyone been aware of this issue?
    Try double-spacing the text you highlighted. What's up with this?
    This is so annoying and frustrating. I've been trying to do both of them for like 2-3 hours.
    You CAN do both, of course, but if you double-space the highlighted text, it just creates this huge highlighted part (it highlights the space between the two lines!) below the actual text.
    Anyone help me pleeeeeeeease.

    In Pages v5.2.2, taking Baskerville Regular 12 pt, and double-spacing it with character fill color does produce a nasty effect. With View > Show Rulers, I looked where the lines of text lined up on the vertical scale.
    Then I changed the Spacing selector from Lines to Between. Now, just the text had the character fill color, but the line height had increased visually downward. With the between setting, line height is changed to points, and indicates 27 pt. If you adjust this value to 16 pt, the second line of double-spacing will realign with where it was before the between change, while retaining discrete line character fill color.
    Before: Spacing set to Lines, and 2.0 - Double.
    After: Spacing set to Between, and 16 pt

  • [JS CS3] Find/Change "[Basic Paragraph]" style

    I'm trying to find all occurances of the [Basic Paragraph] style and replace them with [No Paragraph Style]. I'm using:
    app.findTextPreferences.appliedParagraphStyle = "[Basic Paragraph Style]";
    app.changeTextPreferences.appliedParagraphStyle = "[No Paragraph Style]";
    I get the message "Invalid value for set property 'appliedParagraphStyle'. Expected String, ParagraphStyle or NothingEnum enumerator, but received "[Basic Paragraph Style]"."
    I've tried every combination of brackets, no brackets, quotes, no quotes, etc. It doesn't seem like this can be scripted, even though it can be done via find/change in InDesign. Am I banging my head against the wall? Does anyone know if this can be done?

    "[Basic Paragraph]" as shown in the code below doesn't work either. (the word "Style" actually snuck in as I was trying different variations. But no combination seems to work.
    If anyone knows that [Basic Paragraph] can or cannot be accessed via scripting, I'd like to know. Thanks.
    app.findTextPreferences.appliedParagraphStyle = "[Basic Paragraph]";
    app.changeTextPreferences.appliedParagraphStyle = "[No Paragraph Style]";

  • Digital TV can't find any channels with FIOS

    My digital TV does not use a set top box. I used to be able to scan the channels and pick up the local ones, but now I get nothing. Is there a problem because of the switch over to all digital? Makes no sense since FIOS has always been digital.

    sgip2000 wrote:
    And even if your TV has a QAM tuner, the channels are not mapped properly.  Your locals could be at 94.129-133 for example.
    Depends on the brand.  My Sharp Aquos maps all the local HD (OTA) channels correctly by the PSIP information (3.1, 6.1, etc.).  Local SD channels will not be mapped as they don't have PSIP headers.  Some brands still have trouble with Verizon's PSIP information and either don't map or totally choke and can't find any of the local HD stations.  Verizon fixed an issue almost a year ago that caused my Sharp to not be able to tune any of the local HD stations for nearly 9 months - either at their mapped location or their QAM channel (70.x to 75.x in my area)
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.

  • My Iphone 5 is locked to Africa flex couldn't find any company with this name I'm stuck help me out.

    My Iphone 5 is locked to Africa flex according to some online carrier check service, i did some search but couldn't find any company in south africa or any where else, don't know how i will Unlock my phone as i got it as a gift from my friend who lives in South Africa, If some body know anything please let me know.
    regards.

    Ignore internet "sites "
    Ask you "friend " who they are or call Applecare in your country and they may tell you the status and carrier if locked

  • Any issue with the new 4.4.4 (23.0.1.A.4.30),?? ultra stamina even not work.

    Hello here.
    After the last update that appear yesterday  (23.0.1.A.4.30) Android 4.4.4.
    All is ok, cover now work, but ultra stamina mode , the same. My tablet is wifi, why this option appear in my config?.
    ....just click and ...error.
    By now, all ok only ultra stamina mode.

    Thanks for the reply.
    I understand.
    The case is, that maybe appear the same but in another way with the new Lollipop, and after Lollipop no more updates i think is secure. But well.... thanks
    P.D: this site forum ban per I.P post?, always when i write here, next time that i want to write again,  i need to enter in this forum with another internet... with my I.P is impossible..............
    a greeting.

  • Apply Fill Color to Group Item with Applescript

    Is it possible to set the fill color of a group item using applescript and CS3? The group contains paths and text that have the same fill color with no strokes.I am able to select the group and delete it or move it (with applescript) but have had no success in setting the fill color.
    Thank you in advance for help on this question. And thanks for everything I have picked up from browsing.

    Now that I am addressing the path items and text items of the group separately I am having some success. Now I am having difficulty getting the correct terms for assigning a Spot Color to the file. Here is a piece of the script.
    This works:
    tell application "Adobe Illustrator"
    set openDoc to document 1
    set ftClr1 to (first group item whose note is "Front3") of openDoc
    set ftClr1Paths to path items of ftClr1
    repeat with thisPath in ftClr1Paths
    set fill color of thisPath to {red:255}
    end repeat
    set textFrames to text frames of ftClr1
    repeat with thistext in textFrames
    set fill color of every line of thistext to {red:255}
    end repeat
    end tell
    Need help to set the fill color to a Spot Color that already exists in Swatches.
    Thanks
    Nick

  • I cannot figure out how to make the text larger on an incoming email.  The finger method doesn't work and I cannot find any toolbar with which to do it.  I could find nothing in settings also.  Plese help and thank you.

    I cannot figure out how to make the text larger in a received email.  The finger method doesn't work and I can find no tool bar as I can for composing emails.  I can find nothing in settings.  Please help and thank you in advance.

    Hi there,
    Download a piece of software called TinkerTool - that might just solve your problem. I have used it myself to change the system fonts on my iMac. It is software and not an app.
    Good wishes,
    John.

Maybe you are looking for

  • Calling a backing bean method after load of fragment in adf

    I needed to call a backing bean method after page load of fragment in adf. I used the method suggested in: https://community.oracle.com/message/11044570 only difference is im giving the if clause as: if (refreshFlag == RegionBinding.RENDER_MODEL ) {

  • How to extract every component in an array?

    Hello everyone! Do you know how to extract every component from an array field? For example: The following is the defination of a table: CREATE TABLE test ( id NUMBER PRIMARY KEY, name VARCHAR2(32), shape MDSYS.SDO_GEOMETRY And then I insert a new re

  • N97 problem with latest version

    Hello everyone,   I„m very disappointed because after upgrading to the latest version of Ovi maps it seems I can„t use it anymore.The software keep tries to get my position with no results.The red spot keep blinking but I can„t get localized.   My ph

  • Screen Sharing: iMac -- 2010 MBP 17"?

    I am thinking of buying a 27" iMac to run FCP andI wish to use my old 2010 MBP 17" laptop as a second monitor. Can I use Screen Sharing to do this?

  • The Business-System  from SLD canu00B4t read

    Hello, during export from an configuration object folloging exception occure: "The Business-System  from SLD can´t read" It seams all OK ... Thanks in advance, Frank