Jump to content
Salesforce and other SMB Solutions are coming soon. ×

?? Create a folder from within Filemaker


elwood00

Recommended Posts

If you're on a mac:

 

create a text field NameOfFolder

validate this field: it should be unique and contain only alphanumeric and _

 

Code:


copy[select, "NameOfFolder"]

perform applescript["blahblahblah"]


 

add the following applescript lines in the dialog box of the "perform applescript" script step:

 

Code:


tell application "Finder"

set my_folder_name to the clipboard

set the date_stamp to ((the current date) as string)

make new folder at "YourHardDisk:users:YourName:documents"

set the item_list to list folder "YourHardDisk:users:YourName:documents" without invisibles

repeat with i from 1 to number of items in the item_list

set this_item to item i of the item_list

set this_item to "YourHardDisk:users: YourName:documents:" & this_item as alias

if creation date of this_item as string is date_stamp then

set the name of my this_item to my_folder_name

end if

end repeat

end tell


 

this script was tested in OSX. there could be differences when in OS9. I could not figure out how to set the name of the folder in one go so I had to create the test-for-datestamp loop.

 

kjoe

smirk.gif

Link to comment
Share on other sites

Try this using Send Event:

 

cmd /c md "C:\Documents and Settings\UserName\My Documents\NewFolder"

 

Of course you can make this a calculation by using some parameter from your DB.

Link to comment
Share on other sites

  • 1 year later...

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...

Important Information

Terms of Use