• 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: 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
  • Prev by Date: RE: Moving large PDF files with Applescript
  • Next by Date: Re: Moving large PDF files 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