PHOTOSHOP - Switch Colors script no longer works (program error)

  • 1
  • Problem
  • Updated 3 years ago
  • (Edited)
Good morning Support Group,

When I click on the "Switch Foreground and Background Colors" arrow, I get a "Could not complete your request because of a program error." on both Photoshop CC2014(v15) and CC2015(v16), but not on CC(v14). Obviously, I would prefer to work with latest versions... I'm attaching the PSErrorLog at the end of this message.

This started while running a routine script yesterday. Same script I have been using for over a year to frame my photos with title, copyright info, etc. and in this script, at some point, I switch foreground/background colors, using the code below (courtesy of ScriptListener):
// =======================================================
var idExch = charIDToTypeID( "Exch" );
var desc1 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
var ref1 = new ActionReference();
var idClr = charIDToTypeID( "Clr " );
var idClrs = charIDToTypeID( "Clrs" );
ref1.putProperty( idClr, idClrs );
desc1.putReference( idnull, ref1 );
executeAction( idExch, desc1, DialogModes.NO );

for the first time, yesterday, I got a error 8800:
"- Could not complete the command because of a program error. Line: 158 -> executeAction( idExch, desc1, DialogModes.NO );"
And ever since, I can no longer swap foreground/background colors. I have rebooted, reinstalled photoshop cc2015, tried 2014 and tried CC, the only one that works (but not perfectly with my scripts)

Could you please advise on how to proceed?

Thanks!

PSErrorLog on CC2015 (Running on OSX 10.9.5):
=========
2015:09:02 01:58:15 : tracked key 00000000000018C0 of type P5_ARef not found : 1 : REQUIRE failed
2015:09:02 01:58:15 : /Volumes/workarea/PS_16_Mac_Daily_Retail/20150722.r.168/photoshop/main/photoshop/xcode/../interfaces/UTrackResourceImp.h : 137 : REQUIRE failed
2015:09:02 01:58:15 : tracked key 0000000000002428 of type P5_ADsc not found : 1 : REQUIRE failed
2015:09:02 01:58:15 : /Volumes/workarea/PS_16_Mac_Daily_Retail/20150722.r.168/photoshop/main/photoshop/xcode/../interfaces/UTrackResourceImp.h : 137 : REQUIRE failed
2015:09:02 01:58:15 : tracked key 0000000000002420 of type P5_ADsc not found : 1 : REQUIRE failed
2015:09:02 01:58:15 : /Volumes/workarea/PS_16_Mac_Daily_Retail/20150722.r.168/photoshop/main/photoshop/xcode/../interfaces/UTrackResourceImp.h : 137 : REQUIRE failed
2015:09:02 09:18:49 : /Volumes/workarea/PS_16_Mac_Daily_Retail/20150722.r.168/photoshop/main/photoshop/sources/USheet.cpp : 460 : REQUIRE failed
2015:09:02 09:20:27 : /Volumes/workarea/PS_16_Mac_Daily_Retail/20150722.r.168/photoshop/main/photoshop/sources/USheet.cpp : 460 : REQUIRE failed
2015:09:02 09:21:06 : /Volumes/workarea/PS_16_Mac_Daily_Retail/20150722.r.168/photoshop/main/photoshop/sources/USheet.cpp : 460 : REQUIRE failed
2015:09:02 09:21:11 : /Volumes/workarea/PS_16_Mac_Daily_Retail/20150722.r.168/photoshop/main/photoshop/sources/USheet.cpp : 460 : REQUIRE failed
2015:09:02 09:22:23 : tracked key 0000000000000058 of type P5_ARef not found : 1 : REQUIRE failed
2015:09:02 09:22:23 : /Volumes/workarea/PS_16_Mac_Daily_Retail/20150722.r.168/photoshop/main/photoshop/xcode/../interfaces/UTrackResourceImp.h : 137 : REQUIRE failed
2015:09:02 09:22:23 : tracked key 0000000000000150 of type P5_ADsc not found : 1 : REQUIRE failed
2015:09:02 09:22:23 : /Volumes/workarea/PS_16_Mac_Daily_Retail/20150722.r.168/photoshop/main/photoshop/xcode/../interfaces/UTrackResourceImp.h : 137 : REQUIRE failed
2015:09:02 09:22:23 : tracked key 0000000000000158 of type P5_ADsc not found : 1 : REQUIRE failed
2015:09:02 09:22:23 : /Volumes/workarea/PS_16_Mac_Daily_Retail/20150722.r.168/photoshop/main/photoshop/xcode/../interfaces/UTrackResourceImp.h : 137 : REQUIRE failed
===============
Photo of Cyriaque Milhau

Cyriaque Milhau

  • 1 Post
  • 0 Reply Likes

Posted 3 years ago

  • 1

Be the first to post a reply!