If the story editor is open, basil scripts will fail to run.
The error happens in the setup stage, when currPage
is getting defined. It occurs in line 990
:
currPage = app.activeWindow.activePage;
'Object does not support property or method active page'. Apparently it is not sufficient in the previous check to see if currDoc.windows.length
, but there needs to be an additional check, if activePage
can be accessed.