• 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: Timed watched folders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Timed watched folders


  • Subject: Re: Timed watched folders
  • From: Geoff Graham <email@hidden>
  • Date: Fri, 16 Jan 2004 13:23:08 -0500

you know, i meant to reply to the list. sorry.

That is sad to hear. I have a watched folder that my pdf "printer" saves to. the folder action renames it, then moves it to the out folder. Sometimes the file remains and the moved file is 0 bytes in size; this thread clued me in that it is not finished printing when the Finder attempts the move. Or maybe the problem is just an error on my part: but it has succeeded twice since I wrapped it in an "is busy" repeat loop.

But back to the part about making it harder than it has to be, I don't remember having this problem before (os9), I thought the "after receiving" part of:
on adding folder items to theFolder after receiving theAddedItems
means -finished- receiving. If not, surely the Finder at least sets the busy status?

if neither, then that size comparison loop would be mandatory for all adding folder items actions.

geoff

On Jan 16, 2004, at 12:06 PM, Rob Jorgensen wrote:

At 11:48 AM -0500 1/16/04, Geoff Graham wrote:
On Jan 16, 2004, at 10:25 AM, Rob Jorgensen wrote:

repeat
set size_check1 to size of (info for aFile)
do shell script "sleep 10"
set size_check2 to size of (info for aFile)
if size_check1 is equal to size_check2 then exit repeat
end repeat


busy status of (info for aFile) works too.

Hi Geoff,

I've found that busy status is not reliable (in OS X anyway) since it is dependent on applications which set the flag. :/

-- Rob
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Timed watched folders
      • From: Rob Jorgensen <email@hidden>
References: 
 >Re: applescript-users digest, Vol 3 #2339 - 14 msgs (From: Chad Lindsey <email@hidden>)
 >Re: Timed watched folders (From: Rob Jorgensen <email@hidden>)

  • Prev by Date: UI Scripting - ASCII equivalent
  • Next by Date: Re: How to call a Word VBA function?
  • Previous by thread: Re: Timed watched folders
  • Next by thread: Re: Timed watched folders
  • Index(es):
    • Date
    • Thread