Back

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

Forum Replies Created

Viewing 13 posts - 16 through 30 (of 495 total)
  • Author
    Posts
  • in reply to: Table Style won’t override existing format #14361416
    Masood Ahmad
    Participant
    Masood Ahmad
    Participant

    Hi Darrel,

    I’m not sure, if converting to dotGain using Convert Colors is part of your process, but to my experience, it will definitely add a slight dot gain every time you convert your document. If you ask me, I would prefer to use the preflight fix –– “Convert color to B/W”. This preflight profile is purely based on 15% dotGain. Your gray tones will remains the same even after adding a color page to the pdf and re-preflighting it. Just give it a try.

    Thanks,
    Masood

    in reply to: 2.3.003 #126382
    Masood Ahmad
    Participant

    A very warm welcome to the Forum, Mr. Mohammad Hassanain. Allow me some time to search for the working files and will test the script and let you know about it.
    Thanks for writing your valuable time and support. I’ll get back to you soon.

    in reply to: Having a Problem with Hebrew/ English footnotes #1256042
    Masood Ahmad
    Participant

    Hi David, If you look at the Video, Mr. Lewis is already on an ME version of InDesign. You can see the direction icons on the Paragraph, Character, and Story Panels.

    Hi Mordechai Lewis, If you click on the RTL icon on the Paragraph Panel, the text will start from Right and goes to the left. You can also switch the direction of the text-frame in the Story Panel by clicking on the bottom right icon, just below the ‘Optical Margin Alignment’ settings.

    In addition, you can also change the character direction from the fly-out menu in the Character Panel.

    Thanks,
    Masood

    PS: David, since you’re making changes to this site, I would request you to allow pasting of images in the posts. That will be a lot of help for everyone.

    in reply to: Comma Separator in Numbers #1247434
    Masood Ahmad
    Participant

    Hi Kal,

    A very big thank you for writing the code for me. It really worked great. I just tweaked the ignore4 to be false as the script is just designed to look for just currencies. I really loved it.

    Secondly, I also like to thank you for briefing me about the quantifiers (). I do use them very often in my GREP codes. If I were to find numbers with comma, then your code (\d+,?)+ is the right choice. Since I need to capture the numbers, that’s why I have used \d\d\d, etc. As you said, only GREP won’t be enough, that’s why I was looking for something better. And I really got it. Thanks a lot again.

    Can you please share your email address with me at masood.designs@gmail.com

    in reply to: Comma Separator in Numbers #1242274
    Masood Ahmad
    Participant

    Thanks, David, that was too quick. I already tried it, but the script won’t work if a number contain commas. So, I have to remove it first. Second, the sub-dropdown is disabled.

    However, I tried to add some code to the script to remove the existing commas:
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.findWhat = ',';
    app.documents[0].selection[0].changeGrep();

    …and then I enabled the sub-dropdown list by commenting the line so that I can select:
    //enabled = false;

    Now I can say the script is working fine. However, I think that the dialog box should not be there and I can figure out that the actual working code lies in this area. I tried to tweak it but didn’t get any success.

    var D, E = "", G, X;
    D = decimalDropdown.selection.index ? "," : ".";
    G = delimiterDropdown.selection.index ? "\u2009" : ",";
    D == "." && E = "";
    X = "d+"+E+D+"{0,1}d+";
    app.findGrepPreferences = null;
    app.findGrepPreferences.findWhat = X;
    var myFinds = s.findGrep(), f, n, t, d;
    while (f = myFinds.pop()){
    n = f.contents.toString().split('.');
    // Add commas to thousands
    if (!ignore4.value || (n[0] && n[0].length > 4)){
    t = n[0].split('').reverse().join('').match(/.{1,3}/g).join(G).split('').reverse().join('');
    }
    // Add commas to decimals if there are any.
    if (!ignore4.value || (n[1] && n[1].length > 4)){
    n[1] && (d = n[1].match(/.{1,3}/g).join(G), t += D + d);
    }
    t && f.contents = t;
    }
    }

    Apart from this, the code also converts any numbers be it phone numbers or a year. It will be good if the script can sense numbers that starts with a Dollar($) or Pound(£) or Euro(€) symbol.

    in reply to: Delete everything before a character #1235555
    Masood Ahmad
    Participant

    Well…if you really want to remove the number and the Euro currency symbol altogether, then this would suffice.

    GREP Find/Change:
    Find What: \d[\d.,]*\x20€
    Change to:

    in reply to: finding which graphic contains OPI information #14323042
    Masood Ahmad
    Participant

    Just one question: Is OPI still in use?

    in reply to: Open All Files one by one #12433041
    Masood Ahmad
    Participant

    You can also use the BatchScript to run another script on all the InDesign files within a folder.

    Try that as well…

    in reply to: Export All Open Files to PDF #14323283
    Masood Ahmad
    Participant

    Thanks Jeremy. It worked as you said.

    I didn’t realised that earlier.

    Thanks a lot.

    PS: I’m unable to give time to this forum for a long time. Really sorry about that. I’ll be back once things settled down.

    in reply to: Convert RGB to CMYK Remove unused #14323324
    Masood Ahmad
    Participant

    Hi Paul.

    Try this:


    #target indesign
    app.menuActions.item("$ID/Add All Unnamed Colors").invoke();
    var myIndesignDoc = app.activeDocument;
    var myUnusedSwatches = myIndesignDoc.unusedSwatches;
    for (var s = myUnusedSwatches.length-1; s >= 0; s--) {
    var mySwatch = myIndesignDoc.unusedSwatches[s];
    var name = mySwatch.name;
    if (name != ""){
    mySwatch.remove();
    }
    }
    app.activeDocument.colors.everyItem().properties = {space:ColorSpace.CMYK, model:ColorModel.PROCESS};

    I call this script: “Swatches_Add-UnNamed_Delete-Unused_Convert-2-CMYK-Process.jsx”

    in reply to: Image Fitting options on Anchored Graphic Frames #14323906
    Masood Ahmad
    Participant

    Hi Qing, Hi Robert,

    First, please accept my sincere apologies for not responding to your replies. I got stuck somewhere and couldn’t got the time to test these additions.

    My initial requirement was to fit all the inline images in the story in the selected text frame. I tested both the scripts given by you (Qing and Robert) and they worked well.

    Qing’s script was fixing all the inline images of the selected text frame but not in the whole story. I didn’t realized that Robert’s script was in fact fixing all the inline images in the whole story of the selected text frame. Secondly, to center align the inline images was an optional thought, which I fixed by updating the para style for the inline images.

    Qing, your changes to the script worked the way I wanted:
    var allRtg = myObject.parentStory.rectangles.everyItem().getElements();
    This helps me fix all the inline images within the story.

    Robert, your first script as I said worked well. The new updated code gives me a new thought as the new code was fixing all the inline images within the document. So I have saved this as a separate script for future requirements.

    I must say, that now I have three scripts:
    1) Fix all inline images within a Document.
    2) Fix all inline images within a Story.
    3) Fix all inline images within a TextFrame.

    Thanks a ton to both of you :)

    Masood Ahmad
    Participant

    No script is needed for this. Use the InDesign’s default Insert Table command from the menu.

Viewing 13 posts - 16 through 30 (of 495 total)