FIXED: Problem with stripping extensions from filenames
Posted: 04 Nov 2024 13:49
This used to work, but since a couple of versions has been problematic.
When using my script Enhanced Save As I encounter this problem: I can't save "foo" as "bar", I can only save it as "bar.txt" (I can use extensionless name in the dialog box, but the file will be saved as "bar.txt" nevertheless).
Now I can't rename file called "bar.txt" to "bar", though I can vice versa; when I try to strip "bar.txt" from its extension, I get message "File already exists! Try using another name".
I can put explicit dot in the dialog box of my script; file will be saved without an extension, but it will have a dot in the document tab. It wouldn't be a problem other than esthetic, but alas highlighter for extensionless files doesn't kick in.
Could you have a look at it, please?
When using my script Enhanced Save As I encounter this problem: I can't save "foo" as "bar", I can only save it as "bar.txt" (I can use extensionless name in the dialog box, but the file will be saved as "bar.txt" nevertheless).
Now I can't rename file called "bar.txt" to "bar", though I can vice versa; when I try to strip "bar.txt" from its extension, I get message "File already exists! Try using another name".
I can put explicit dot in the dialog box of my script; file will be saved without an extension, but it will have a dot in the document tab. It wouldn't be a problem other than esthetic, but alas highlighter for extensionless files doesn't kick in.
Could you have a look at it, please?