I'd like to be able to add frame animation to an open PSD file and manipulate it from there. Looking at the ScriptingListener log, I can see that clicking Create Frame Animation in the Timeline window in Photoshop does something like this:
var idhistoryStateChanged = stringIDToTypeID( "historyStateChanged" );
var desc262 = new ActionDescriptor();
var iddocumentID = stringIDToTypeID( "documentID" );
desc262.putInteger( iddocumentID, 249 );
var idID = stringIDToTypeID( "ID" );
desc262.putInteger( idID, 253 );
var idname = stringIDToTypeID( "name" );
desc262.putString( idname, """Create Frame Animation""" );
var idhasEnglish = stringIDToTypeID( "hasEnglish" );
desc262.putBoolean( idhasEnglish, true );
var iditemIndex = stringIDToTypeID( "itemIndex" );
desc262.putInteger( iditemIndex, 2 );
executeAction( idhistoryStateChanged, desc262, DialogModes.NO );
The issue is that I have no idea how to find the "documentID" and "ID" I need here to make this general purpose.
Does anyone know how to find these two bits of information?