Copy link to clipboard
Copied
Hi,
Is there a way to detect if the user selects pdf's for an action wizard from anywhere other than their c:// drive? I noticed that when they select pdf's from anywhere other than c:// and run the action wizard and then go back to selecting other files from the c://, it just does not execute but on 1st file. I read this has something to do with a bug where Adobe thinks the other files are open when they are not. Anyway, my thought on this is to generate an app.alert when the user selects pdf's from anywhere other than c:// to prevent this from happening in the first place.
Any help would be greatly appreciated.
S
I haven't heard about this problem, but yes, it's possible.
You can look at the path property of the file and see where it is saved, like this:
if (this.path.indexOf("/C/")!=0) {
app.alert("You should only process files from the C drive.");
event.rc = false; // this line stops the Action from processing more files
} else {
// put the rest of your code here
}
Copy link to clipboard
Copied
I haven't heard about this problem, but yes, it's possible.
You can look at the path property of the file and see where it is saved, like this:
if (this.path.indexOf("/C/")!=0) {
app.alert("You should only process files from the C drive.");
event.rc = false; // this line stops the Action from processing more files
} else {
// put the rest of your code here
}
Copy link to clipboard
Copied
This is exactly what I needed! Thanks again.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now