Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You can do similar things yourself without much in the way of programming. In OSX, you can configure "<a href="http://www.apple.com/pro/tips/folderactions.html" rel="noreferrer">Folder Actions</a>" to run a script, for example, when a new item appears in a folder, including the Desktop. You can then use the script to do whatever you want with the new files.</p> <p><a href="http://www.simplehelp.net/2007/01/30/folder-actions-for-os-x-explained-with-real-world-examples/" rel="noreferrer">This article at TUAW</a> includes an example of uploading files to a web server when they hit a particular folder.</p> <p>So, basically, the answer is "Folder Actions", or "something's keeping an eye on the folder and sending notifications", at some level. Whether Cloud App uses Folder Actions or watches the folder itself at a lower level, using FSEvents/NSWorkspace, or the kqueue mechanisms (for which there's a nice wrapper class called <a href="http://www.cocoadev.com/index.pl?UKKQueue" rel="noreferrer">UKKQueue</a>, if I remember correctly -- don't know how current my knowledge is on that one though!) is another matter...</p> <p>You could implement this at several different levels, depending on the outcome you want, how you want to design whatever it is you're actually doing, and even what kind of filesystem you're targeting. Fundamentally, in Cocoa/Objective C, I think you probably want to start looking at <a href="http://en.wikipedia.org/wiki/FSEvents" rel="noreferrer">FSEvents</a>.</p> <p>Once you've got notifications of the file changes, I'd probably use something like <a href="http://opensource.utr-software.com/connection/" rel="noreferrer">ConnectionKit</a> to do the uploading -- any library at all, really, that means you don't have to bother with the sockets level yourself -- but again, there's a lot of different ways.</p> <p>Depends, really, what level you're looking to solve the problem at, and whether you want to build something for other people or get something working for yourself. If I just wanted to bash something together for myself, I could probably have something cobbled together using Coda's Transmit app, and Folder Actions, or maybe Hazel, and a minimal bit of Applescript, in a half-hour at most, that would do the job well enough for me...</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload