Skip to content

Instantly share code, notes, and snippets.

@filiperocha
Last active January 3, 2016 12:33
Show Gist options
  • Save filiperocha/9a7ae5a1e07dae0be3fc to your computer and use it in GitHub Desktop.
Save filiperocha/9a7ae5a1e07dae0be3fc to your computer and use it in GitHub Desktop.

Revisions

  1. filiperocha revised this gist Jan 3, 2016. 1 changed file with 8 additions and 9 deletions.
    17 changes: 8 additions & 9 deletions VariableImporter.jsx
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,9 @@
    /**
    * @@@BUILDINFO@@@ VariableImporter.jsx !Version! Thu Oct 08 2015 12:48:53 GMT-0500
    * @@@BUILDINFO@@@ VariableImporter.jsx !Version! Tue Dec 15 2015 03:06:17 GMT-0600
    */

    /*
    ============================= VARIABLE IMPORTER Version 7.1.2 ==============================
    ============================= VARIABLE IMPORTER Version 7.1.3 ==============================
    By Vasily Hall
    e:
    [email protected]
    @@ -2462,12 +2462,6 @@ function VariableImporter(){
    +decodeURI(allRecords.dataFile.name)+"' have "+allRecords.variableRecords.length+" variable names and "+
    allRecords.dataSetRecords.length+" records.");

    if(allRecords.bindingFunction != "No Auto-Binding"){
    var temp = app.documents.add();
    temp.close(SaveOptions.DONOTSAVECHANGES);
    // ^^^this is needed to make sure these bindings will stick.
    allRecords.bindingFunction();
    }
    if(missingGraphArray.length > 0 || missingImageArray.length >0){
    var msg = "";
    if(missingGraphArray.length > 0){
    @@ -2481,7 +2475,12 @@ function VariableImporter(){
    msg += missingImageArray.join("\n") + "\r\r";
    }
    quickView(msg, "Non-found files log:");
    } else {
    }
    if(allRecords.bindingFunction != "No Auto-Binding"){
    var temp = app.documents.add();
    temp.close(SaveOptions.DONOTSAVECHANGES);
    // ^^^this is needed to make sure these bindings will stick.
    allRecords.bindingFunction();
    app.activeDocument.dataSets[0].display(); // display the first dataset.
    }
    } catch(e){
  2. filiperocha created this gist Jan 3, 2016.
    2,498 changes: 2,498 additions & 0 deletions VariableImporter.jsx
    2,498 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.