Simple startup scipt to open and enable bot
AngryMango last edited by
Hi, I’d really appreciate some help.
I’m looking to setup either a powershell command or batch file request that we can run from Pulseway or on machine startup to open a project file and enable the projects bot.
I can launch the project from a batch file but unsure on how to enable the bot.
I’ve followed the instruction for the templater.ps1 powershell command and have filled out the templater-options.json file etc and whilst it launches the programme, it doesn’t seem to be opening the referenced aep file.
Im getting no errors or feedback in the log files even though the paths have been set for those.
Any guidance really appreciated.
ariestav last edited by
I believe we received a support ticket via our support channel. We were able to investigate the issue with the items you provided, and just wanted to follow up with your post here as well for the sake of building community knowledge:
I took a look through your
templater-options.json file which is a configuration for Templater’s main panel and preferences. First, when using the Templater CLI, you’ll want to make sure to quit and exit AE so that it’s not running. If you have it running while you attempt to launch via the CLI then there are conflicting configurations — the GUI configuration and the CLI configuration. So they are kind of mutually exclusive.
Now, one thing to note is that the
tasks object has two properties set to
true in your
templater-options.json file. You can only ever have one option set there. One task is to enable the bot, while another is to replicate a batch. Think of those properties as being “mapped” to the buttons in the main Templater GUI. You tell what the Bot to do in the
prefs objects under the
bot sub object — specifically the
action_replicate. So, my suggestion is to set the replicate property in the
tasks object to
false, and leave the
Also, I would like to see the exact Powershell incantation you are using to perform the launch. If you want to enable bot from the command line, you will need to use the
-ui flag because enabling Bot requires AE’s GUI open up.
Please let me know if this helps.