• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Moving large PDF files with Applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Moving large PDF files with Applescript
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Re: Moving large PDF files with Applescript (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Moving large PDF files with Applescript
  • Next by Date: Copy files into /private/var/ with Applescript
  • Previous by thread: Re: Moving large PDF files with Applescript
  • Next by thread: Re: Moving large PDF files with Applescript
  • Index(es):
    • Date
    • Thread