Advice and answers from the Team

This document describes step-by-step how you can setup a watch folder in OS X that automatically uploads files to your selected project.

1. Open Automator and create a new Folder Action 

2. Select a folder that should be watched 

3. Search and drag a Run AppleScript action to your workflow

4. Replace the Run AppleScript´s code with the following:

on run {input, parameters}
tell application "Finder"
set theFile to (first item of input)
set {fileName, fileExtension} to {name, name extension} of theFile
set fileCount to count of input
end tell
if fileExtension is not "" then
set fileName to text 1 thru -((count fileExtension) + 2) of fileName -- just the name part
end if
tell application "/Applications/"
make new asset with properties {name:fileName, metadata:{}, data options:{|sourceType|:"Service", |fileCount|:fileCount, |autoUpload|:0}}
open input
end tell
return input
end run

  • Save (cmd+S) this Automator workflow. In this example I call it "Frameio-watch" Note: this workflow is saved /Users//Library/Workflows/Applications/Folder Actions/Frameio-watch.workflow 
  • Next, we´ll use the OS native Folder Actions technology. Therefore locate and double click the "Configure Folder Actions" utility here: -> /System/Library/CoreServices/Folder Actions 
  • On the left hand side of the Utility click the + button and select the same folder as before
  • If you click on the newly added folder name you should see the workflow appearing on the right side. If not, click the + button on the right side and locate the workflow file that we created earlier.
  • Finally activate Enable Folder Actions and you´re ready to drop your first file into the watch folder

Additional Notes

In the AppleScript above there is a line that contains an autoUpload flag

..., |autoUpload|:0}} ...

If you set its value to 1, the companion app will immediately start the upload to the first project that it finds. That´s not very useful, so I recommend to set a project to default (see image below). 

Having done this, the app always selects that specific project when it launches. So if you have a project that you are using frequently, set it to default. Now, with the autoUpload flag set to 1, whenever you put a file into your watch folder, the companion app launches and directly uploads your files to your default project.

Did this answer your question?