Jan Rychter


Technology, usability and programming with an occasional business angle.

Blog Widget by LinkWithin
Profile
Search

Entries in mac (1)

Thursday
Oct012009

Folder actions on Mac OS X: usable now?

AppleScript release notes for Snow Leopard (Mac OS 10.5.6):
Folder Actions now attempts to delay calling “files added” actions on files until they are done being copied. Previous versions called “files added” actions on new files as soon as they appeared in the file system. This was a problem for files that were being copied into place: if the file was sufficiently large or coming over a slow server link, the file might appear several seconds before it was done being copied, and running the folder action before it finished copying would behave badly. Folder Actions now watches if the file is changing size: if it stays the same size for more than three seconds, it is deemed “done”, and the action is called.

My experience with folder actions was that they are one big race condition waiting to bite you. It’s something all the tutorials conveniently glossed over. I kept wondering why Apple kept them if they are so obviously unreliable.

Hopefully that change, while far from correct, will make them usable.