Back

If your email is not recognized and you believe it should be, please contact us.

Forum Replies Created

Viewing 15 posts - 181 through 195 (of 498 total)
  • Author
    Posts
  • in reply to: Script to search for an XML tag and remove it #94374
    Masood Ahmad
    Participant

    Neither this worked, sorry!

    in reply to: Script to search for an XML tag and remove it #94368
    Masood Ahmad
    Participant

    Hi Loic,

    There is an error in the script, can you please check and fix the error. I’m trying this on InDesign CS5


    <pre class="brush: javascript">
    var main = function() {
    var doc = app.properties.activeDocument, root, xes, n;
    if ( !doc ) return;
    root = doc.xmlElements[0];
    xes = root.evaluateXPathExpression ( ".//SalaryDescription" );
    n = xes.length;
    while ( n– ) xes[n].remove();
    }

    var u;

    app.doScript ( "main()",u,u,UndoModes.ENTIRE_SCRIPT, "The Script" );

    in reply to: TEXT FIND IN THE XML TAGS #94331
    Masood Ahmad
    Participant

    Amit, just checking, how are the things going.

    in reply to: Script to apply Italics to your word choice #94329
    Masood Ahmad
    Participant

    Well that depends how you take it. For me I will go for GREP styles. At least you don’t have to verify whether the style has been applied or not.

    in reply to: Script to apply Italics to your word choice #94327
    Masood Ahmad
    Participant

    Kelli, you don’t need a script for this simple task. Try GREP styles…

    Sorry Kai :)

    in reply to: BIND, InDesign 2017, LTR, RTL, New Update #94319
    Masood Ahmad
    Participant

    What I can figure out is that you have installed English version instead of updating InDesign ME.

    I don’t think Adobe will swipe away the ME features in its latest update. Try installing it again…

    in reply to: Put Index mark before a word in Find/Change #94208
    Masood Ahmad
    Participant

    I like the long answer :), interesting and knowledgeable.

    in reply to: TEXT FIND IN THE XML TAGS #94199
    Masood Ahmad
    Participant

    …alternatively, you can also create a NoBreak Character style and map it to the CODE xml tag.

    in reply to: TEXT FIND IN THE XML TAGS #94196
    Masood Ahmad
    Participant

    Try this (both options F/C and Grep Styles)

    GREP Find/Change:
    Find What: \u\d{2}\.[\u\d]{1,2} .$
    Change to:
    Change Format: NoBreakCharacterStyle

    GREP Styles:
    Apply Style: NoBreakCharacterStyle
    To Text: \u\d{2}\.[\u\d]{1,2} .$

    and let me know if it works for you :)

    in reply to: TEXT FIND IN THE XML TAGS #94178
    Masood Ahmad
    Participant

    Hi Amit, Can you send us the snapshot with hidden characters and one with from the story editor. I would like to see the tags involved, as you said.

    in reply to: Index from Character Style #94111
    Masood Ahmad
    Participant

    Well, Obi… I don’t expect such a language here on the Forum.


    Maybe David has time to spend with you!

    Not me! …

    find someone to make their work for free!

    Boring! :(

    I mean who write such a language on a forum. People who place their queries here are often new and more likely they didn’t know how to do something. Of course, there is a detailed documentation from Adobe but sometimes that doesn’t suffice. There are book available in the market on every subject hence we still go to institute and Trainers to get some knowledge.

    Moreover, I have also noticed that you post your videos here in reply to other queries but never shared those scripts. To my experience you seems to be a new-bee who just stepped in the market to earn money. There are many qualified persons as members of this forum like Peter, Jongware, Keith, David, etc. I don’t recall they have ever spoken like that and have ever asked for a penny.

    If you don’t have time “Not me! … ” then why are you here. Don’t read “Boring! :(” stuff. No one is forcing you to read or reply any posts on this forum.

    Sorry @David, but I don’t encourage such talent.

    Masood Ahmad
    Participant

    @David, Can’t Adobe provide some shortcut (plugin/script) to reset the annoying preferences. You know most of the users fear while making any changes to the software, deleting this and that is a nightmare for some. I think it will be a good idea to have some sort of shortcut.

    in reply to: TEXT FIND IN THE XML TAGS #94097
    Masood Ahmad
    Participant

    To my understanding you need a Grep style:

    GREP Styles:
    Apply Style: CharacterStyleForTheXMLtags
    To Text: <.+?(?=>)>

    Create a Character style that you would like to apply to the tags other than the text in between the XML tags. Then you can use the above settings using the GREP styles through paragraph styles.

    Let me know if I’m thinking the same.

    in reply to: Viewing a Facing-Page Doc as Non-Facing-Page #93865
    Masood Ahmad
    Participant

    To my knowledge, there isn’t any such feature in InDesign. Might be someone could do it with a script.

    in reply to: New to ID: My homework #93738
    Masood Ahmad
    Participant

    Like I said, no offense. I was just trying to make John feel homely; a sort of welcome.

    John you’re always welcome with all sorts of queries and issues. We’ll try to learn and sort them out :) :)

    PS: I was away from my computer from the last couple of days.

Viewing 15 posts - 181 through 195 (of 498 total)