Re: copy
Re: copy
- Subject: Re: copy
- From: Philip Aker <email@hidden>
- Date: Tue, 10 Mar 2009 03:01:27 -0700
On 2009-03-09, at 19:48:42, Shawn Brady wrote:
can applescript know if a file is being copied and if so, can it
tell what file and where it is being copied to.
Not directly and in fact, I've never encountered a request like yours
before.
I don't know what all is available for shell tool calls but <x-man-page://fs_usage
> can give you information about when a file is being read (for the
copy operation) but I think it's difficult to deduce what the name of
the new file will be. It's a bit easier to monitor a specific
application with fs_usage but there's still a lot of spew from this
facility.
There is the low-level call <x-man-page://2/kqueue> which can monitor
a specific file (with C code) and I guess what you'd want to request
is the NOTE_ATTRIB (not 100% sure about that). Maybe if you describe
in greater detail what you want to accomplish, someone could suggest
an alternate solution.
Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@
Democracy: Two wolves and a sheep voting on lunch.
_______________________________________________
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: copy
- From: Philip Aker <email@hidden>
References: | |
| >copy (From: Shawn Brady <email@hidden>) |