8 Replies Latest reply on Dec 8, 2011 12:14 PM by Spitler666

    Undo problem


      I am following the doScript examples I found on the web and cannot seem to get my undo to work.


      I am using the following code:


      app.doScript(mainScript(4,2), ScriptLanguage.javascript,undefined,UndoModes.fastEntireScript,"StoryBoard") ;


      This is called when a button gets clicked in a scriptUI panel.


      When I go to my undo menu, there is no evidence of the script, but if I undo then it goes back through the steps that my script did.


      How can I just have one undo item?


      Any help would be appreciated.