Article View: adobe.photoshop.scripting
Article #518Cancel User Action
From: Joerg_Koch
Date: Mon, 05 Jan 2009 14:07
Date: Mon, 05 Jan 2009 14:07
12 lines
1182 bytes
1182 bytes
Is it possible to cancel an action invoked by the user?
Example: If the User chooses a specific action (crop in my case) I want to run a script that extends this action. In order to do that I have a script that runs when the user chooses crop. In that script I would like to first cancel the Event "Crop" and then offer some optional actions.
Adding the script is done by:
app.notifiersEnabled = true
var eventFile = new File(path + "myscriptextendscrop.jsx")
app.notifiers.add("Crop", eventFile)
But now I'm looking for a way to cancel cropping to do some action and then call crop by script later.
Thanks for any hint, best, Joerg
Technical Details
Message-ID:
<59b76dab.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f5839,b62f667ea8116244,start X-Google-Attributes: gidf5839,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Joerg_Koch@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.photoshop.scripting Subject: Cancel User Action Message-ID: <59b76dab.-1@webcrossing.la2eafNXanI> Date: Mon, 5 Jan 2009 06:07:23 -0800 Lines: 16 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit