Back

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

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Export pages to jpg with custom filenames #14374379

    Hi Members

    try this free Script

    (Export Pages to JPG Based on Paragraph Style v1.0.19)

    on the Link :

    https://www.hasaninscripts.com/free-scripts#h.p2yci15e4sya

    in reply to: Table script for setting var column widths #14366659

    Hi Stephane, try this for Selected Table Only

    //Start Simple Window
    var w = new Window (‘dialog’);
    w.text = ‘Change Table Columns Width’;
    w.preferredSize.width = 280;
    w.group = w.add (‘group’);
    var RadioPanel1 = w.add(‘panel’, undefined, undefined, {name: ‘myGroupS’});
    var StaticaStart = RadioPanel1.add(‘statictext’, undefined,’Enter Table Columns Width’);
    var myString = RadioPanel1.add (‘edittext’, undefined, ‘100, 100, 150, 150’, {readonly: false}); //read only prevent user Entering Nums
    myString.alignment = ‘center’;
    myString.characters = 20;
    w.buttons = w.add (‘group {alignment: “center”}’);
    w.ok = w.buttons.add (‘button {text: “OK”, enabled: true}’);
    w.buttons.add (‘button {text: “Cancel”}’);
    //After Interface
    //Showing the Dialog
    var a = w.show()
    //if User Hit Cancel
    if(a == 2){
    exit(0);
    }

    //Run with UNDO Enabled
    app.doScript(doColumnWidth, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, “Change Selected Table Column Width”);

    function doColumnWidth(){
    //Convert String to Array
    var WidthVar = (myString.text);
    var TargetWidthArray = eval(‘[‘+WidthVar+’]’);
    //Script
    var mySelection = app.selection[0];
    var myWidths = TargetWidthArray;
    for(var i=0; i < mySelection.tables.length; i++){
    for(var j=0; j < myWidths.length; j++){
    mySelection.tables[i].columns[j].width = myWidths[j];
    }
    }
    alert(“Table width updated successfully…”);
    }

    in reply to: TomaxxiForms – Need the Files! Please Help!!! #14351353

    Please if any one have tomaxxi fill table script i will be very happy if you can send it to (medos20.mi@gmail.com)

    in reply to: 2.3.003 #126333

    Dear Masood ahmed,, try this code :
    ———————————–
    //Unanchored all Anchored Objects at Once
    //Developed By : Mohammad Ibrahim
    // 11-2-2020
    //Check if a Document is Open
    if (app.documents.length == 0) {
    alert (“No document is open.”, “Caution”);
    exit();
    }
    //Working in the Current Active Document
    var myDoc = app.activeDocument;
    // to use to process entire document
    var myItems = myDoc.allPageItems;
    // to use to process just current page
    //var myItems = app.activeWindow.activePage.allPageItems;
    //Creating Founded Objects Array
    var foundObjects = Array();
    for(var i = 0; i < myItems.length; i++){
    if(myItems[i].parent instanceof Character){foundObjects.push(myItems[i]);}
    }
    //Check if Anchored Objects not Found
    if ( myItems.length == 0 )
    {
    alert(“No Anchored items found in this document!.”, “Stop” );
    exit();
    }
    //UnAnchored Process Started at Array Created
    if(foundObjects.length > 0){
    for(var i = 0; i < foundObjects.length; i++){
    foundObjects[i].anchoredObjectSettings.anchoredPosition = AnchorPosition.anchored;
    var AnchoredObject = foundObjects[i].anchoredObjectSettings.releaseAnchoredObject();
    }
    }
    //Check if the Program is Done
    if (AnchoredObject < 0) {
    alert (“all Objects Done.”, “Stop”);
    exit();
    }

Viewing 4 posts - 1 through 4 (of 4 total)