Anyone using Mac Lion?

Discussion of Photoshop Scripting, Photoshop Actions and Photoshop Automation in General

Moderators: Tom, Kukurykus

Mike Hale

Anyone using Mac Lion?

Post by Mike Hale »

I am in the process of creating a script for a client. When I sent him a copy to review he responded that it is giving an error message that says 'Unable to create Window - Server interface error 'Error setting Window::backgroundColor. ActionScript error: Cannot convert.' The line that throws that error is

this.dlg = new Window( 'dialog', 'windowName' );

I can't post the script but I would like to know if anyone else using Lion is having trouble with scripts that use ScriptUI? Or why it is throwing an ActionScript error when the script is a normal javascript using ScriptUI, not Flash/Flex.

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

larsen67

Anyone using Mac Lion?

Post by larsen67 »

Mike, sorry Im only 10.6.8 on both imacs… I won't install Lion at the moment… I have seen issues posted in the Adobe Illustrator scripting forum… but these have all been with the file object breaking and appeared to be specific to that app… A bug has been reported… There was a question posted here about Lion but the poster did not get back about the issue…
Mike Hale

Anyone using Mac Lion?

Post by Mike Hale »

It turned out to be one of those cases where the error message was not really the cause of the error. The script uses a lot of preset files that need to be hidden from the end user so I had them as binary arrays in the main script so they could be written, loaded, and deleted as needed. It turned out to be too much data in memory at one time. If the memory preference in Photoshop is not set high enough, the script reports random errors. It the memory setting is too low it would even crash Photoshop.

I created several scripts( one for each preset file ) that assigns the array to the same variable, does the write-load-delete thing, then sets the variable to an empty array. I now can use $.evalFile() when I need a preset file loaded and that cleared up the errors.
IsraelThompson

Anyone using Mac Lion?

Post by IsraelThompson »

Looks like you figured it out, but FYI, I'm running Lion on one machine and have Leopard at my disposal on another machine if you ever need me to test anything.

Also, you're points regarding memory may indeed, just be the solution to my problem here:

bb/viewtopic.php?f=9&t=4238

I'll test it out and report back...