Quantcast
Channel: Adobe Community: Message List - Photoshop Scripting
Viewing all articles
Browse latest Browse all 27456

Re: [script] "if exists script" function

$
0
0

Hi efreetcs,

there are several ways.

 

One way is to check if your File exists:

var aFile = "~/Desktop/TestFolder/yourScript.jsx";
if (File(aFile).exists == false) {    alert("yourScript.jsx does not exists");    } else {        alert("yourScript.jsx  exists");        }

 

 

Have fun

 


Viewing all articles
Browse latest Browse all 27456

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>