I need to write or find a simple script to find, select and move to trash, folders within a Final Cut Pro X library. Because these libraries are bundles you can't search them in the normal way.

What I want is a script that runs every day, searches the libraries finds Folders (and their contents) called "Render Files" and then moves them to trash.

I can use automator to find the bundles, and to list the contents, but then I cannot get it to select only the 'Render Files' folders.

  • Any particular reason why you need AppleScript? I've added an answer that doesn't use AppleScript
    – grg
    Jun 17, 2014 at 12:10

2 Answers 2


Add the following to your crontab (env EDITOR=nano crontab -e):

@daily /usr/bin/find /path/to/fcplibraries -name "Render Files" -type d -delete

Keep backups and make sure you've got the right path.

  • Thanks George I thought cron was deprecated in mac mavericks. I came up with this rm -R /Volumes/Home/RBPY/Final\ Cut\ Libraries/*.fcpbundle/*/Render\ Files which works but still not sure what to do to save it correctly and run it automatically at a set time.
    – Doug
    Jun 18, 2014 at 6:09
  • @Doug Run env EDITOR=nano crontab -e, add a new line beginning with @daily then your command, then save.
    – grg
    Jun 20, 2014 at 20:41

I have made a script to remove all Final Cut Render Files. Can be use to anyone, only need to point to final cut bundle.. that's it.

-- Check folder and delete Render Files folder
display alert "Choose Final Cut Pro X Project Bundle"
set theFolder to choose file
set renderfolder1 to "/*/Rende*" -- Folder Render Files
set renderfolder to POSIX path of theFolder -- Convert Path of Final Cut 
Project to shell script
    do shell script "rm -R " & renderfolder & renderfolder1
    display alert "Left overs from Final Cut Pro X successfully removed!" giving up after 3
on error errMsg
    display alert "There are not Final Cut Pro X Left overs to remove" giving up after 3
end try

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .