I don't know where it is on a Mac, but on a PC you can edit this file:
C:\Program Files\Adobe\Adobe Captivate 2019 x64\HTML/index.html
Add the bolded line just below the title tag:
<title>@MOVIETITLE</title>
<script type="text/javascript" src="assets/js/functions.js"></script>
Then in the same place create the "assets" folder and put your "functions.js" file in there.
When you preview in a browser (localhost), you js will be there and when you publish also.
I always start with at least these functions with the SLIDEENTER event listener as you will be able to see all of the information in e.Data.
var interfaceObj, eventEmitterObj;
window.addEventListener( 'moduleReadyEvent', function( e )
{
interfaceObj = e.Data;
eventEmitterObj = interfaceObj.getEventEmitter();
initializeEventListeners();
});
//function to initialize all event listeners used
function initializeEventListeners()
{
if ( interfaceObj )
{
if ( eventEmitterObj )
{
eventEmitterObj.addEventListener( 'CPAPI_SLIDEENTER', enterSlide, false );
}
}
}
function enterSlide( e )
{
console.log( e.Data );
}