Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Action/script error in PS cs6

New Here ,
Feb 05, 2020 Feb 05, 2020

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 -

cs6 error msg.jpgexpand image

 

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

TOPICS
Actions and scripting , Windows
2.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Feb 05, 2020 Feb 05, 2020

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 05, 2020 Feb 05, 2020

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 • Cool tools for photographers.™

 
Thanks for your interest in StudioZap Suite. Unfortunately, the StudioZap tools are no longer available for purchase. ©2006-2018 StudioZap. All rights reserved.

StudioZap Client Center

StudioZap Client Center. Downloads · Tutorials ...

Web results

twitter.com › studiozap

StudioZap (@StudioZap) | Twitter

 
The latest Tweets from StudioZap (@StudioZap). Cool tools for photographers™
www.facebook.com › ... › Photographer

Studiozap - Home | Facebook

Studiozap, Pouso Alegre. 159 likes. Studio ZAP - Fotografia de casamento. Parceiros exclusivos "A Kasa da Noiva". Av. Getúlio Vargas, n° 182 - Centro de...
JJMack
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 05, 2020 Feb 05, 2020

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 05, 2020 Feb 05, 2020

I'm using 64 bit versions of Photoshop cs5 and cs6 so that's not it. Thanks anyway.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Feb 05, 2020 Feb 05, 2020
Does this file (what name in on the screenshot) open normally in Photoshop CS6?
 
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 05, 2020 Feb 05, 2020

r-bin   - I'm not sure what you are asking. Can you clarify?

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 05, 2020 Feb 05, 2020

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.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Feb 05, 2020 Feb 05, 2020

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.

 

Does this error occur in a specific place and on a specific file?
Your Action would also be nice to watch.
Judging by your screen shot, you have successfully processed several files.
 
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 05, 2020 Feb 05, 2020

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 05, 2020 Feb 05, 2020

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

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Feb 05, 2020 Feb 05, 2020
You can upload the script to google disk or some file hosting and post the link to the script here. It is better to pack the script in a zip file.
 
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 06, 2020 Feb 06, 2020

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).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Feb 06, 2020 Feb 06, 2020
I think that’s not the point.

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.

 

 
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 06, 2020 Feb 06, 2020
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 06, 2020 Feb 06, 2020

I'll check that out. Thanks

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 06, 2020 Feb 06, 2020

I checked that setting out and the box is unchecked. Thanks for the thought. - Jaz

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Feb 07, 2020 Feb 07, 2020
Your script is somehow defective. It is saved without specifying an encoding. Perhaps you edited it and created it using copy-paste.
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?
 
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 07, 2020 Feb 07, 2020

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

image.pngexpand image

 

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 

 

 

 

 

JJMack
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 07, 2020 Feb 07, 2020

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 07, 2020 Feb 07, 2020

Could it be that both versions of PS are installed on the same CPU?

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Feb 08, 2020 Feb 08, 2020
I do not understand what you want. I tried to figure out the problem described in the first post.
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.
I created the necessary folders for the file myself in order to run the script. I could not reproduce the error from the first message.

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.
 
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 08, 2020 Feb 08, 2020

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Feb 08, 2020 Feb 08, 2020
LATEST

What is your problem? Clarify again

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 08, 2020 Feb 08, 2020

"When I upgraded to cs6"

 

When and how did you upgrade to CS6? It is not currently available from Adobe.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines