Re: Moving large PDF files with Applescript
Re: Moving large PDF files with Applescript
- Subject: Re: Moving large PDF files with Applescript
- From: "John C. Welch" <email@hidden>
- Date: Tue, 31 Mar 2009 11:20:22 -0400
- Thread-topic: Moving large PDF files with Applescript
On 3/31/09 11:03 AM, "Mark J. Reed" <email@hidden> wrote:
> If you can control the process writing the files, one option is to
> have it write to a temporary filename in the folder, then rename it
> when done writing, where the temp names and final names follow
> different patterns and the folder action only operates on files
> matching the final name pattern. For instance, write to a .tmp and
> then rename to .pdf and have the action only operate on files whose
> name extension is "pdf".
>
> Only viable if you control the producer as well as the consumer, but
> avoids the busy loop spinning on the file size, and is more reliable
> in the face of long delays..
That creates a problem with the folder action, as a rename is going to
require a different action than an add, and IIRC, that's not technically a
folder action. Using launchd items might give you more options, but I'm not
sure.
--
Socks should match your pants, and your belt should match your shoes. After
that, if anyone complains, tell em they should be happy you¹re wearing any
clothes at all.
_______________________________________________
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