Thread: [Solved] Bug with eventscripter
View Single Post
  #1  
Old 05.11.2021, 13:35
kuitogu67 kuitogu67 is offline
Baby Loader
 
Join Date: Apr 2021
Posts: 7
Default Bug with eventscripter

Hello, I have been using this script untouched for a few weeks. About 3 days ago it started malfunctioning on both a linux headless and windows installation.

Please see attachments.

Code:
var file = link.getName();
var folders = ["/home/ubuntu/Dropbox/g/1/", 
"/home/ubuntu/Dropbox/g/2/", 
"/home/ubuntu/Dropbox/g/3/", 
"/home/ubuntu/Dropbox/g/4/", 
"/home/ubuntu/Dropbox/g/5/", 
"/home/ubuntu/Dropbox/g/6/", 
"/home/ubuntu/Dropbox/g/7/", 
"/home/ubuntu/Dropbox/g/8/", 
"/home/ubuntu/Dropbox/g/9/", 
"/home/ubuntu/Dropbox/g/10/", 
"/home/ubuntu/Dropbox/g/11/", 
"/home/ubuntu/Dropbox/g/12/", 
"/home/ubuntu/Dropbox/g/13/", 
"/home/ubuntu/Dropbox/g/14/", 
"/home/ubuntu/Dropbox/g/15/", 
"/home/ubuntu/Dropbox/g/16/", 
"/home/ubuntu/Dropbox/g/17/", 
"/home/ubuntu/Dropbox/g/18/", 
"/home/ubuntu/Dropbox/g/19/", 
"/home/ubuntu/Dropbox/g/20/", 
"/home/ubuntu/Dropbox/g/21/", 
"/home/ubuntu/Dropbox/g/22/", 
"/home/ubuntu/Dropbox/g/23/", 
"/home/ubuntu/Dropbox/g/24/", 
"/home/ubuntu/Dropbox/g/25/", 
"/home/ubuntu/Dropbox/g/26/", 
"/home/ubuntu/Dropbox/g/27/", 
"/home/ubuntu/Dropbox/g/28/", 
"/home/ubuntu/Dropbox/g/29/", 
"/home/ubuntu/Dropbox/g/30/", 
"/home/ubuntu/Dropbox/g/31/",
]; // <- Check if file exists in these folders

for (i = 0; i < folders.length; i++) {
    var folder = folders[i];
    if (getPath(folder + file).exists()) link.setEnabled(false);
}
Attached Images
File Type: png 39745.Image 865x49 copied .png (3.4 KB, 2 views)
File Type: png 39747.Image 218x113 copied.png (7.1 KB, 2 views)
File Type: png 39742.Image 993x744 copied.png (75.0 KB, 2 views)
Reply With Quote