Photoshop: CC unable to execute() file from script

  • 1
  • Problem
  • Updated 4 years ago
  • Solved
  • (Edited)
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
Photo of John McAssey

John McAssey

  • 191 Posts
  • 9 Reply Likes

Posted 5 years ago

  • 1
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 14147 Posts
  • 1765 Reply Likes
Official Response
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.
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 14147 Posts
  • 1765 Reply Likes
Official Response
Fixed in Photoshop CC (14.2) or later.