Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


Dataset as files

New Here ,
Jun 07, 2021 Jun 07, 2021

Copy link to clipboard

Copied

i want to automatically export data sets as files in my JS script. Can I do that?

TOPICS
Actions and scripting, How to, Windows

Views

181

Likes

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 Community Professional , Jun 08, 2021 Jun 08, 2021
Adobe Photoshop Scriptingsupport JavaScript can read and writed files. For example an html file.try{ var URL = new File(Folder.temp + "/PhotoCollageToolkit.html"); URL.open("w"); URL.writeln('<html><HEAD><meta HTTP-EQUIV="REFRESH" content="0; url=http://www.mouseprints.net/old/dpr/PhotoCollageToolkit.html"></HEAD></HTML>'); 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 }ca...

Likes

Translate

Translate
Adobe Community Professional ,
Jun 08, 2021 Jun 08, 2021

Copy link to clipboard

Copied

LATEST

Adobe Photoshop Scriptingsupport JavaScript can read and writed files. For example an html file.

try{
   var URL = new File(Folder.temp + "/PhotoCollageToolkit.html");
   URL.open("w");
   URL.writeln('<html><HEAD><meta HTTP-EQUIV="REFRESH" content="0; url=http://www.mouseprints.net/old/dpr/PhotoCollageToolkit.html"></HEAD></HTML>');
   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.");
};

Create a file, open, write, close, and run it.

JJMack

Likes

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