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

P: CC unable to execute() file from script

Community Expert ,
Nov 03, 2013 Nov 03, 2013

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
222
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

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