How to use styles to characters in find/replace JavaScripts?

First of all, good luck to Ole. It has been so useful (and a good writer, too). All the best!

My JavaScripts find/replace run trouble in line 159 of the ExtendScript Toolkit. The script is looking for a particular font, it is expected to then apply a character style. I use the format that I see in the example text 'FindChangeList' to Adobe, but the script is always hit a wall. What I am doing wrong? I wish I had a working method for research, not only for fonts, but also to find a paragraph or character style and apply a new style.

Simple stuff, but I'm roadblocked.

Here's the script until now:

This script applies the character style DFKai to the Arial Unicode font.


text {findWhat: "', appliedFont:" Arial Unicode MS", fontStyle:"Regular"} {appliedCharacterStyle: 'DFKai'} {include notes: true, include master pages: true include hidden layers: true, any word: false} find Unicode fonts; change the style of character DFKai.

Thanks for your help!

Gary Niemeier

Gary Niemeier says:

{include notes: true, include master pages: true include hidden layers: true, any word: false}

This not is not valid JavaScript, it looks like it was copied from a script AppleScript but not changed properly. Keys property for options must not contain spaces, they must be written:

{includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}

Tags: InDesign

Similar Questions

  • am not able to use the keyboard Finns characters.how special use these special characters

    We bought a new acer laptop

    specifications of the laptop are as mentioned below >

    ACER ASPIRE S3 13.3 INCHES

     

    We are not able to understand how to enter some special characters using the key board, some characters are shown below

    a o a

     

    Could you please inform us about how this particular buttons might be enabled.

    Two methods:

    1. use the character map to select the character and copy/paste in your application

    2. change local/keyboard control/regions and languages/change keyboard that some keys are mapped to your special characters

    For more information, Google keywords above.

  • Find/replace style cell with GREP

    Hi all, (my first post here)

    I found a script very useful on this forum to find/replace cell styles in an array. I adapted the script using Peter Kahrel ebook for use with a GREP query.

    I've linked to a spreadsheet in InDesign CC 2014 I want to highlight the cell of new products that contain the value [Y].

    When I run the script below, I get random results.

    myDoc = app.activeDocument var

    app.findGrepPreferences = app.changeGrepPreferences = null

    app.findGrepPreferences.findWhat = "\[\u\"]

    var myFound = myDoc.findGrep)

    for (i = 0; i < myFound.length; i ++)

    {

    If (. parent.constructor.name myFound [i] == "Cell")

    {

    . parent.appliedCellStyle myFound [i] = "New_Product_Cell".

    }

    }

    Modify the script that I wrote above.

    Otherwise your discovery is just '[u]' ==> multi-ad found is--> Direct manufacturer name


    Jarek

  • No support for pse4, don't need help with aid and all the rest. What is a layer? How can I get help PDF from CD? I don't have any idea how to use it. I have a Macbook pro.

    Need help with using pse4 not taken in charge by adobe. How subjects do not available and I have never used something like that. Aide said there is a download but have not been able to do. What is a rookie to do? Y at - it somewhere that I can go to learn how to use PSE4?

    To find out how your problem:

    http://kb2.Adobe.com/CPS/402/kb402107.html

    To get help from the CD files you double-click in the finder, go to PDF help and drag it to the desktop or elsewhere.

  • Find/replace doesn't work does not correctly

    I'm changing this symbol "<" to a ball of Wingdings.

    I put the symbol in the field of research, but when I stick the ball in the change of field it is a small ball (I'm not the biggest ball stick). When I go ahead and make the discovery then / change options, it replaces the symbol in the document, but the only thing that remains in place is an empty space pink highlighted as if I do not have the police Wingdings.

    Can someone help me solve this today? Thank you!

    Use the tab of the Find/Replace dialog box glyph. It is much more accurate. You can choose exactly what glyphs you want in the find and change of the form:

  • How to use paragraph and character styles properly?

    I have a document in which the text has two colors (which has no style)

    Black (normal) and Red (to highlight the keywords).

    I needed to put these 2 in a style

    (black) paragraph style

    (red) character style

    Here's my question.

    How can I make sure that when I use the paragraph style, she also uses the style of character but only on the Red words?

    While I need not find/replace every word manually

    I want to do at once.

    If you want to add styles to a document already created:

    (1) create your character style that contains only the color of the characters

    (2) search and replace a text with red color search and replace with the new character style formatting. (Do not type anything in the text portion of the find and Replace dialog box)

    (3) create and apply your paragraph style to all. The text with the applied character Style will stay red.

  • How to use paragraph styles?

    Can someone explain how to use paragraph Styles? OMG! This is so difficult for me to kiss - I can't seem to understand how to create a paragraph style in a document, in the first place, then I don't seem to be able to apply it to the rest of paragraphs in the document.  Whenever I have try this I lose the track and then I lose patience!

    I do appreciate this forum and hope someone can clarify this issue for me, I am eternally grateful. I'm trying to gather some my illustrations and story in a booklet for children and I need to get out to publishers (fingers crossed!) until I forget why I started to be a student in graphic design and Illustration in the first place

    Thank you!

    aganess wrote:

    Can someone explain how to use paragraph Styles? OMG! This is so difficult for me to kiss - I can't seem to understand how to create a paragraph style in a document, in the first place, then I don't seem to be able to apply it to the rest of paragraphs in the document.  Whenever I have try this I lose the track and then I lose patience!

    I do appreciate this forum and hope someone can clarify this issue for me, I am eternally grateful. I'm trying to gather some my illustrations and story in a booklet for children and I need to get out to publishers (fingers crossed!) until I forget why I started to be a student in graphic design and Illustration in the first place

    Thank you!

    I've been there. It was a long time ago, but I still remember the confusion and despair.

    First, know that you will survive and ask what was the hang up. If you are a special person, do you promise never to forget what was the hang up, then you can help others when it is time to pay back the community.

    Think about how things work without paragraph styles. When you want a paragraph to look a certain way, regardless of the software you have used to work with text, you select ("highlight") some text and look for ways to style it (check its appearance, or 'attributes' or 'features' or 'features'.) You choose a font (Helvetica, Times, etc.) weight ("BOLD", extra bold, light), a color of text, an angle (italic, Roman), the space between the lines ("leading,") space between paragraphs (space before, space after,) and so on. Without named styles, you must select each property in a menu or a list when the text is selected. The next time that you want this same paragraph look, you can recall everything you did and repeat with newly selected text, or you can copy and paste one that looks, then change the text inside.

    However, it does take long to realize that he has to be a way to save these settings and pull them up and slap them on the other selections, with a few clicks and make sure that you don't forget to do something. Creation and registration of collection of a paragraph of the property settings are called "define a style." Software for manipulation of more modern text can save paragraph styles that apply to full paragraphs, and they can also save character styles, which apply to parts of the text in a paragraph. A paragraph of normal text can be used a style called 'body '. You can select a bunch of miscellaneously style paragraphs and apply the body style for them with a single click on the paragraph styles list.

    If you decide that you would like the body to look different style, you can redefine, and all paragraphs in the active document using the body style change to show the look of the new definition.

    In a body paragraph, you can have same bold italic bold text and italictext and so on. You can always select text in a paragraph and find a menu that offers characters bold or italic in the selected text. But you can also create a character for each of these apparitions style and apply them to music. As for paragraph styles, character styles are more controllable and more useful than simply highlight and apply a property. If, you use a character style that applies "BOLD", you can change its character style definition and all the places it is used in a document will show the change.

    Here is an example which shows the usefulness of the styles of characters named:

    According to the standard style for writing guides that have been developed before computers, scientific names, the words of the foreign language in a host as the English language, the titles of the documents, movies and poems and a few other things are supposed to be italicized. With character styles, you can create and apply styles of characters for each category of text in italics. In this forum, * sapiens, The Pentagon Papers and Gone With the Wind, all look the same, but with character styles, styles, named 'scientificName', 'bookTitle', and 'filmTitle', can distinguish between texts in italics. Sometimes, you gotta be able to treat these things differently, and styles is a way to keep them organized.

    Most writing tools can create a style named for the existing sample. So, if you have customized a paragraph for your body text, you can use InDesign to set the body of the paragraph in the example chosen style.

    Google search for terms like 'InDesign create the paragraph of the selection style,' "InDesign redefine style', 'Create a character style, InDesign' and"InDesign tutorial character and paragraph styles."

    HTH

    Kind regards

    Peter

    _______________________

    Peter gold

    Know-how ProServices

  • How to use the automatic configuration wizard and where can I FIND?

    How to use the automatic configuration wizard and where can I FIND?

    Hi TannySmedt,

    To activate the Configuration service automatic wireless so it starts automatically, click the Start button. Select settings , then select Control Panel. If you use Windows XP display, select the performance and Maintenance category, and then select Administrative Tools. If you use Classic view, and then select Administrative Tools. In the left pane, click the Services icon. Click the automatic Wireless Configuration icon in the right pane, and change the box Startup Type to Automatic. This parameter will be defined the service starts automatically at boot time. Then click on the Start button to start the automatic Wireless Configuration service zero wireless and click on the OK button.

    The automatic Wireless Configuration can also be started and stopped from a command prompt. To start the automatic Wireless Configuration, run the following command:

    net start wzcsvc

    To stop the automatic Wireless Configuration, run the following command:

    net stop wzcsvc

  • I get request to update my Flash Player from Adobe. What is c? Where to find info on how to use it?

    I don't really know how to use this thing, I'm seriously "physically challenged and a slow-learner." and my computer repair man keeps changing computers about me.  (In this I am not sure that it helps me.  Once I have to get used to some programs, there are 'new '.   His "real confusion.  For example, I got a real easy to use-address book that had all my personal and business addresses and telephone #s in there.  The computer got a 'blue screen' several times, so he came and changed my "Dell XPS" computer professional with a 'new' (a ' Dell 7 Ultimate' it was 'better'.    If I could afford it, I buy a new one and start over) so I rarely know 'where' I am, or what to do when I'm 'where I am.  With a full-time job and a serious hobby of computer repair, it doesn't have the time to help me with "operational" issues This put an unfair burden on anyone trying to help me, but I HAD TO GET HELP - SOMEWHERE, so if I'm not a gene with what will be long-term issues (because I don't know much about the computer operations), can I impose to ask what might be the basic questions?  Of course, they cannot be "basic", but what I know.     I read "... for Dummies" books, but they did not answer my questions.  I'll try to be brief, but it's not my nature.          So, let's go...

    Sometimes I get request to "update my Adobe Flash Player."  I have looked under Start programs and everything I find is "Adobe Flash Player";  I do not use reader because I do not know how, or its purpose.  But I feel like I'm missing out on thing, why would he says in the 1st place?  (I don't want to watch videos, and somewhere, I think I remember it may have something to do with it.  If so, I peut have a NEED for him.  And if so, where can I find information on how to use it.  Once again, if so, I also NEED the Flash Player?

    Original title: * e-mail address is removed from the privacy *.

    Flash Player is used by some web sites to improve how their web page or pages are displayed. If you go on a site that uses Adobe Flash and Flash Player is not installed on your computer, you will see a request to install Flash Player. When Flash Player is installed, then you can never know its duration as its transparent you when loading a web page.

    In your case and on my computer I installed Flash Player, and for this purpose, I see the same update request that you see. It is best to install the update to the latest version of bugs or security risks that may currently exist in the old version install on your PC.

    J W Stuart: http://www.pagestart.com

  • How to use this site and whre to find answer to my questtion?

    How to use this site and whre to find answer to my question?

    Well, you found how to ask a question, see the answers, simply click on your profile jake coll at the top right of any page name and look at my Questions.
     
     
  • Where can I find out what makes each tool and how to use them?

    Can someone tell me where I can find what each tool is, what it does and how to use them? I just started a class and requires the use of Photoshop. I've never used any programs like this and I'm very overwhelmed. I have nothing that tell me what each item is. ID there a book you'd recommend I could follow to get my answers?

    Hello

    The photoshop online help manual is good too.

    Tool of Photoshop galleries

    or here

    http://www.photoshopforphotographers.com/CC_2013/Help_guide/tools_panels.html

  • I DELETED MY PDF FILES AND AGAIN USING THE RECOVERY SOFTWARE I FIND ALL MY FILES BUT NOW WHEN I OPEN FILES THAT IT SHOWS (THE FILE MAY BE CORRUPTED OR NOT SUPPORTED FORMAT.NO HOW CAN I OPEN THE FILES.) ALL OF THEM ARE MY DOCUMENTS IS VERY IMPORTANT. PLEAS

    I DELETED MY PDF FILES AND AGAIN USING THE RECOVERY SOFTWARE I FIND ALL MY FILES BUT NOW WHEN I OPEN FILES THAT IT SHOWS (THE FILE MAY BE CORRUPTED OR NOT SUPPORTED FORMAT.NO HOW CAN I OPEN THE FILES.) ALL OF THEM ARE MY DOCUMENTS IS VERY IMPORTANT. PLEASE PROVIDE ME WITH A

    Deleted file recovery can recover incomplete files, i.e. the part of these files may be missing.  Recover deleted files is much more reliable if recovery of a backup, instead of using recovery software.

    These things depend on the operating system and the file system.

    One thing, you can see: open one of these files damaged with a text editor, and then make sure that the constant % PDF is somewhere in the first 1024 bytes.

    PS please do not post ALL uppercase; It is very difficult to read!

  • I can't find a newer version of adobe flash player for ubuntu 14.04, I tried to use the apt version but it wouldn't work and I don't know how to use the tar.gz files and install, I think the current version to .deb

    I can't find a newer version of adobe flash player for ubuntu 14.04, I tried to use the apt version but it wouldn't work and I don't know how to use the tar.gz files and install, I think the current version to .deb

    Hi LF12,.

    The latest version of Flash Player for Linux is 11.2.202.400.  The current versions of Flash Player are displayed here http://www.adobe.com/software/flash/about/. The versions on the page are updated with each new version.

    --

    Maria

  • How to use the OEM grid control to find databases, not in archivelog mode?

    Hello

    We have currently 130 databases, say, if I want to come off as any database currently NOT in archivelog mode, is there a quick way to find out?

    using the OEM grid control

    or

    a similar trick,

    but really do not need to manually check each database.

    Thank you very much!

    This query works in 12 c - please run as SYSMAN.
    It is based on undocumented assumptions well + (AND key_value = "NOARCHIVELOG") +.

      SELECT *
      FROM SYSMAN.MGMT$GROUP_DERIVED_MEMBERSHIPS O ,
        SYSMAN.MGMT$TARGET T ,
        sysman.MGMT$AVAILABILITY_CURRENT st
      WHERE
      o.member_target_type     IN ('oracle_database', 'rac_database')
      AND ( t.target_type           ='rac_database'
      OR (t.target_type             ='oracle_database'
      AND t.type_qualifier3        != 'RACINST'))
      AND o. member_target_guid     = t.target_guid
      AND t.target_guid             = st.target_guid
      AND st.availability_status    = 'Target Up'
      AND ( EXISTS
        (SELECT *
        FROM sysman.mgmt$metric_current i
        WHERE I.TARGET_GUID = O.MEMBER_TARGET_GUID
        AND metric_name     = 'archFull'
        AND Metric_Column   = 'archTotal'
        AND metric_label    = 'Archive Area'
        AND column_label    = 'Total Archive Area (KB)'
        AND key_value       = 'NOARCHIVELOG'
        ));
    

    Another way to achieve the goal is to push the extended parameters (SELECT LOG_MODE FROM V$ DATABASE) on each DB and monitor the values they return to the repository. This is an example for a (slightly) different problem - http://iiotzov.wordpress.com/2012/08/08/how-to-use-the-new-oem-12c-metric-extensions-to-enforce-enterprise-wide-custom-policies.

    OEM repository has many other uses grand-http://iiotzov.files.wordpress.com/2012/05/oem-repository-a-second-look.doc, http://iiotzov.files.wordpress.com/2011/08/iotzov_oem_repository.pdf

    Lordane Iotzov
    http://iiotzov.WordPress.com/

  • How to use special characters on a Japanese keyboard?

    Japanese keys (operating instructions)

    HI, I have a Japanese keyboard from microsoft (3000 comfort curve) its special character do not work. As if I try shift + 2 his writing @, although there is another icon in Japanese, I want to write that one. Is there any other combination to use these special characters as I changed the default value of the Japanese language. all keys on the keyboard are gud work, only question goes with special characters.please updated on an urgent basis.

    Vijay

    Hello

     
     
    What version of Windows 7 use you?
     
     
     
    If you are using Windows 7 Ultimate, you can consult the following links.
     
     
    Windows 7 language packs are available for computers that are running Windows 7 ultimate or Windows 7 Enterprise.
     
     
    Download languages for Windows. Get languages for Windows 7 and Windows Vista.
     
     
    Language packs.

Maybe you are looking for