• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

export story in button click

Participant ,
Apr 21, 2017 Apr 21, 2017

Copy link to clipboard

Copied

Hi

I don't know why but when i want to export incopy inside button click event it don't work

How to export file after button click

closeBtn.onClick = function() {

  var stories =  getStories(app.selection); // get all selection stories

  for (var i = 0; i < stories.length; i++) {

      var abc = stories.exportFile(ExportFormat.INCOPY_MARKUP,'c:\\1\\tmp.icml');

  }

    artDialog.close();

  }

Thanks

TOPICS
Scripting

Views

627

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Jul 06, 2017 Jul 06, 2017

Copy link to clipboard

Copied

LATEST

closeBtn.onClick = function() {

w.close(1);

}

if ( w.show()==1 ) {

     //let's execute some javascript

}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines