AnsweredAssumed Answered

How to create a folder (using Applescript) with subfolders

Question asked by DickVerschuur on Mar 11, 2012

Title

How to create a folder (using Applescript) with subfolders

Post

Good afternoon...

I want FileMaker to create a folder with the name of a field in the Filemaker File
IN THAT FOLDER should be 6 subfolders.

I believ this can be done with Applescript

This is my script so far:

tell application "FileMaker Pro Advanced"
set folder_name to cell "FolderName" of current record
end tell
tell application "Finder"
    activate
    make new folder at folder "Desktop" of folder "dick" of folder "Users" of startup disk with properties {name:folder_name}
end tell
tell application "Finder"
    activate
       make new folder at folder {name:folder_name} of folder "Desktop" of folder "dick" of folder "Users" of startup disk with properties {name:"subfolder"}
end tell

My problem is: the creation of "Subfolder1"

What is my mistake there?

Help is much appreciated

 

Dick

Outcomes