Hello, I’m working on a script that takes an open file, copies some of its contents into a new file, and then saves this new file into the same directory as the old file.
I’ve gotten those 2 first things to work, but I’m having difficulty with that last one thing, mainly because I can’t find a function in the documentation that can return the folder of a specific file.
I’ve spent a really long time reading the documentation and I probably just missed it, so I would appreciate some help.