Re: problems with folder actions since mac os x 10.5
Re: problems with folder actions since mac os x 10.5
- Subject: Re: problems with folder actions since mac os x 10.5
- From: Martin Michel <email@hidden>
- Date: Tue, 23 Feb 2010 21:57:38 +0100
Hi chris,
So far I did not make very good experiences with folder actions in professional environments, as they are not 100% reliable. Therefor I always chose the method Shane Stanley already described before: Creating a stay-open script which constantly monitors a folder for incoming items and processing them accordingly.
But as a programmer this approach is not very satisfying: Why polling a folder every second for new items when there are only some new files every 20 minutes? And that's why - when we recently moved some of our systems to Mac OS X 10.6 - I started to rewrite those monitor scripts and converted them into very simple Cocoa applications using FSEvents.
http://en.wikipedia.org/wiki/FSEvents
This way my application gets notified by the operating system when there is change in a watched folder and can then process the newly added items. I just love this. It feels so damn right. Using this technology we now have very reliable workflows (serving thousands of PDF files per day) and the servers have much less to do. I can absolutely recommend this.
The downside is that you need to know some Cocoa, but that's a good thing to know anyhow :-)
If you are interested in the source code of an application that uses this technology to load Tagged Text files into InDesign templates to get them exported as PDF, please note accordingly. I can provide you with this private Xcode project. It's not really a sample project with elaborate comments, but gives a good introduction about how to do it. Unfortunately I cannot give away any code written for my employer.
Best regards from Berlin,
Martin
Am 23.02.2010 um 10:14 schrieb Christian Breu:
> on two xserves we use indesign server to export indesign files to pdf.
> to do that automatically, we wrote an applescript added to a number of folders, as folder action.
> this script checkes the triggering folder, sets the related settings of indesing server, opens and exports the files.
>
> the os version of the xserves is (unfotunatly still) mac os x server 10.4.11!
> the reason for this is, that folder action in os version from 10.5.x up doesn't work equal than in 10.4.x!?
>
> the real problem is, that the folder(action), when just triggered, cannot recognize any (in this moment) additional dropped files and will leave them untouched.
> in 10.4 this workes different - additional dropped files are recognized and processed first.
>
> does anyone know about this issue and any solution or workaround?
>
>
> thx. for any help.
> kind regards.
>
> chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden