Here is what I am trying to accomplish with an AppleScript:
Scenario: I have a Folder A anywhere on my computer. In that folder is folder B. I would like to run an AppleScript script in folder A that will generate a text file with the same name as folder B and for that text file to be created in folder A.
Folder A can be anywhere on the computer.
Folder B can have any name and can include spaces.
Folder B will have text after a period at the end of the name. I would like to replace this with .txt.
Ideally, it would be nice if the script could check if the text file in Folder A already exists before creating it.
I would like to be able to run this script in any folder on a computer and for it to successfully generate the resulting text file based on the contained folder.
Scenario: I have a Folder A anywhere on my computer. In that folder is folder B. I would like to run an AppleScript script in folder A that will generate a text file with the same name as folder B and for that text file to be created in folder A.
Folder A can be anywhere on the computer.
Folder B can have any name and can include spaces.
Folder B will have text after a period at the end of the name. I would like to replace this with .txt.
Ideally, it would be nice if the script could check if the text file in Folder A already exists before creating it.
I would like to be able to run this script in any folder on a computer and for it to successfully generate the resulting text file based on the contained folder.