I was experimenting with trying to save DiskRecorder renders to a custom directory, and tried the following in a Script, which tries to create a directory and then pass that whole name to the FileName field of DiskRecorder. I know I can do this kind of Filename SmallTalk from a Tool, but when I try it in a Script, Kyma throws OS error.
| recName |
recName := ':output'&
Time now hours printString & Time now minutes printString & Time now seconds printString.
(recName asFilename reallyExistsOrIsDirectory) ifFalse: [
recName asFilename makeDirectory.