Action/script error in PS cs6
Copy link to clipboard
Copied
I have an action that runs a script in PS cs5 and cs5 runs it very well. When I upgraded to cs6 and when I try to run the very same action in PS cs6 and it gives me an error message -
Does anyone have an idea why it works great in cs5 and not in cs6? I'm running Win 10 Pro 64 bit. Any help will be greatly appreciated. Thanks - Jaz
Explore related tutorials & articles
Copy link to clipboard
Copied
Just guessing but CS5 was 32bit program. With CS6 it can be both 32 and 64 bit, but if you're running the 64 bit version, some things don't work, like filters. Make sure you open the 32 bit version.
Copy link to clipboard
Copied
StudioZap was an old product that has some Photoshop Addon. Their products are no longer available, the last thing I see on their web site was posted in 2011.
StudioZap Client CenterStudioZap Client Center. Downloads · Tutorials ...
|
|
Web results
Copy link to clipboard
Copied
Hi JJMack - I've checked Studio Zap's website in the past so I am aware of your above post. I know of people on a forum that say the SZ script works well for them in CS6 with no problem but they don't offer reasons why it does.
Copy link to clipboard
Copied
I'm using 64 bit versions of Photoshop cs5 and cs6 so that's not it. Thanks anyway.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
r-bin - I'm not sure what you are asking. Can you clarify?
Copy link to clipboard
Copied
If you mean the Walker Family image - then yes that file opens with no problem. The purpose of the action/script is to auto place images into a preset layout without concern with their orientation (P or L). Once it fills one page with the images (4) it sdaves it to a set folder and then repeats the process until all the images are placed. This works perfectly in cs5 but not cs6. I find myself having to constantly switch between the versions to complete my portrait proofing process. I certainly can use cs5 alone but I'd rather stay with cs6 for all my editing and processing work.
Copy link to clipboard
Copied
When an error occurs, do you have an open file?
To clarify the causes of the error, we need your script.
Otherwise, there will be divination on the coffee grounds.
Your Action would also be nice to watch.
Judging by your screen shot, you have successfully processed several files.
Copy link to clipboard
Copied
The process terminates once 4 images are placed in the template and the template (doc 1) is needing to be saved with the new blank template waiting for the first image to be placed in the empty template. The screenshot shows the error msg.
At the start of the process, there are no files open in PS cs6. I click the action that starts the script and it opens a preset template (doc 1). Then it opens a folder and selects the first file to be placed (doc 2) and opens it, then places it in doc 1 then closes doc 2. After it places a total of 4 files (docs 2,3,4,5), it saves the template to a folder with a unique name and closes the renamed template. The photoshop desktop is now empty of any files. Then the script starts this process all over again and remembers the files (docs) it already placed - so the template reopens (doc 1) and docs 6,7,8,9 are placed etc until all the files (docs) in the designated folder are processed.
I'm sorry, I don't know how to attach the script here so I don't know how you can see it. It's very long
Copy link to clipboard
Copied
As I've said in previous posts - this script works very well in cs5. CS6's install of this is glitchy. I'd hate to have to uninstall and reinstall CS6 for a possible fix solution. -- Jaz
Copy link to clipboard
Copied
Copy link to clipboard
Copied
I often had some problems with placing images by script when in General Preferences the 'Place or Drag Raster Images as Smart Objects' checkbox was ticked. So maybe after you place all your images some process has to be done, but can not as it doesn't work on Smart Object but only regular layers (what you can do by unticking said option).
Copy link to clipboard
Copied
Such an error can be caused by such code, for example, when there is no open document.
var d = new ActionDescriptor();
var r = new ActionReference();
r.putEnumerated(stringIDToTypeID("document"), stringIDToTypeID("ordinal"), stringIDToTypeID("targetEnum"));
d.putReference(stringIDToTypeID("null"), r);
executeAction(stringIDToTypeID("duplicate"), d, DialogModes.NO);
Without a script, I’ll hardly figure it out.
Copy link to clipboard
Copied
Here a link to the script in dropbox
https://www.dropbox.com/sh/fj91f4obqvd6iwt/AADLnOVHWr03LYmZCRVdLGnOa?dl=0
Copy link to clipboard
Copied
I'll check that out. Thanks
Copy link to clipboard
Copied
I checked that setting out and the box is unchecked. Thanks for the thought. - Jaz
Copy link to clipboard
Copied
The script is quite complicated and encoded.
To work, the folder folder is required
"C: \ Program Files (x86) \ Adobe \ Adobe Photoshop CS6 \ Presets \ Add-Ons \ StudioZap Suite \" and the icon files in it.
Works only with Photoshop CS5 and CS6 of any bit.
I managed to run the script. In the absence of the original template, I created an arbitrary template with Portrait and Image layers (4 and 5 pieces each). They worked all twenty files without errors.
What your template is and how it is arranged, I do not know.
There are several places to access the current document through the AM code. But I have no errors.
Take this partially cracked script.
Copy it to the Photoshop folder next to the old script. Restart Photoshop. The script appears in the File-> Automate menu under the name "Proofs & Prints ... (TEST)". Run it. Check it out.
In the error message (if any) in parentheses will be the line number.
It will not be equal to 17.
Then it will be more clear what is happening.
There may be a problem with your template. Does it work on other templates?
Copy link to clipboard
Copied
To add to what r-bin wrote
To work, the folder folder is required
"C: \ Program Files (x86) \ Adobe \ Adobe Photoshop CS6 \ Presets \ Add-Ons \ StudioZap Suite \"
That would be a folder in the a CS6 32Bit version installation tree not your 64bit installation. You wrote
Because of the way that script is coded and the saved text file format is not readable to me. I can not tell if it using a StudioZap 32bit Photoshop Plug-in. You may want to try installing the 32Bit version of CS6 and install the StudioZao Suite addon into the 32bit install. CS6 32bit and 64bit versions can co-exist on your machine.
CS6 64bit installs into "C: \ Program Files\ Adobe \ Adobe Photoshop CS6 \"
CS6 32bit installs into "C: \ Program Files (x86) \ Adobe \ Adobe Photoshop CS6 \"
r-bin did a lot of work
Copy link to clipboard
Copied
r-bin - thank you for your efforts. I'm pretty good at Photoshop but haven't a clue about scripting so I wouldn't have tried to modify the script. I do have both PS cs5 and cs6 versions (64bit) installed on the same cpu and not any 32 bit versions installed on problem cpu.
I tried this script on another cpu and it works flawlessly in PS CS6 64bit in the folder "C: \ Program Files\ Adobe \ Adobe Photoshop CS6 \ Presets \ Add-Ons \ StudioZap Suite so having it installed in the Program Files (x86) folder is not required to run.
Also on the cpu with both Photoshop installations the (CS5 and CS6) , they are both NOT installed in the Program Files (x86) . They are just in the Program Files folder where the CS5 version works and the CS6 version of Studio Zap doesn't.
I don't think it's a problem with the template as it works in CS5 and the other new install of SZ in PS CS6 on another computer.
I am very appreciative of your help but am hesitant of trying the revised version of the script. In my ignorance I don't want to screw anything up with the new modification especially as stated above that the script works great on another cpu in CS6. I'm hoping for a fix without messing with the script. It doesn't make sense to me that the script is defective if it works fine as I have stated. There's got to be another answer. Would uninstalling the script and reinstalling it make a difference?
Copy link to clipboard
Copied
Could it be that both versions of PS are installed on the same CPU?
Copy link to clipboard
Copied
If installed incorrectly, the script will not start at all. If it starts up for you (you saw the main window), then everything will work further. I could not reproduce your error. If it is stable, I need your template and parameters for the script.
The script looks at the path of photoshop (app.path). If he finds “(64 Bit)” there, then he searches for its folder with resources (at least icons for the interface) in “Program Files (x86)”.
Your script that you gave me changed on February 6 does not contain UTF8 BOM, and will not run at least on a non-English version of windows.
You should have given me the whole installation package.
What questions? On my script you get an error from the first message?
This is a commercial script and its hacking is also not free.
Copy link to clipboard
Copied
I'm not sure what you mean by:
What questions? On my script you get an error from the first message?
This is a commercial script and its hacking is also not free.
Please clarify.
BTW - I will try to find the original zip file of the script and upload it to dropbox
Copy link to clipboard
Copied
What is your problem? Clarify again
Copy link to clipboard
Copied
"When I upgraded to cs6"
When and how did you upgrade to CS6? It is not currently available from Adobe.

