#1
|
|||
|
|||
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); } |
#2
|
||||
|
||||
@kuitogu67: your json array is invalid. last element has trailing ,
__________________
JD-Dev & Server-Admin |
#3
|
|||
|
|||
You are the man Jiaz!
|
#4
|
||||
|
||||
You're welcome!
__________________
JD-Dev & Server-Admin |
Thread Tools | |
Display Modes | |
|
|