FileMaker does not have the built in capability to create folders, only files. To create a new folder, you'll need to either use a plug in that adds that capability or to perform a system script that creates the new folder.
If you are using a Mac, you can create folders by implementing an Apple Script as one of the script steps. then you can use the "Get" function to find the current filepath. for the folder name, you can again use "Get" (or some variation of it).
Which would be an example of what I mean by a "system script". On windows, FileMaker can execute a batch file or a command line in order to create a new folder also.
Yes... Here is an example" In FM use the Perform AppleScript set myPath to POSIX path of ((path to desktop as text) & folder_name & ":subfolder") do shell script "mkdir -p " & myPath
Ok, I set up a test script to try to get the naming down, it is as follows :
Set Variable [$PathA, Patient_Info::Name_Last & ", " & Patient_Info::Name_First]
Perform Applescript ["do shell script \"mkdir -p /Users/JaredHagan/Desktop/" & $PathA & " 2> /dev/null\""]
Doing this returns an error "The command exited with a non-zero status". Only half of the folder I want is created (Patient_Info::Name_Last & ", "), the first name is missing. If I remove the last half of the variable " & Patient_Info::Name_First" the script works without error. I'm guessing my applescript syntax may be off - I don't have a whole lot of experience with applescript.
Any ideas would greatly be appreciated.
I am not too great at applescripts either, but here are a few links to hopefully help you out..