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

P: CC unable to execute() file from script

Community Expert ,
Nov 03, 2013 Nov 03, 2013

Copy link to clipboard

Copied

Photoshop CC Scripting Help

The way I provide help for my Photo Collage Toolkit no longer works is it a CC bug or do I have to find a new way to launch a web browser?

// A Photoshop Script by JJMack's

// This script is supplied as is. It is provided as freeware.
// The author accepts no liability for any problems arising from its use.

#target photoshop
app.bringToFront();

/*

HelpPhotoCollageToolkit
$$$/JavaScripts/HelpPhotoCollageToolkit/About=Web Help for JJMack's Photo Collage Toolkit.^r^rCopyright 2010 Mouseprints.^r^rOpen Browser Toolkit Help Page
JJMack's Collage Script

*/
try{
var URL = new File(Folder.temp + "/PhotoCollageToolkit.html");
URL.open("w");
URL.writeln('');
URL.close();
URL.execute(); // The temp file is created but this fails to open the users default browser using Photoshop CC prior Photoshop versions work
}catch(e){
alert("Error, Can Not Open.");
};

Reply |Edit |Delete

JJMack
Bug Fixed
TOPICS
macOS , Windows

Views

149

Translate

Translate

Report

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

Adobe Employee , Feb 03, 2015 Feb 03, 2015
Fixed in Photoshop CC (14.2) or later.

Votes

Translate

Translate
6 Comments
Adobe Employee ,
Nov 03, 2013 Nov 03, 2013

Copy link to clipboard

Copied

Is it a problem for you on both Mac or Win?

Votes

Translate

Translate

Report

Report
Community Expert ,
Nov 03, 2013 Nov 03, 2013

Copy link to clipboard

Copied

I'm in windows 7 also reported in scripting forum mike states someting works on his system on mine its permission denied
JJMack

Votes

Translate

Translate

Report

Report
Community Expert ,
Nov 03, 2013 Nov 03, 2013

Copy link to clipboard

Copied

Code I stole from your simpleviewer script fails the same way
JJMack

Votes

Translate

Translate

Report

Report
Adobe Employee ,
Nov 03, 2013 Nov 03, 2013

Copy link to clipboard

Copied

K. Yeah, I'm able to repro. Let me run it by Tom R and some other folks and see what they say.

Votes

Translate

Translate

Report

Report
Adobe Employee ,
Nov 04, 2013 Nov 04, 2013

Copy link to clipboard

Copied

OK. Tom says this is a known issue and will be fixed.

If you do any of the following, you will probably get into the "Permission denied" state:

File -> Browse in Bridge
File -> Generate -> Image Assets
(there may be other cases as well)

All ExtendScript engines can no longer myFile.execute(). Resetting preferences will get you out of that state. (not a great workaround, but worth mentioning)

Thanks.

Votes

Translate

Translate

Report

Report
Adobe Employee ,
Feb 03, 2015 Feb 03, 2015

Copy link to clipboard

Copied

LATEST
Fixed in Photoshop CC (14.2) or later.

Votes

Translate

Translate

Report

Report