Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Improvements' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Improvements
Authored by: lullabud on Mar 30, '10 10:53:40AM

One way to improve this would be to use "rsync -aPq srcfiles desthost:/path/on/server" instead of using two scp commands. This will update the whole tree in one command. You could even just put that in cron and let it run ever 5 minutes or however frequently and skip the folder action, so long as you don't need that instantaneous upload.

Another way to do this without the folder action would be through launchd, which would keep the Finder from flashing. (see this hint - http://www.macosxhints.com/article.php?story=20080423051638134 )

Using launchctl also lets you do the whole thing in a shell script rather than gluing shell scripts into applescript.



[ Reply to This | # ]