Buttons are not something that I use in ID but at a glance Im not sure that you require the '.properties' so try something like…
alert( buttons.gotoStateBehaviors.firstItem() );
ONLY my guess though…
Fair guess :)
1. http://jongware.mit.edu/idcs6js/pc_Button.html -- select "gotoStateBehaviors"
2. http://jongware.mit.edu/idcs6js/pc_GotoStateBehaviors.html -- select the singular
3. http://jongware.mit.edu/idcs6js/pc_GotoStateBehavior.html -- here are the properties per item.
The first, "gotoStateBehaviors" as a property of "Button", is marked as "collection" because you can have more than one.
So the command to drill down to the first state of a button and fetch its name is
thats awesome. can u help me to find out the value of 'state' name also
when i give alert(app.documents.buttons[i].gotoStateBehaviors.associatedMultiStateObject.name); it gives me the value as 'Multi-state 12', but couldn't get the value 'State 2', please refer the picture i've attached earlier.
any thought ?
perfecto ! ! !