Re: Moving large PDF files with Applescript
Re: Moving large PDF files with Applescript
- Subject: Re: Moving large PDF files with Applescript
- From: David Crowe <email@hidden>
- Date: Tue, 31 Mar 2009 16:27:12 -0500
I don't like the idea of timing loops, as it will inevitably fail at
some point, no matter how long you make the delay between checks.
If you can't detect a rename, but you control the producer, then have
it write a file with a distinct name.
So, something like this:
Start writing A.tmp
End writing A.tmp
Write very small file A.End (could contain the name of the temporary
file if you want an extra check)
Folder action will ignore the presence of A.tmp initially, but once a
file with ".End" is present it will then know it is okay to rename
A.tmp to A.pdf and delete A.End.
The producer is perhaps already busy writing B.tmp but the receiver
will wait until triggered by the presence of B.End before doing
anything with it.
- David Crowe
_______________________________________________
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