MasterPageManager scripting

Explorer ,
May 05, 2015

Copy link to clipboard

Copied

What is the trick to append a .HTT master page via scripting?

  var ma = RoboHelp.project.MasterPageManager;

  if (ma.count <= 0)

  {

      var path = "d:\\My_Documents\\My Projects\\My Masterpage.htt";

     

      ma.newItem("My", "My.css", "my desc");  // does not create a new entry?

      ma.importItem( path, true );            // does also not create a new enty?

    }

I also found a sample script "Master Page Import.jsx" which is also not appending a new master page?

TOPICS
HTML

Views

93

Likes

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

MasterPageManager scripting

Explorer ,
May 05, 2015

Copy link to clipboard

Copied

What is the trick to append a .HTT master page via scripting?

  var ma = RoboHelp.project.MasterPageManager;

  if (ma.count <= 0)

  {

      var path = "d:\\My_Documents\\My Projects\\My Masterpage.htt";

     

      ma.newItem("My", "My.css", "my desc");  // does not create a new entry?

      ma.importItem( path, true );            // does also not create a new enty?

    }

I also found a sample script "Master Page Import.jsx" which is also not appending a new master page?

TOPICS
HTML

Views

94

Likes

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
May 05, 2015 0
Will1234 LATEST
Explorer ,
May 05, 2015

Copy link to clipboard

Copied

Answering myself: Does not work in the debugger!

Likes

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
Reply
Loading...
May 05, 2015 0