Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Aug 7, 2013, 06:34 AM   #1
ronswanson
macrumors newbie
 
Join Date: Sep 2012
Triggering folder action on dropbox folder?

I am trying to set up a Folder Action to act on any file added to a Dropbox folder on my laptop but the action is not triggered when Dropbox deposits a new file in that folder. If I move a file by hand into that folder, the Folder Action works!

Help!

(What I'm really trying to do is this: automatically re-encode videos downloaded to Dropbox's Camera Uploads folder on my laptop to 480p and copied to another local folder on my laptop. All of this is easy using Folder Actions but it will not trigger!!)
ronswanson is offline   0 Reply With Quote
Old Aug 7, 2013, 11:28 AM   #2
MasConejos
macrumors regular
 
Join Date: Jun 2007
Location: Houston, TX
Send a message via ICQ to MasConejos
You may need to try a different tactic like setting up a cron job with a script to monitor the folder, check for new files, and then do the conversion.

Alternatively, it may be easier just to set up a cron job or rsync to move the file from the dropbox folder to another staging folder, and then have the folder action trigger there, assuming that rsync or a cron job+move file combo triggers folder actions
MasConejos is offline   0 Reply With Quote
Old Aug 7, 2013, 03:36 PM   #3
ronswanson
Thread Starter
macrumors newbie
 
Join Date: Sep 2012
thanks!

huh.. thanks! is that because this is a known issue with dropbox and folder actions?
ronswanson is offline   0 Reply With Quote
Old Aug 7, 2013, 04:39 PM   #4
MasConejos
macrumors regular
 
Join Date: Jun 2007
Location: Houston, TX
Send a message via ICQ to MasConejos
I don't know, honestly. I would hazard a guess that whatever process monitors a folder for folder actions is NOT the process that dropbox uses to write files. Or more specifically, folder actions are probably handled by the finder process (which is always running), but dropbox just writes to the folder directly using the underlying os filesystem hooks and so finder never gets notified.

It's possible that rsync or a cronjob copy wouldn't work either. You may need to write a full script to check for new files and then do the processing, and set that up on a cron job.

There is also a program called Hazel that is similar to folder actions that might work the way you want.

Food for thought....
MasConejos is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Tags
dropbox, folder_actions

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Putting OneDrive Folder in Dropbox folder or vice versa. Traverse Mac Applications and Mac App Store 8 Apr 30, 2014 05:33 PM
Sync Folder between macs (without Dropbox) Uplift Mac Basics and Help 1 Dec 9, 2013 05:22 AM
Dropbox folder not syncing in Finder ddublu OS X 10.8 Mountain Lion 2 Jul 3, 2013 09:42 AM
One Dropbox folder not showing up on iPad annk iPad Tips, Help and Troubleshooting 4 Feb 4, 2013 05:46 AM
Dropbox Folder in MBA without installing Dropbox... RocketRed MacBook Air 5 Jun 20, 2012 09:55 AM

Forum Jump

All times are GMT -5. The time now is 04:28 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC