Article View: adobe.scripting.indesign
Article #18360Re: Undo a Script?
From: Olav Kvern
Date: Wed, 02 Apr 2003 18:37
Date: Wed, 02 Apr 2003 18:37
11 lines
1287 bytes
1287 bytes
Brian-- While you can't undo the effect of a script with a single command, you can keep track of all of the events and undo/redo them in sequence. Apart from save, save as, close, and a few other file operations, everything in InDesign can be undone. The only trouble--from a scripter's point of view--is that it's difficult to tell where an event on the undo "queue" came from. Was it something our script did, or was it a user action? Not even a history feature would solve this for us. For whatever it's worth, I've always used method #2. It is clunky, but it gets the job done. Thanks, Ole
Technical Details
Message-ID:
<1de89065.2@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de89065.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,69f253c081a126 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-04-02 11:08:06 PST From: "Olav Kvern" <okvern@adobe.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Undo a Script? Message-ID: <1de89065.2@WebX.la2eafNXanI> Date: Wed, 2 Apr 2003 10:37:41 -0800 References: <1de89065.-1@WebX.la2eafNXanI> Lines: 18 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit