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: Wed, 01 Apr 2009 15:32:59 -0400
- Thread-topic: Moving large PDF files with Applescript
On 4/1/09 2:59 PM, "Mark J. Reed" <email@hidden> wrote:
>> That¹s trivial to obtain. Please don¹t make me explain something that basic.
>
> No, please, humor me. Explain to me the basic, trivial process by
> which a folder action can intuit the final size of a file being
> written by some other process.
Since we're moving the file at the conclusion, and changing the name of a
file is pretty easy, the answer is obvious. Prepend the bytecount of the
file onto the name of the file. So aFile.pdf becomes 24234543_aFile.pdf. By
using a specific separator, removing the size at the conclusiong of the
transfer is trivial as well.
Anything else?
>
>> Really, it¹s not that hard to figure out.
>
> Yes, please condescend some more. All this stuff is so basic,
> trivial, not hard to figure out, and those of us worrying about the
> flaws in the delay loop idea are clearly just stupid.
That's your takeaway from it, and it seems to be based on your assumption
that the delay loop can't be implemented in a usable fashion. Not my fault
that's not correct.
>
> If we have the size information, obviously that simplifies things
> tremendously on the "check to see if the file is done transferring"
> front. The entire rest of your message assumes we have that
> information, and proceeds to argue against some strawman argument I
> didn't realize I was making wherein I claimed this to be a hard
> problem despite having that vital information. I'm such a moron!
Don't be so hard on yourself. You can't be expected to think of everything.
Jamming the file size on the name and removing it later happens to be a
technique I use in other places, because I had the need to know the size of
the file in a simple way for other scripting needs. But maybe you should
stop taking mailing lists as personally as you evidently do.
--
"Do not draw fire; it irritates the people around you."
Your comrades.
_______________________________________________
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