5. Script-Utility ObjectKapitel hinzufügen
ut.setInformation(„title“, „message“);|set title and information for modeless information box
ut.showInformation();|show modeless information box
ut.hideInformation();|hide modeless information box
ut.notifyUser(„title“, „message“);|display information box, user must confirm ut.alertUser(„title“, „message“);|display alert information box, user must confirm ut.askUser(„title“, „question“); ut.askUserString(„title“, „label_text“, user_string);
ut.formatNumber(number, num_digits = 8, ch = „0“)
ut.subString(str, start_pos, length = -1);
ut.toUpper(str);
ut.toLower(str);
ut.reverse(str);
ut.startsWith(str, start_str); ut.md5(str);
ut.htmlEscape(str); ut.makeFileName(str);
ut.makeFilePath(str);
ut.makeVariable(var_name, value = „“);
ut.appType();
Beispiele
-
ut.dateTime();: Standardmässig ist das Format: „YYYY_MM_dd“, das heißt:
-
Jahr vierstellig
-
Monat zweistellig
-
Tag zweistellig
-
getrennt durch einen Unterstrich ‚_‘
-
- ut.createCompletePath(path);
- Mittels dieser Funktion wird eine Verzeichnishierarchie im Dateisystem in einem Schritt erzeugt.
- ut.formatNumber(nr, 8)
- Mittels dieser Funktion kann die Anzahl an Zeichen in einer Nummer bestimmt werden.
- Maske nach 1. Scan aufrufen
- if (job.numPages==1) ut.viewerEnableMaskSplit(); –