Article View: adobe.scripting.indesign
Article #14944Re: [AS] Localize buttons of scripted dialogs?
From: Dave_Saunders
Date: Sat, 10 Jan 2004 12:55
Date: Sat, 10 Jan 2004 12:55
15 lines
2637 bytes
2637 bytes
I was working on a script recently and conceived of the idea that having the ability to have more push buttons would be a good thing, so you could add more buttons should you need to. For example, look at all the buttons in the PDF Export Presets dialog. The other UI things that I find myself missing are: 1. The ability to update a dialog while it is open. For example, I wanted to create a dialog that displayed just two pop-ups: Font and Style. The idea was that it would display only the Fonts that are actually in use in the document -- that's easy -- but the problem is that the styles are different for each font, so you need to update the styles list each time the Font pop-up is operated. [Perhaps some kind of mechanism where a function could be attached to a control?] 2. Some mechanism for allowing the user to control activities while a script is running. Ways to stop a script that is less drastic than force quitting the application would be great (by the way, if your script does lengthy Find/Change operations and you hit Command-period while one is running, it looks as though this will stop both the operation and the script, but generally, once you kick off a script you have to wait for it to end). I see two needs related to this second issue: (a) The ability for the user to stop a script at any moment, e.g., by clicking on a button on the Scripts palette, (b) The ability for a script to detect that the user has done something (pressed the Caps Lock key, for instance) and for it to take action accordingly. In AppleScript, these kinds of things are available through external add-ins, but in JavaScript there does not seem to be a way to do anything like this. The one other UI thing I've struggled with is status reporting. I end up doing things to my documents just so that I can see that the script is actually making progress. When a script needs hours to run, some idea that it is actually doing something is very reassuring to the user. Dave
Technical Details
Message-ID:
<2ccf4aab.2@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2ccf4aab.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,be710038a386e0ff X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2004-01-10 05:07:30 PST From: Dave_Saunders@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: [AS] Localize buttons of scripted dialogs? Message-ID: <2ccf4aab.2@webx.la2eafNXanI> Date: Sat, 10 Jan 2004 04:55:40 -0800 References: <2ccf4aab.-1@webx.la2eafNXanI> Lines: 39 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit