Issues with 10.3.9 and Photoshop CS2

Is there a bug with either AppleScript in 10.3.9 or in Photoshop CS2 that would sometimes prevent a script from executing? I wouldn’t question this, except that sometimes, even when I have a display dialog up front to test to see of a script executes, sometimes it won’t fire.

Just covering my end.

Wayne C. Winquist

Should I take this as a no? That this is supposed to happen? :frowning:

Wayne C. Winquist

Could you please post some example code?

Thanks :slight_smile:

Why would this need example code? As I stated before, sometimes it runs the script all of the way through (or at least until it hits an error), other times it doesn’t execute at all, and sometimes - on scripts that have run all of the way through before, to remind you - it stops in the middle of them.

This I might expect with code that was originally created for CS, but not for new code created for CS2. And, this isn’t one script, this is multiple scripts: I have some feeding variable information, such as document size (width, height, and resolution) into my program, some that change settings within CS (such as ruler units, from inches to pixels and vice-versa), some that print and generate graphics, and some that pull graphics generated by my program, either by file or by clipboard.

I am using RB 2005 R2 to generate the program and handle interface and graphic creation (for stuff that is getting added to PS - mostly small stuff), and AS to interface with Photoshop, pasting into documents, pulling from documents, printing, etc. I want to isolate the problem to see where the problem is occuring, and I have noticed, on a few occassions while testing scripts before replacing values with variables to be fed by RB, that a script will stop in the middle or not play. This is without user intervention, and after I have gotten it to work with as many variables as I have allowed - basically, bringing up display dialogs at the beginnning of the script to ask about certain variables.

If that’s not enough info - sorry. Short of posting all of the scripts - which I’d rather like to avoid - that’s what I can give at the moment.

Wayne C. Winquist

Sad that I am the only one posting, but it proves me wrong on one thing - I should have posted the code. Unfortunately, it still doesn’t explain why it sometimes doesn’t execute at all though - just takes care of the one that stops in the middle. (Just for the record, I had inserted a seperate tell application that opened up Printer Setup Utility and tried to access a non-existent printer - ironically, it was something inserted to prevent people from printing to other printers that had nothing to do with the script’s tasks. Sad to say, it’s something posting here wouldn’t help anyways.)

So now it’s gone to either executing or not executing the code. I have a hunch on this - the code was originally written for Photoshop CS, and now we have bumped it up to CS2, so it might be getting the 2 confused. (Both are installed on some of the machines I work with.) How far off the mark would I be?

If code’s necessary, it’ll have to wait until I get home - It’s on my coding machine.

Wayne C. Winquist

Wayne,

It is hard for anyone to say whether there is a “bug” with any processes without knowing what steps your code is going through. I, myself, have written scripts that worked perfectly until I tried to use it with slightly different circumstances (changing folders referenced) that caused the script to function once, fail and work perfectly. Took a while to find what was wrong.

Addressing the differences between PSCS and PSCS2, however, I would say that likely there are differences. I don’t script photoshop much but I do Illustrator CS. My colleague has Ill CS, but it is a minor update to the one I use. Scripts that I wrote for my computer had to be changed slightly in order for him to use them on his computer.

So if you are not hip on sharing your code, I would say that you should try some example scripts that do the processes you need in PS and try them on computers running CS2 and see if it errors and vice versa.

PreTech

There’s going to be one problem: I’m feeding variables into this script. The script gets compiled into the program I am writing. give me a few days so that I can work up a sample script and post it up here.

Wayne C. Winquist

Ok, scratch that. It seems the variables aren’t feeding right - just rewrote a script tonight, and everything I had it pull came back into the program. Sorry.

Wayne C. Winquist