Skip to main content
June 23, 2010
Question

Error -25923 assigning profile

  • June 23, 2010
  • 1 reply
  • 846 views

My automate plugin assigns a profile by playing "assignProfile" on the current document with a named "profile" parameter. This has worked fine in CS4, CS3 and earlier. But now in CS5 it fails whenever there is already a profile assigned to the document. (If there is no profile already assigned then there is no problem)

I have tried various workarounds, like clearing the existing profile first, setting the working profile first, assigning the profile more than once, even clearing the profile first by playing a recorded action. Nothing seems to work.

Has anyone else seen this or have any advice? Has anything changed in the implementation that I need to be aware of?

Tom

This topic has been closed for replies.

1 reply

July 5, 2010

My original description of the problem was not quite correct. Seems the issue is that CS5 is not aware of my profile.

Before assigning a profile CS5 now checks that it is in a cached list of profiles and errors if it is not. CS4 and earlier never did this. CS5 only updates its list when either 1) the GUI is shown or 2) (if the cache is not yet built) the first time the assignProfile action is executed.

My plugin creates a new profile (potentially a different one each time) and puts it in ~/Library/ColorSync/Profiles/ and therefore it's not in the cached list. The reason I thought it had something to do with a profile already being assigned was that the first time I execute the action it always tended to succeed (because of 2.)

I'm still stuck of course.

Chris Cox
Legend
July 5, 2010

Before assigning a profile CS5 now checks that it is in a cached list of profiles and errors if it is not. CS4 and earlier never did this

The use of the profile cache has been the same since Photoshop 6.

There was a bug that caused Photoshop to update the cache too often in some circumstances, and that bug was fixed in CS5 (once we reproduced the problem and saw the profile update wasting a lot of time).

July 6, 2010

Sure, but would it hurt to update the cache before executing

assignProfile? I don't understand why plugins should effectively be

forbidden from managing profiles.

Tom