New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Syncing folder with DropBox


Post Reply New Thread Subscribe

 
Thread Tools
Mikethebook

 
Member Since: May 29, 2009
Posts: 166
Mikethebook is on a distinguished road
Mac Specs: Mac Mini 2.26Ghz 2GB RAM

Mikethebook is offline
I'm running Snow Leopard and want the contents of the DropBox folder to sync with another folder. How do I set that up with Automator or AppleScript? I've no experience of either.
QUOTE Thanks
MacGrunt

 
MacGrunt's Avatar
 
Member Since: Aug 02, 2011
Posts: 17
MacGrunt is on a distinguished road

MacGrunt is offline
G'day Mikethebook

I'm assuming you just want to copy items added to the dropbox into a destination folder? (ie. not an actual 'syncing' of the two folders).
You could set that up as a Folder Action Script attached to your dropbox. Not sure if the procedure is the same for Snow Leopard see how you go.

Copy this into Script Editor (found in Applications > Applescript) :
Code:
on adding folder items to mgFolder after receiving mgFiles
  set mgFolder to "Macintosh HD:Users:macgrunt:Desktop:Duplicates Folder:"
  tell application "Finder"
    duplicate mgFiles to mgFolder
  end tell
end adding folder items to
You need to reset that path within double-quotes to your own destination folder. The easiest way to get the path is to select your destination folder in the finder and then run this from Script Editor :
Code:
tell application "Finder"
  get selection as string
end tell
That will give you the folder path in your results window.

OK, once you've updated the script to your setup, it needs to be saved (as a script) into the Folder Action Scripts folder somewhere like this : Macintosh HD:Library:Scripts:Folder Action Scripts:

Then right-click on your dropbox and go down to "More..."
If you see "Enable Folder Actions", choose that.
Then right-click again and choose "Attach Folder Action".

The rest should be straight-forward.

Hope that helps.

m.
QUOTE Thanks
Mikethebook

 
Member Since: May 29, 2009
Posts: 166
Mikethebook is on a distinguished road
Mac Specs: Mac Mini 2.26Ghz 2GB RAM

Mikethebook is offline
Thanks for your help but I actually want things the other way round. I want to copy items added to a certain folder to be automatically added to Dropbox and for items removed from the folder to also be removed from Dropbox.s So I guess that I do want Dropbox to sync with this folder.
QUOTE Thanks
BrianLachoreVPI

 
BrianLachoreVPI's Avatar
 
Member Since: Feb 24, 2011
Location: Maryland
Posts: 3,742
BrianLachoreVPI has a brilliant futureBrianLachoreVPI has a brilliant futureBrianLachoreVPI has a brilliant futureBrianLachoreVPI has a brilliant futureBrianLachoreVPI has a brilliant futureBrianLachoreVPI has a brilliant futureBrianLachoreVPI has a brilliant futureBrianLachoreVPI has a brilliant futureBrianLachoreVPI has a brilliant futureBrianLachoreVPI has a brilliant future
Mac Specs: March 2011 15" MBP 2.3GHz i7 Quad Core 8GB Ram | Mid 2011 27" iMac 3.4 GHz i7 16 GB RAM 2 TB HDD

BrianLachoreVPI is offline
Quote:
Originally Posted by Mikethebook View Post
Thanks for your help but I actually want things the other way round. I want to copy items added to a certain folder to be automatically added to Dropbox and for items removed from the folder to also be removed from Dropbox.s So I guess that I do want Dropbox to sync with this folder.

But that's what Dropbox is - a local folder on your drive that syncs with dropbox. If you have to do one outside of Dropbox - you'll need to use symlinks I believe - but back when I was considering something similar it ended up feeling like a waste since it's just an extra step for what Dropbox is natively designed to do.
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,097
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
I'm with BrianLachoreVPI - this is what the Dropbox folder is for. It might help if we know why you want to do this since it seems like a more efficient solution might be possible.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks

Post Reply New Thread Subscribe


« Trash + error 36. HELP! | Stopping Autocomplete with "Go To Folder" Function »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Renamed Home Folder and lost all settings, jpgs, mp3s, photos etc. HELP! lajay OS X - Operating System 0 08-31-2011 03:03 PM
Dropbox ozmee Switcher Hangout 2 06-25-2011 03:03 AM
saving a resized window?? Copper Top Switcher Hangout 11 01-26-2009 11:30 AM
Internet help ( quick) watzup Switcher Hangout 8 09-22-2006 09:07 AM
Copying one folder over another of the same name destroys data! Cloudane Switcher Hangout 28 05-18-2005 07:10 PM

All times are GMT -4. The time now is 11:53 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?