mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-23 02:44:24 +01:00
On macOS and Linux, setting `hidden` renames the file or link in its folder with one leading dot added, or its leading dots taken off. Both the old and the new name must be places the script may write, and a name of dots alone, a name in use and a folder are refused. A file the object has open stays open at the new path. `createAlias(target)` makes a symbolic link at the object's path to the real path of a file the script may read. The link's place must be one the script may write where nothing is, a link that leads nowhere included; the settings folder is refused for both. When a folder above the link's place is replaced by a link while the alias is made, the new link is removed and the call fails. `hidden` reads a link's own name, and setting `hidden`, `rename` and `remove` act on the link itself. On Windows both still set `error` and change nothing. `execute` stays unavailable. Behavior: https://extendscript.docsforadobe.dev/file-system-access/file-object/ and https://extendscript.docsforadobe.dev/file-system-access/using-file-and-folder-objects/