From da31187aa3b56e48671020703b51c2a5f7ee38f7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Du=C5=A1an=20Poizl?= Bellow this list is output directory. All relative paths passed as arguments into methods like copy(), move() or convert() will be relative to this output directory. If you pass absolute path to methods then
+this output directory is ignored. Bellow that is list of scripts. These scripts are located in application data directory. Select script which you want to run by clicking on it. Clicking on Open scripts will open directory with these scripts where you create new and edit them.
+Location of this directory is on Windows: "C:/Users/ Next is Log windows that contain any messages that come from scripts. Mainly calls to for(file in files)
+
for(file of files)
{
if(file.suffix() == "fits")
{
@@ -131,6 +131,13 @@ In script you can then iterate through files like this.
}
}
+core.log() At bottom there buttons that can start or stop execution of selected scripts.core
There is global object called core that have these methods.
@@ -188,7 +195,7 @@ file.convert("converted_file.jpg", "png");core.sync(); to ensure that conversion is done and destination file exists.
let compression = {"compressionType": "zstd+sh"};
let convertedFiles = [];
-for(file of files)
+for(file in files)
{
if(file.suffix() == "fits")
convertedFiles.push(file.convertAsync("xisf/" + file.fileName(), "XISF", compression));
diff --git a/about/help_fr b/about/help_fr
index 8913b39..6da2fe8 100644
--- a/about/help_fr
+++ b/about/help_fr
@@ -107,7 +107,7 @@ Cet exemple filtre les fichiers où : "Bias" figure dans le nom de fichier, la p
Ce module permet d'écrire des scripts en JavaScript qui traitent des fichiers images. La fenêtre de traitement par lots se compose de trois parties principales. En haut se trouve la liste des fichiers et répertoires d'entrée.
Vous pouvez ajouter des répertoires ou des fichiers individuels à cette liste. Les répertoires sont analysés de manière récursive pour trouver tous les fichiers, même les fichiers non image. Cette liste de fichiers est ensuite transmise au script dans un tableau nommé files.
Dans le script, vous pouvez ensuite parcourir les fichiers comme ici.
-for(file in files)
+
for(file of files)
{
if(file.suffix() == "fits")
{
diff --git a/about/help_sk b/about/help_sk
index 889a2e2..3251590 100644
--- a/about/help_sk
+++ b/about/help_sk
@@ -78,6 +78,15 @@ Pre indexovanie nových súborov je treba znova pustiť indexáciu.
Zastupné znaky: +
