For both Mac and PC, is there any solution?
Thank you in advance!
Check this article:
Sent from miPhone
u need to specify further. Is that from a script ?
As an example, all Mac save dialogs have a "new folder" option. Of course, this happens when the user is given control. If you want to create a folder (check if it's already avail, etc) without giving users decisional faculties, you can't avoid the use of plugins, like for example TroiFile,
You could have an OS-script (Applescript on OSX, bat-file on Windows) with the send-event scriptstep, You could also use a freeware plugin (BaseElements should cover this functionality IMHO)
beverly response is most excellent, But there is also a simpler way:
A Button to run the script below, a Field to store the path to the new folder (if desired).
** When the window opens to Choose a Folder, Choose a Folder, then at the bottom left, there will be button to Create a New Folder.
If [ Get ( Device ) > 2
Exit Script [ Text Result: ]
Get Directory [ Allow Folder Creation ; $$Path ; “Choose Folder” ; “” ]
Set Field [ Your_Table::Your_Field ; $$Path
Refresh Window [ ]
Thanks a lot for your helpful example.
However, I'm not familiar with applescript. In your attached example, using SET path to Desktop or Document folder command. How can I set to my specific current directory?
if it comes to define the current directory: The latest versions of FileMaker have a scriptstep for this:
there is an option to let one create a new directory
If you are using the AppleScript method, you can additionally set the color (AKA label index ) using something derived from this demo: set a_file_path_HFS to choose file set a_file_path_HFS to a_file_path_HFS as string -- create a fail using data type coercion set a_file_path_HFS to a_file_path_HFS as alias -- fix failure using data type coercion tell application "Finder" set label index of a_file_path_HFS to 1 -- or 0, 2, 3 etc. end tell Tony White
This has been posted before. Works in Windows, and OS x.
Is there a way to create several subfolders (un-nested)?I've been poking around with this to little success...
There are free plug ins that can create a new folder.
System scripts can be performed by FileMaker to create a folder. You would need one for each OS.
If you don't want use plug-ins, Why not use the scripts in the attached file above and run them to create folders / subfolders named as you desire and in desired directories.
Retrieving data ...