Skip to main content
JJMack
Community Expert
Community Expert
November 3, 2013

P: CC unable to execute() file from script

  • November 3, 2013
  • 6 replies
  • 281 views

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

This topic has been closed for replies.

6 replies

Legend
February 4, 2015
Fixed in Photoshop CC (14.2) or later.
Legend
November 4, 2013
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.
Legend
November 3, 2013
K. Yeah, I'm able to repro. Let me run it by Tom R and some other folks and see what they say.
JJMack
Community Expert
JJMackCommunity ExpertAuthor
Community Expert
November 3, 2013
Code I stole from your simpleviewer script fails the same way
JJMack
JJMack
Community Expert
JJMackCommunity ExpertAuthor
Community Expert
November 3, 2013
I'm in windows 7 also reported in scripting forum mike states someting works on his system on mine its permission denied
JJMack
Legend
November 3, 2013
Is it a problem for you on both Mac or Win?