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

Dataset as files

Community Beginner ,
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 , Windows

Views

322

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

Community Expert , 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
...

Votes

Translate

Translate
Adobe
Community Expert ,
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

Votes

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