Copy link to clipboard
Copied
I would like to create a script
that selects a folder with the name test
the folder is on the desktop
so I get to the point
if the test folder exists, the warning goes out ok
if the folder does not exist, a warning ko is issued
thank you
Is this the sort of thing you're after?
var dt = "~/Desktop/"
var aFolder= Folder (dt + "/test/")
if (!aFolder.exists) { alert("no folder")
} else { alert ("folder exists") }
Copy link to clipboard
Copied
Is this the sort of thing you're after?
var dt = "~/Desktop/"
var aFolder= Folder (dt + "/test/")
if (!aFolder.exists) { alert("no folder")
} else { alert ("folder exists") }
Copy link to clipboard
Copied
works well
a question
if the test folder is in the same folder as the script
how could it be done?
Copy link to clipboard
Copied
Not sure with the script location, but you can for the active document.
Copy link to clipboard
Copied
I do not know if you can use it
Folder.path