elwood00 Posted February 24, 2005 Share Posted February 24, 2005 Anybody know of a way to create a subfolder in the my documents folder through a filemaker script, without dropping $60 on a plugin? Thanks Link to comment Share on other sites More sharing options...
Maarten Witberg Posted February 25, 2005 Share Posted February 25, 2005 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 repeatend 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 Link to comment Share on other sites More sharing options...
Hartger Posted February 25, 2005 Share Posted February 25, 2005 Kinda makes me feel stupid changing to Win.... Hartger Link to comment Share on other sites More sharing options...
Maarten Witberg Posted February 25, 2005 Share Posted February 25, 2005 Not that I'd advise anyone to switch from mac to win , but can't you do the same with VisualBasic or something? kjoe Link to comment Share on other sites More sharing options...
-Queue- Posted February 25, 2005 Share Posted February 25, 2005 Yes, you can make a batch or WinBatch file and call it via Send Message/Send Event. Link to comment Share on other sites More sharing options...
elwood0000 Posted March 1, 2005 Share Posted March 1, 2005 Of course I am on windows.... But thanks for the pointers - I have it figured out - and I found a free solution, rather than the $90 that WinBatch wants from you. It is called AutoIt by Hiddensoft - http://www.hiddensoft.com/autoit3/ Great program - even comes with a compiler. Link to comment Share on other sites More sharing options...
Ted S Posted March 1, 2005 Share Posted March 1, 2005 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 More sharing options...
Redu Posted August 23, 2006 Share Posted August 23, 2006 How can you make this a calculation from a parameter? I'm playing around with FMPro8 at the moment and this could prove very useful. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.