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

Execute() command not working on Photoshop CC

New Here ,
Sep 09, 2013 Sep 09, 2013

This code works perfectly on CS6 but not on CC. Any ideas on how to solve it?

var toGo = File(String("/Users/asouza/Documents/K3/test/test.log"));          

toGo.execute();

Thanks,

Alex

TOPICS
Actions and scripting
4.4K
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

correct answers 1 Correct answer

Nov 04, 2013 Nov 04, 2013

This is a known problem with Photoshop CC and we have a solution in place for a future release. If you do any of the following, you will probably get into the "Permission denied" state. All ExtendScript engines can no longer myFile.execute(). Resetting preferences will get you out of that state.

File -> Browse in Bridge

File -> Generate -> Image Assets

(there may be other cases as well)

Translate
Adobe
Guru ,
Sep 09, 2013 Sep 09, 2013

Are you sure Photoshop CC is the reason it doesn't work? Did you check to make sure you have a valid file reference and persisson to execute( you may not if that is not your user account ).

The following opens the log file with Notepad on my system using CC

var f = new File('~/desktop/test.log');

f.execute();

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 ,
Sep 10, 2013 Sep 10, 2013

For sure it is (at least seems to be the case on mine and other people that I know Mac - same issue is happening with CS5 as well but not on CS6). I have both installations in the same user account. Your example worked perfectly with CS6 but when I tried it at CC I got the "Permission denied" message. Any ideas on how to bypass this message and enable the code to run?

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 ,
Sep 17, 2013 Sep 17, 2013

Did you find a solution?

I have the same problem when running a simple wrapper script that execute a more complicated python script:

File('d:/work/art_source/scripts/photoshop/textureexporter.py').execute()

The interesting part is that it works fine when staring a fresh instance of Photoshop CC. Same goes for Michael's example script. However, if i launch Bridge, i get the permission denied error until i restart photoshop and the scripts start working again. Mini bridge does not cause the problem.

Running 64 bit on windows 7.

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 ,
Sep 17, 2013 Sep 17, 2013

Unfortunately not...

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
Advocate ,
Sep 17, 2013 Sep 17, 2013

Interesting (I mean: I'll possibly need to make extensive use of .execute() and knowing it's troublesome is an important news).

Let me understand: those reporting the issue are both Windows and Mac users, or it happens on one platform only?

Thank you,

Davide

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 ,
Nov 03, 2013 Nov 03, 2013

Michael L Hale wrote:

Are you sure Photoshop CC is the reason it doesn't work? Did you check to make sure you have a valid file reference and persisson to execute( you may not if that is not your user account ).

The following opens the log file with Notepad on my system using CC

var f = new File('~/desktop/test.log');
f.execute();

On My system Permission denied

nono.jpg

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 ,
Nov 04, 2013 Nov 04, 2013

My simple solution (thanks to Adobe team) was to clean up Photoshop Preferences.

All you have to do is to follow this video http://tv.adobe.com/watch/the-complete-picture-with-julieanne-kost/how-to-reset-photoshop-cs6s-prefe... and reset all your preferences. Doing so, everything returns to normality.

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
Nov 04, 2013 Nov 04, 2013
LATEST

This is a known problem with Photoshop CC and we have a solution in place for a future release. If you do any of the following, you will probably get into the "Permission denied" state. All ExtendScript engines can no longer myFile.execute(). Resetting preferences will get you out of that state.

File -> Browse in Bridge

File -> Generate -> Image Assets

(there may be other cases as well)

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 Employee ,
Sep 17, 2013 Sep 17, 2013

Hi there,

Could you please check if the file extension name is clearly defined to be handled by the app you intended to? For example, on Mac, you could right click on the file, then select "Get Info", then expand the "Open with" section to see which app is currently handling it. On Win, you could also use "Default Programs" if your OS has it. Thanks.

Jon

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 ,
Sep 17, 2013 Sep 17, 2013

Yes it is. This is the reason both CS6 and the ESTK can show the file. The issue is only happening when the .execute() is called from CC...

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 Employee ,
Sep 17, 2013 Sep 17, 2013

Could you be more specific on how do you call from CC? For example, you drag & drop the script onto CC, or browse it from File > Scripts > Browse..., or any other ways? Also please let me know what's your ESTK version. TIA.

Jon

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 ,
Sep 17, 2013 Sep 17, 2013

My plugin runs from inside a panel in Photoshop. However, it does not matter if the call comes from my plugin or directly from ESTK (latest version). Again, if I set the ESTK to run as ESTK or CS6, the script run and the external file opens. Only when I set the script to run from inside Photoshop CC I get the "Permission denied".

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 Employee ,
Sep 17, 2013 Sep 17, 2013

Are you using script like the following to open the log?

#target photoshop-70 //to make sure script is running under CC

File("/Users/asouza/Documents/K3/test/test.log").execute();

Jon

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 ,
Sep 17, 2013 Sep 17, 2013

No, I select the application from ESTK interface (top left)

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 Employee ,
Sep 17, 2013 Sep 17, 2013

Will it be the same result if you use #target directive?

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 ,
Sep 18, 2013 Sep 18, 2013

Here are som more data points:

  • OS: Win7
  • Photoshop version: 14.0 x64
  • ESTK version: 4.0.0.1 ExtendScript 4.5.5 ScriptUI 6.2.2

Script that i am trying to run:

File('d:/work/art_source/scripts/photoshop/textureexporter.py').execute();

.py-files are properly associated with python.

Repro-case (100%):

  1. Start photoshop
  2. Run "browse in bridge" from within Photoshop
  3. Run script.
  4. Observe "error 53: permission denied"

More tests:

  • #target directive does not affect the repro-case, tried #target photoshop and #target photoshop-70
  • Tried to launch script both from the Photoshop file menu and ESTK (connected to photoshop 70.064), repro-case still valid.
  • If i'm launching Photoshop then Bridge from the windows start menu, the script works fine.
  • Launching Photoshop then After effects then browse in bridge from AE, the script works fine.
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 Employee ,
Sep 18, 2013 Sep 18, 2013

Thank you for providing the reproducible steps and lots of references. Appreciate your efforts!

Jon

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