UniqueNamer
UniqueNamer is an AppleScript module to obtain a unique file name in a specified folder.
If an item which have same name to given candidate exists, UniqueNamer generates a name to which numbers is appended at the end of the base name. For example:
hello.1.text、hello.2.text . . .
Also UniqueNamer can generate a compatible name to the classic enviroment (Mac OS 9 or before). The length of file name is limited under 31 bytes in the classic enviroment.
UniqueNamer is useful for following purposes :
- Generating a name of temporary files
- Copying or Making a file without asking a user enter a file name.
- Avoid opening a save-dialog, which interrupts workflows.
|