Back

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

Forum Replies Created

Viewing 15 posts - 211 through 225 (of 498 total)
  • Author
    Posts
  • in reply to: Setting language to No Language #92171
    Masood Ahmad
    Participant
    in reply to: XML to InDesign in tabulated form #92159
    Masood Ahmad
    Participant

    Here you go…
    https://www.dropbox.com/s/cz4szbq3ge60sjr/xml2InDesign_WorkingFiles.zip?dl=0

    You’re right. I’m not aware of XSLT but trying to have my hands on it.

    in reply to: XML to InDesign in tabulated form #92156
    Masood Ahmad
    Participant

    Hello and warm greetings to all of you.

    I was away from my computer from the last four days due to some medical urgency, but now I’m back with a boom.

    @David, I gone through your title on Data Merge and it was excellent. I was missing some of the bits which got answers very well. I already had the “inlineMerge.jsxbin” script with me. Since I was unaware about its use, I have kept it in the ‘To Delete’ folder. I never realized it could be so excellent script, thanks to ozalto.com for sharing it free. Now the script is in my Working Scripts folder.

    I can’t understand why Adobe people don’t think this way. Why is there a third party help needed for some basic tasks. These free scripts have made Data-Merge a great tool to use and I suggest Adobe should include these in its next edition.


    @Mike
    , Thanks a lot for reminding me the process.

    After troubleshooting on the subject I went through various processes and somehow I achieved this with the help of my colleague #Mohit Dhiman. I have created a small video (without audio) to understand what I did and hope this will help others to learn.
    https://www.dropbox.com/s/8pzl102ouhjh9o6/xml2indesign.mov?dl=0


    @Jay
    , I hope this will help you up to some extent.

    @David, can you write a workflow on this and post it on the site. I wish to have an in-depth tutorial on the same by someone specialized in xml

    I also came to know a title on Lynda “https://www.lynda.com/Design-tutorials/Creating-InDesign-Booklet-Using-XML/435134-2.html”, and hope to go through it soon.

    in reply to: XML to InDesign in tabulated form #92075
    Masood Ahmad
    Participant

    Thanks, I’ll check this out.

    in reply to: XML to InDesign in tabulated form #92073
    Masood Ahmad
    Participant

    Hi Mike,

    Thanks, it worked. But as I said I want it in a Tabular form. Well I know I can convert the Table to Text, which is the last option I’ll have.

    Here is the snapshot of the desired output:
    https://www.dropbox.com/s/7fv9zcs8v5vlrfq/Final%20Output.jpg?dl=0

    Secondly, when I tried Data-Merge in Tables on a new page, the Data-Merge created 50+ pages i.e. one for each. Even though the text-frame was a Master Text-Frame. Is this the default behaviour of Data Merge or am I missing something.

    Similarly, when I tried the Data-Merge on a Tabular text, the output was 1000+ pages. Each record was on a separate page.

    The script you have shared here is dedicated to this workflow or will it work with any data/csv file.

    @David, is there any in-depth course on Lynda for both XML and Data-Merge. I would like to go through it.

    in reply to: XML to InDesign in tabulated form #92067
    Masood Ahmad
    Participant

    Thanks David for your suggestions, but I’m looking for an actual workflow. I tried to some extent but the data is all coming in a single paragraph:

    10932203	England, Cumbria, Windermere	Negotiable	Recruitment Genius Ltd 	0006441610932139	Carlisle	£Very attractive salary	TheSmartList	TSLJM97510931829	Burnley	£7.20 - £8.49 per hour	No Risk Recruitment	5891RR10917145	England, Cumbria, Kendal	£20000 - £25000 per annum	Recruitment Genius Ltd 	0006441210917106	England, Cumbria, Kendal	£15000 per annum	Recruitment Genius Ltd 	0006440910917102	Preston	Dependent On Experience	TheSmartList	TSLCB078910917062	Lancashire	Competitive Rates of Pay	Hawthorn Estates (NW) Limited	Reference10917000	Blackpool, Lancashire	Competitive Rate Of Pay	Allitt Estate Agency	Reference10916975	England, Lancashire, Preston	£14000 - £14500 per annum	Recruitment Genius Ltd 	00064397

    …and when I tried it in a Table, every row is coming as a separate Table.

    Any more suggestions, please

    in reply to: Opening a file from a Folder and running a script #91759
    Masood Ahmad
    Participant

    Any clues…

    in reply to: Opening a file from a Folder and running a script #91651
    Masood Ahmad
    Participant

    Hi Loic,

    Thanks for your suggestions. However, I think I’m not violating any EULAs as I have license versions of Adobe products on my system, properly installed and I’ll be the only person doing this. The reason, I’m looking for such a script is to avoid doing the things manually.

    in reply to: Apply Multiply Effect and Clipping Path then Group images. #91573
    Masood Ahmad
    Participant

    Thanks Ari,

    No issues. You might be busy :) This wasn’t urgent.

    The script worked well, however, the ‘contentToFrame’ was filling the image as stretched. Therefore, I tried to edit the script and finally added few lines, like these:


    myObject.fit(FitOptions.CONTENT_TO_FRAME);
    myObject.fit(FitOptions.PROPORTIONALLY);
    myObject.fit(FitOptions.CENTER_CONTENT);
    myObject.fit(FitOptions.FRAME_TO_CONTENT);

    in reply to: Apply Multiply Effect and Clipping Path then Group images. #91528
    Masood Ahmad
    Participant

    Can anyone suggest something on this…

    in reply to: Increase all prices by percentage #91484
    Masood Ahmad
    Participant

    Loic, trying wrapping your code in…

    < code > your code goes here </ code >

    …just remove the space before and after the ‘code’ text to look like: your code goes here

    in reply to: Apply Multiply Effect and Clipping Path then Group images. #91442
    Masood Ahmad
    Participant

    Hi Ari,

    Based on your script I extracted some of the codes and created a new one to suit my new requirement.


    //Ari S. - designerjoe@outlook.com
    app.scriptPreferences.enableRedraw = false;
    // 'Undo' will undo the entire script
    app.doScript(main, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, "Image Manipulation Script");
    function main(){
    // Capture the current selections in array
    var mySelections = app.selection;
    for (var i = 0; i < mySelections.length; i++) {
    try{
    var myObject = mySelections[i];
    try {
    myObject.pageItems.item(0).clippingPath.appliedPathName = myObject.pageItems.item(0).clippingPath.photoshopPathNames[0];
    myObject.pageItems.item(0).clippingPath.clippingType = ClippingPathType.PHOTOSHOP_PATH;
    }
    catch (myError) {
    // If it can't apply the Photoshop path then it obviously does not have one
    alert("Selected image does not have a Photoshop path applied")
    }
    }
    catch (myError){
    // If it can't duplicate the object or apply multiply then it's obviously not a graphic frame
    alert("Make sure you selected a graphic frame");
    }
    }
    }

    In the above code, I do not want the Duplicate Catch error as the script is not duplicating anything:


    catch (myError){
    // If it can't duplicate the object or apply multiply then it's obviously not a graphic frame
    alert("Make sure you selected a graphic frame");
    }

    Can you get rid of it.

    Secondly, I would like to add Fitting option for all the selected images(s) to “Fit Content to Frame”. Can you please help me do so.

    However, you’ll laugh at my code when I tried:
    myObject.pageItems.item(0).frameFit = FittingOptions.CONTENT_TO_FRAME;

    Thanks in advance!

    in reply to: Alert message before exporting PDF #91267
    Masood Ahmad
    Participant

    Thanks Kai, for your suggestions. I’ll go through these and hope to have a good start.

    in reply to: Alert message before exporting PDF #91261
    Masood Ahmad
    Participant

    Hi Kai,

    Hope you’re well and had a great weekend.

    Being a non-programmer, I’m trying to learn “JavaScript for InDesign” from a very long time. I have searched the web but didn’t get anything that can teach me the same. I have also gone through the course “InDesign-Scripting-Made-Easy” by Keith on Lynda, but fails to understand it. I then took a course in JavaScript, HTML and CSS from a reputed Institute. There I learned about the Web and the basics of JS. The instructors over there were unaware about the InDesign DOM and hence I’m left with no knowledge about the course I’m looking for.

    The Keith’s course gives the basic idea about the DOM but not in depth. For example, how to read DOM, how to capture the commands and options from DOM and utilize them in the JS. There is a huge .chm version of the DOM by Jongware, I have downloaded it but unable to read/understand it.

    Can you please guide me and recommend something in this regard. Meanwhile, I’m trying to get in touch with some Programmers, who are working on InDesign JavaScript.

    Thanks in advance,

    Masood

    in reply to: Alert message before exporting PDF #91245
    Masood Ahmad
    Participant

    Million thanks for a quick solution. This is exactly I was looking for.

    It’s good to have so much talented people in this community.

    Once again many thanks.

Viewing 15 posts - 211 through 225 (of 498 total)