JS CS4: Find and edit the text with a specified spot

That's what I have so far:

myDoc var = app.activeDocument;
mySplit var = myDoc.name.indexOf ('_');
var myFileName = myDoc.name.slice (0, mySplit + 3);
Alert (myFileName);

app.findTextPreferences = app.changeTextPreferences = null;
app.findTextPreferences.findWhat = "Nx."
app.findTextPreferences.swatches.item ("Proof");
app.changeTextPreferences.changeTo = myFileName;
app.activeDocument.changeText ();
app.findTextPreferences = app.changeTextPreferences = null;

"app.findTextPreferences.swatches.item ("Proof");" is not for me.

Can someone tell me the correct verbiage on how to set swatch color preferences as well as the text needs to be replaced?

Thank you

John

Hi John,.

Looking in the OMV under "findTextPreferences", you won't find "gamut", but you can find "fillColor".

So, instead of doing:

app.findTextPreferences.swatches.item ("Proof");

Fox

app.findTextPreferences.fillColor = "Proof."

or as I did below, assign a grade to a variable and use the shade as fillColor argument.

myDoc var = app.activeDocument;
mySplit var = myDoc.name.indexOf ('_');
var myFileName = myDoc.name.slice (0, mySplit + 3);

var myFindSwatch = myDoc.swatches.item ("Proof");

Reset search options

app.findTextPreferences = NothingEnum.nothing;
app.changeTextPreferences = NothingEnum.nothing;

app.findTextPreferences.findWhat = "Nx."

in CS 3, there is a bug that prevents you from doing this
http://forums.Adobe.com/message/1114413#1114413
app.findTextPreferences.fillColor = myFindSwatch;

app.changeTextPreferences.changeTo = myFileName;
app.activeDocument.changeText ();

Reset search options

app.findTextPreferences = NothingEnum.nothing;
app.changeTextPreferences = NothingEnum.nothing;

--

Thomas B. Nielsen

http://www.nobrainer.dk

Tags: InDesign

Similar Questions

  • I have a question comparing Dreamweaver and Muse.  Can I create a website with Muse, then learn Dreamweaver, and edit the site Web of Muse?  Or would I need to start over with a new Web site based on Dreamweaver?

    I have a question comparing Dreamweaver and Muse.  Can I create a website with Muse, then learn Dreamweaver, and edit the site Web of Muse?  Or would I need to start over with a new Web site based on Dreamweaver?

    I went the same route. I started to want to learn web design and the Muse is an excellent tool. The code it generates, however, not to use it in Dreamweaver. This could be done, I think this isn't worth it, even for a real Geek. Once you get to Muse you will find there are things missing, stuff, you want to do, but are just tough in Muse or you can buy a widget. It is possible in DW and you get which through subscription, so it makes sense. Me what I know now, I'll go directly to DW to learn, except if you want results right now. If you don't want something to cause I stay with Muse and maybe learn to animate CC to add some pizazz to the site. If you only want a simple layout and a couple supporting stick with Muse pages if you want a larger site use DW. Good luck and check out this page to Muse on Google Plus Adobe Muse for beginners - community - Google +...

  • Where can I find and download the file "Windiag.iso" for Windows XP Home Edition?

    Where can I find and download the file "Windiag.ISO" for Windows Xp home edition?  IT TURNS OUT THAT HE MUST FIRST DOWNLOAD AND RUN A FILE NAMED 'MTINST. "EXE", AND THAT IN DOING SO, THE FILE NAMED "WINDIAG. ISO"IS CREATED.

    Hello

    You can check this link:

    http://oca.Microsoft.com/en/windiag.asp

  • How to edit a .ai (converted to a smart object) in photoshop.  I want to change the text and changed the text and graphics

    In photoshop, how to change a file .ai (converted to a smart object)?  I want to change the text and changed the text and graphics.

    Total beginner, so need help.

    Thank you very much.

    That must be edited in Illustrator.

  • Simply way to change a company logo and change the text.

    I am new to Ai and I just wanted to know if there was a simple way to change the text in a file HAVE existing. When I opened the file, it is much more advanced than I thought.

    I have a logo with "Networking Solutions. I just want to remove "ing" to make "Network Solutions" and put the 2 words as well as the correct spacing.

    May have bitten more than I can chew and if so, want to not hurt my feelings so well said.

    Concerning

    I moved your question to the forum of Illustrator.

    You have a file HAVE? You can open the layers panel (window menu or find the icon)? Then swirl open a layer by clicking the small triangle before its name. Looking for an underlay that has the word "Network Solutions" as the name. Select this layer, click on the tool T in the left vertical of Toolbox and you will be able to edit the text.

  • Copy and paste the text

    How can I copy and paste text from the web in Photoshop?

    Not all text is text. Some of the graphics are. In a browser, you should be able to select the text with a text tool, otherwise chances are it's a chart.

    Your browser must have a type of menu Edition in this menu, you should find a copy command.

    In Photoshop in the edition menu, you will find the Paste command.

    If you need help more than you will need to provide information on what type of computer you have (mac or windows) operating system and its version, what browser you use and the url of the Web page you want to copy from.

    That said, attention copy on the web, everything can be copied and used because you are your own application. Due to copyright laws.

  • (CS4) How to change the text in the character format?

    Hello scripters.

    I need help with a problem with "FindChangeByList":

    I want to change the text with special elements (and more than one element),

    for example: color: black AND italic AND subscript

    (high, critical, or small caps)

    and change in a character format that I have before defineted

    (lets call it for example "01 - xyz").

    As I understand it, I can do it with GREP and 'FindChangeByList-sript.

    But what should remain here '?

    grep {"find what:"?} "} {" change to: "?} "} {include notes: true, include master pages: true include hidden layers: true, any word: false} find all double spaces and replace them with single spaces.

    Can someone help me, please?

    Your Oliente

    http://Kasyan.HO.com.UA/downloads/RecordFindChange_CS3_Kas.zip

    This script writes the current preferences of find/replace in a text file so that you can copy and paste the in a list file search/replace. It will be useful for those who use the FindChangeByList.jsx script and have trouble with editing files FindChangeList.txt
    Written by Martin Fisher (I made a few minor changes: translated from the German text into English)

  • Editing the text in InDesign CS3

    I am trying to edit text in an older InDesign file.  When I try to edit the text, the text cursor changes places pointed outside delimiter to a round and I can't select or change the type.  What is the change in the appearance of the average slider and how to change the text?

    Thanks for any help you can give me.

    This could explain why the tool moves to type on a path. ID think that you want to add more text on the lines. If the file has been saved with the text you entered, you're sol save a version of type without a modifiable version is about criminal (and we will not go into why you should describe the text initially).

  • Record and edit the name of the file

    When I save slot, I want the image the name of the file of type I so that all future changes can be saved by clicking on 'save' and do not have to find and rename the file EACH TIME. Sometimes it works, sometimes it doesn't. It seems very random.

    I think it has something to do with 'save a copy' but more often that otherwise, that option is grayed out so I couldn't if I wanted to.

    Photoshop calls the functionality "Save as copy" when he feels that you can't save all the things in your image document in the format you have chosen.

    For example, if an image has layers or channels R, G, and B is in 16-bit mode, it will not be able to record all these things in a JPEG file.  So, he called the feature "Save as copy" and makes the assumption that you want to save the entire document, including all the extra stuff in a separate file of master in a format that can handle anything - for example, .psd.

    This leads to this (normal) behavior:

    1. you work on a drawing or a picture that has a bunch of fancy inside stuff (for example, a few layers, masks, some additional channels, 16-bit mode).

    2. you save in a master .psd file.  It does NOT call Save as copy, and FACT set default save filename.

    3. you work on it again.

    4. you save as .jpg file - for example to prepare for editing.  This called save as copy and the rest .psd. default file name

    5. you try to leave Photoshop and it tells you that you have not saved your file master .psd, so you save it.

    If you want the operation to save as to reset your default file name, flatten, delete channels, other or lower color depth to make it compatible with the format that you save it, so save as copy is not forced.  Or save it under another different .psd or .tif able to manage these features.

    Hope this helps to understand.

    -Christmas

  • AE CS5 rendering/export PS of the text with a transparent background for the web?

    I am sure that this question has been asked and answered a hundread times already, but I can't seem to find the answer. I tried Googling and looking for these forums, maybe I just bad search peramiters.

    I'm trying to create and animate the text via AE CS5 for a web site. Then, I want to use it in Photoshop CS5. I can't find this option. I know that in the past, you were supposed to make the text in the form of film of all kinds, but now I'm just lost and confused on what to do.

    If the answer is just too long to post here, could someone please post a link to a tutorial/response?

    I guess that the answer will be a little different from versions CS4 CS5.

    Thank you.

    Go to any format Quicktime or a sequence image that supports Alpha channels, and then import this file in PS as a video layer or use frames in the layer Import Wizard.

    Mylenium

  • Can I insert image into the existing identity document and make the text flow around it?

    I now get text properly formatted in InDesign CS4.  Is it possible for me to add pictures to this already existing document and that the text automatically adjust to autour flow of these images comes to be inserted?

    Thank you

    Just use File > place command to add your photos. Edition > clear all before do you.

    After you have placed your images, select them using the Selection (black arrow) tool, choose window > text wrapping and text wrap. After that, the text flows around this image when you take on the top of the text.

  • When I update my device I need to have the apple ID and I can not find and contact the owner of the first.

    Hello;

    I can't find the original owner of my camera.

    I can't have my Apple device Id. When I update my device I need to have the apple ID and I can not find and contact the owner of the first. And I have a lot of problem with this matter.please help me. Please unlock my device to activate locking Mode.Or maybe if I have the Apple Id for my camera I found the password.

    My phone number is:

    IMEI:

    *********

    ICCID:

    ********

    Serial No.:

    F2 * FFK

    Part number:

    ME300LL/A

    Please, please, please help me.

    best regards;

    Siavash


    < personal information under the direction of the host >

    Only the owner of the unit can remove locking activation. If you have the original receipt, you can try to take it to an Apple Store and ask them to do, otherwise return the unit to the person to whom it was purchased for a refund.

  • why it takes so long to load titles and open the text Inspector?

    I put a title in the timeline and in the Viewer, he said "rotating load" and it does not edit the text via the Inspector of text or something else. He said that for about 30 minutes now.

    EExactly that title? What are the full specs of your system.

  • How can I find (and remove) the source of this irritation

    With irritating regularity, a dialog box appears on my screen that says "sh: / usr/bin/lockfile: no such file or directory (127) '."  How can I find and eliminate the source of this thing?

    Please update "SuperDuper" to the current version, or delete it if you don't need.

  • Need help to find and install the game Chess Titans Windows Vista for XP

    Need help to find and install the game Chess Titans Windows Vista for XP

    Hi SBOYDC130guy,

    We will not be able to install titan of failures on windows XP because it is designed for Windows Vista and Windows 7 and it's built-in game.

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for