AnsweredAssumed Answered

Need a step (applescript?) to empty a folder

Question asked by brian.bentley on Oct 24, 2013
Latest reply on Oct 24, 2013 by brian.bentley

Title

Need a step (applescript?) to empty a folder

Post

     I currently have a script in FileMaker Pro 12 with the following:

Go to Layout [ “Information Check” (Student Records) ]

Enter Browse Mode

Go to Record/Request/Page

[ First ]

Loop
          Set Variable
[ $Studentnumber; Value:Student Records::Student Number & ".pdf" ]

Save Records as PDF [ File Name: “file:../../PDF/$Studentnumber”; Current record ]

[ Restore; No dialog ]

Send Mail [ Send via E-mail Client; ....

Go to Record/Request/Page [ Next; Exit after last ]

End Loop
          Go to Layout
[ original layout ]

     I would like to add a step that moves all the saved PDF files in the "PDF" folder to the Trash. Any help, suggestions?

     Thanks

     Brian

Outcomes