Photoshop CS5 Action Manager Not Responding

I've been trying to port CS4 panels to CS5. The code below compiles without an error. It runs without throwing a runtime error. However, every call to the action manager causes the code to stop. Comment out the action manager code and everything runs.
I also notice that the mx.Alert does not open an alert dialog. It causes the same issue. The code stops.
This code works flawlessly with CS4.
Any suggestions would be very welcome!
Mitch
private function makeLuminosityEdgeMask(maskWidth:int):void { 
try { 
var docRef : Document = Photoshop.app.activeDocument;  
var docRef2 : Document = docRef.duplicate( "Duplicate" ); 
var docName : String = docRef.name; 
docRef2.bitsPerChannel = BitsPerChannelType.EIGHT;
docRef2.flatten();
docRef2.changeMode(ChangeMode.GRAYSCALE);
var myArtLayer: ArtLayer = ArtLayer(docRef2.activeLayer); 
// Blur photo prior to mask generation for wide and medium width masks
switch (maskWidth) { 
case maskWidthMediumEdges: myArtLayer.applyGaussianBlur(1.0); break; 
case maskWidthWideEdges: myArtLayer.applyGaussianBlur(3.0); break; 
default: break;}
// Run the Find Edges filter
var idFndE:Number = Photoshop.app.charIDToTypeID( "FndE" );Photoshop.app.executeAction( idFndE,
null, DialogModes.NO ); 
// Invert result of Find Edges filter
myArtLayer.invert();
// Apply curves adjustment
var curvesShape:Array = new Array(new Array(20,0), 
new Array(60,120), 
new Array(90,180), 
new Array(145,225), 
new Array(255,255));myArtLayer.adjustCurves(curvesShape);
// Apply maximum filter
switch (maskWidth) { 
case maskWidthMediumEdges: myArtLayer.applyMaximum(1.0); break; 
case maskWidthWideEdges: myArtLayer.applyMaximum(2.0); break; 
default: break;}
// Apply median filter
switch (maskWidth) { 
case maskWidthMediumEdges: myArtLayer.applyMedianNoise(1.0); break; 
case maskWidthWideEdges: myArtLayer.applyMedianNoise(2.0); break; 
default: break;}
// Apply Gaussian Blur
switch (maskWidth) { 
case maskWidthExtraNarrowEdges: myArtLayer.applyGaussianBlur(0.1); break; 
case maskWidthNarrowEdges: myArtLayer.applyGaussianBlur(0.5); break; 
case maskWidthMediumEdges: myArtLayer.applyGaussianBlur(1.0); break; 
case maskWidthWideEdges: myArtLayer.applyGaussianBlur(2.0); break; 
default: break;}
// Apply AutoLevels to Mask
myArtLayer.autoLevels();
// Duplicate channel and rename
var channelName:String; 
switch (maskWidth) { 
case maskWidthExtraNarrowEdges: channelName = maskLuminosityEdgesExtraNarrow; break;  
case maskWidthNarrowEdges: channelName = maskLuminosityEdgesNarrow; break; 
case maskWidthMediumEdges: channelName = maskLuminosityEdgesMedium; break; 
case maskWidthWideEdges: channelName = maskLuminosityEdgesWide; break;}
// Duplicate channel to original document
var idDplc:int = Photoshop.app.charIDToTypeID( "Dplc" ); 
var desc2:ActionDescriptor = new ActionDescriptor(); 
var idnull:int = Photoshop.app.charIDToTypeID( "null" ); 
var ref1:ActionReference = new ActionReference(); 
var idChnl:int = Photoshop.app.charIDToTypeID( "Chnl" ); 
var idOrdn:int = Photoshop.app.charIDToTypeID( "Ordn" ); 
var idTrgt:int = Photoshop.app.charIDToTypeID( "Trgt" );ref1.putEnumerated( idChnl, idOrdn, idTrgt );
desc2.putReference( idnull, ref1 );
var idT:int = Photoshop.app.charIDToTypeID( "T " ); 
var ref2:ActionReference = new ActionReference(); 
var idDcmn:int = Photoshop.app.charIDToTypeID( "Dcmn" );ref2.putName( idDcmn, docName );
desc2.putReference( idT, ref2 );
var idNm:int = Photoshop.app.charIDToTypeID( "Nm " );desc2.putString( idNm, channelName );
Photoshop.app.executeAction( idDplc, desc2, DialogModes.NO );
// Close duplicate
docRef2.close(SaveOptions.DONOTSAVECHANGES);
// Release RAM;Photoshop.app.purge(PurgeTarget.ALLCACHES);
// Refresh appPhotoshop.app.refresh();
// Restore Channels palettedocRef.activeChannels = docRef.componentChannels;
catch(error:Error) {Alert.show(
"Error in makeLuminosityEdgeMask(): " + error.message);}

Here is the code causing a run-time problem: 
// Run the Find Edges filter
var idFndE:int = Photoshop.app.charIDToTypeID( "FndE" );Photoshop.app.executeAction( idFndE, undefined, DialogModes.NO );
The error is "NULL pointer was encountered"
This code was fine with PatchPanel and Photoshop CS4.
The second and third parameters are declared in the interface as optional. The second paramter is an optional ActionDescriptor.
Mitch

Similar Messages

  • Photoshop CS5 - Action is not running automatically  while I trying to save PDF to JPG

    My Problem in Photoshop CS5: Action is not running automatically while I trying to save PDF to JPG, in the batch process:
    Followed following steps:
    Opened PDF file
    Created new auction (F2)
    Flatten image
    Save as JPG
    Close file
    To Run Batch:
    Opened Batch dialogue box
    Selected set/action name
    Source: selected as “Folder”
    Directed location using “Choose” button
    And no selected any check boxes under the “Choose” button
    Clicked “OK”
      Now all the PDFs are opened one after another but not execute the selected action. Please help how to resolve for auto run.

    What is part of the Action?
    Could you please post a screenshot with the pertinent Panels visible?
    Have you tried using Image Processor or Image Processor Pro instead of Batch?

  • I installed Elements 12 because my version of Photoshop (CS5.1) is not compatible with Yosemite. Now the Adobe Application Manager will not search for updates for any of the programs in CS5.5 that I have. How do I fix this?

    I installed Elements 12 because my version of Photoshop (CS5.1) is not compatible with Yosemite. Now the Adobe Application Manager will not search for updates for any of the programs in CS5.5 that I have. How do I fix this?

    '''Except 8.0.x version also supported version is 3.6.24 '''you can find it here:
    http://www.mozilla.org/en-US/firefox/all-older.html
    check the system requirements:
    http://www.mozilla.org/en-US/firefox/3.6.24/system-requirements/
    see also:
    [https://support.mozilla.com/en-US/kb/Installing%20a%20previous%20version%20of%20Firefox Installing a previous version of Firefox]
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • I have problems with photoshop CS5, it is not executed, it remains looking for plugi

    I have problems with photoshop CS5, it is not executed, it remains looking for plugin

    Please read these and proceed accordingly (restoring Preferences after making sure all customized presets like Actions, Patterns, Brushes etc. have been saved might be of special interest):
    http://blogs.adobe.com/crawlspace/2012/07/photoshop-basic-troubleshooting-steps-to-fix-mos t-issues.html
    http://forums.adobe.com/docs/DOC-2325

  • Photoshop CC 2014 is not responding at startup on MAC OS X 10.9.5

    Hello,
    My Photoshop CC 2014 is not responding at startup.
    I have the color wheel.
    It never works since I download it.
    I'm on Mac OS 10.9.5 with a Macbook pro late 2013 full option.
    I try to delete preferences, re-install... and nothing is working.
    My photoshop CC is working well.
    If someone have an idear, it will be nice.
    Stéphane

    I would then look at Folder Permissions:
    In the Finder menu click and hold on the GO menu. Hold the option button and the User library will show up. Click the User Library.
    In that folder go to Preferences and find the Adobe folder.
    Right click on Adobe folder and click Get Info.
    In the Sharing & Permissions section there should be three names.
    All should say Read & Write next to them.
    Unlock the lock, switch them all to Read and Write.
    Then click on the little gear directly under the names or to to the left of the lock and in the pulldown click on "Apply to enclosed items".
    Then lock the lock again.

  • All photoshop cs4 tools are not responding. how do I get them to work, again?

    all photoshop cs4 tools are not responding. how do I get them to work, again?

    Are Photoshop and OS fully updated and have you performed the usual trouble-shooting routines (trashing prefs by keeping command-alt-shift/ctrl-alt-shift pressed while starting Photoshop, 3rd party plug-ins deactivation, system maintenance, font validation, etc.)?

  • Photoshop Elements 13 is not responding

    I have downloaded Photoshop Elements 13 and when I go to extract files it almost completes and then it says Photoshop Elements 13 is not responding.  What can I do to fix this?

    Hi,
    Please try couple of probable solutions as mentioned below:
    Solution 1:
    1. Close Elements.
    2. Launch the Photoshop Elements Welcome Screen and hold down ctrl + alt + shift as you click Editor.
    3. Continue to hold the keys until you see a message box asking if you want to delete Photoshop Elements settings file; click Yes. Elements will open with default preferences.
    Solution 2: In case any network printer is attached try to launch without network or printer uninstall or make different printer as default.
    Solution 3: Try launching with anti-virus off or removing PSE from conflicting list.
    Solution 4:
    On the drive on which you have installed PSE,on my machine it is on C:
    Go  to C:\Program Files\Adobe\Photoshop Elements  10\Locales\<locale>\Plug-Ins\Import-Exportand you will find twain  plug-in. Remove that plug-in from that location and copy it somewhere  else.
    Now launch PSE and check if it works.
    For related post for Twain please see this:http://forums.adobe.com/message/2954743#2954743
    Thanks,
    Garry

  • Photoshop Elements 13 does not respond to editing tools

    Photoshop Elements 13 does not respond to editing tools.  I have a MAC.  Any suggestions?

    Reset the tools or reset preferences.
    What version of operating system?

  • My photoshop cs5 extended is not letting me use 3d.

    my photoshop cs5 extended is not letting me use 3d, i have the NVIDIA GeForce GTX 775M 2048 MB video card, plus the open GL option checked but it still does not let me select any 3d, please help I'm very frustrated!!!

    Do you have enough ram? Other than that try resetting your preferences. cmd-opt-shift during startup.

  • Folder actions dispatcher not responding

    Keep getting warning that Folder actions dispatcher not responding- any ideas ?

    There's a post here which offers some advice about that error.
    http://discussions.apple.com/message.jspa?messageID=1533747#1533747

  • Photoshop CS5 Color Management

    My question has a complicated back story, but here is where I'm at.  I'm still a newby when it comes to color management.  I'm running Photoshop CS5, Lightroom 3.3, Windows 7 64-bit, Dell Studio XPS desktop, and a new Dell U2311H monitor.  I really struggled several months ago trying to learn color management and Photoshop printing work flow, and may have made an error during that process that created my situation.  When I attach a new monitor (or different monitor), all of my images in Bridge, Photoshop, and Lightroom display with a strong pink/magenta cast.  Images displayed by applications that are not color managed look normal.  Once I calibrate the new/different monitor (with Spyder2Express), and reboot, the color managed images display normally.  If I go to the Control Panel, and assign another profile (such as sRGB IEC61966-2.1) as the default profile for the monitor, all images continue to display normally.  If I go to the Control Panel, and disassociate ALL profiles from the monitor, the images displayed by Bridge, Photoshop and Lightroom again display with a strong pink/magenta cast.
    If no profile has been assigned to the monitor on which Photoshop is going to display an image, what does Photoshop do that might result in a pink/magenta image?  Might I have a corrupted profile somewhere, or might I have miscoded something in Color Management that is causing the condition?  If I need to provide some additiional info, please let me know what info is needed.
    Thanks for any assistance..

    Andrew, thanks so much for taking the time to respond.  I believe I found
    and corrected my problem last night.  When I attempted to do my own printing
    from Photoshop last summer, I experimented a lot as I tried to figure out
    the work flow.  I discovered last night that I had apparently introduced an
    error into the Monitor Color settings under Color Settings.  The RBG Work
    Space under Monitor Color was set to "Monitor RBG - xxxxx", where xxxxx was
    the profile for the Epson paper I was experimenting with last summer!  I
    suspect that Protoshop was using that profile when I didn't provide any
    other profile for the display.  I changed that setting to "Monitor RBG -
    sRBG", and my problem (the strong magenta casts when displaying images
    without profiling the monitor) is gone.
    I have been using the Spyder2Express for the past couple of years, and
    usually work with a monitor I have previously calibrated with the Spyder.
    This magenta problem only showed up when I switched to a new monitor, and
    displayed images before running the first calibration.  I wanted to resolve
    the magenta problem, however, to determine whether it might be connected to
    two other problems I have involving color management.  The first was my
    attempt last summer to print on a "hand me down" Epson 2200 printer.  I
    finally got the work flow figured out, but was never able to eliminate a
    slight magenta cast from some of my prints.  I tried printing from three
    computers, using two operating systems, downloaded the 2200 driver and paper
    profiles numerous times, printed on two different Epson papers, printed test
    prints of the same image on two other printers (without the slight magenta
    cast).  I've given up on the 2200 for now!
    My latest concern, which really prompted my renewed interest in color
    management, is my latest monitor calibration.  I just purchased a Dell
    U2311H, and calibrated it with the Spyder2Express.  At the end of the
    calibration/profiling process, the Spyder provides a before/after view.
    With other monitors, I've always felt that the calibration/profiling process
    improved the test image.  With the Dell U2311H, however, it appears to my
    eyes that the "before" image looks super, while the "after" image appears to
    have a yellowish, or yellowish-green, cast, and the after image is also
    "lighter", giving the image a bit of a "washed out" look.
    Any suggestions on what I might try next?
    Thanks again for your help, Andrew.  By the way, I read the two articles you
    sent links for.  I especially enjoyed the article on matching display and
    prints.  I'll keep rereading that one until it all soaks in!
    Mike
    www.mikelandwehr.smugmug.com

  • Photoshop CS5.1 will not save prefs

    Once quit, prefs are standard again. Even on admin account. PS is the only application of mastercollection with this issue. Reinstallation does not help. What is the solution?
    There is no plist file named com.adobe.Photoshop.12.1 in the prefs from system library (Mac OS X.7). Does that make sense?

    Adobe Photoshop CS5.1 Settings folder does not update when I change the prefs in Photoshop. And inside this folder: Adobe Photoshop CS5.1 Prefs.psp file (and all other files in this folder) do not update. Date of installation stays. So actions, swatches, workspaces and so on, also will not remember changes.
    My problems are created when I upgraded from CS3 to CS5.5. My software and OS (Mac OS X 10.7.5) is up to date. My hardware is ok.
    I found an old discussion thread from others with the same problem at the time they upgraded from CS3 to CS5. Solution: change permissions in prefs folder to "everyone" in Read and Write. This is not working for me on my own account, but it works well on my admin account. Before I had the same problems there.
    I discovered permissions for system (read and write) for Adobe PS CS5.1 Settings folder, but there are no system permissions for this folder on my own account. Missing permissions?

  • Photoshop CS5 trial will not open - "illegal seek" message

    I have Mac OS X 10.7.3 installed. The Adobe Download Assistant is stuck in extracting mode, which I can't seem to get rid of even after deleting the Adobe Download Assistant dmg and reinstalling it. Since I was not able to open the Photoshop CS5 dmg (I received the illegal seek message), I deleted it. I have tried redownloading the Adobe Download Assistant, but I can't seem to get it out of its extracting state. What do I do? I have tried 2 different internet connections also... since I saw that was recommended on someone else's post that had the same issue.
    Thanks

    Can you try these steps and let us know if it helped. I got this information from the thread (http://forums.adobe.com/message/3980334)
    he following steps will help locate your software for download:
    Go to Adobe.com.
    Click Sign In (in the upper right corner).
    Enter your Adobe ID and password, and then click Sign In. 
    Click My Orders and then Order History.
    Locate the order number, and click the Download link in the Downloads column.
    Start the download by choosing one of the following:
    Click Download and follow the onscreen instructions.
    Click Akamai Download Manager and follow the onscreen instructions.
    If you prefer downloading directly in a browser, click Alternate Download Method. Then click the .7z and .exe files (Windows) or the .dmg file (Mac OS) to download the software to your computer.

  • Photoshop CS5.1 will not even open. Says it has encountered a problem and has to close.

    I have just today downloaded a free trial of Adobe CS5.1, but when I try to open it, it brings up the loading screen, and then when it says "Starting-up plug-ins, Scripting Support" an error message comes up saying "Adobe Photoshop CS5.1 has encountered a problem and needs to close.
    This also happens when I try to use Photoshop Elements 8. It will not let me on to the Organiser.
    As well as this, I had a problem with bridge. Whenever I tried to download images onto my computer, it said "Adobe photo downloaded has encountered a fatal error. Error code: c0000005 (I cannot remember what the address was though). I uninstalled bridge and then tried to download CS5.1 so I could get bridge again, but it has only made things worse!
    What should I do?
    Thanks
    Oscar

    Ok I did that and it said
    "Faulting application photoshop.exe, version 12.1.0.0, faulting module scriptingsupport.8li, version 10.0.0.0, fault address 0x000d1a2e."
    This would make sense as when I try to start photosohop CS5.1 and the strtup screen appears, when it says "Starting-up plugins, Scripting Support" that it was the message "Adobe Photoshop CS5.1 has encountered a problem and has to close" comes up.

  • Hi please can you help me. I have photoshop CS5 extended, I bought a new camera Nikon D610 I want to edit my photos adobe camera raw , but when I try to open photoshop CS5 it will not open. Please can you tell me how to download and install the camera raw

    HI bought a new camera Nikon D610 , I am using adobe photoshop CS5 extended, I want to edit my photos in camera raw but it is not possible to do so . I need to download camera raw plugin for CS5 can some tell me how to do so or if there is a link for the camera plugin.
    Many thanks Pitt.

    For that Nikon model you need ACR 8.3 that means CS6 or CC.  Or you can download the DNG converter convert your Nikon RAW files to Adobe RAW files. And then process the Adobe RAW files with CS5 ACR version  6.7
    Camera Raw plug-in | Supported cameras

Maybe you are looking for

  • Ideas / Recommendations for Workgroup Printer with LOW Cost-per-page?

    (Like everyone else), we're printing more color than we anticipated. Our leasing company charges $0.09 per color page on our Xerox Workcenter 7545 copier. Color print is primarily used by a small group (6 individuals) who print about 3000 color pages

  • Order of installation and reboots using smpatch/updatemanager

    Using updatemanager it tells me it has installed a certain set of patches and that others require a reboot and will be installed then - fine. I can then download and install further patches as long as any dependencies are met. But if I download the p

  • Transfer expired skype online number

    Hi , my skype online number will expires at the end of this month and I want to transfer/assign the number into another skype account. From what I understood here, its not possible to transfer online number from one account to another and I will have

  • WRT54G help!

    Hello Linksys forums! I've been having extreme troubles with the aforementioned router model and I've called Verizon Technical Support and spoke with a Linksys tech person but to no avail. The situation: My Vista computer that has a DSL modem which i

  • Windows 7 update has stopped working

    I am running Windows 7 ultimate and, up to now, have not had any problems updating it.  Recently I noticed that I had not had to restart the machine to finish the installation of any new updates.  I checked the installed updates to find that the last