Re: Folder Actions Question
Re: Folder Actions Question
- Subject: Re: Folder Actions Question
- From: Michelle Steiner <email@hidden>
- Date: Fri, 5 Sep 2008 13:15:48 -0700
On Sep 5, 2008, at 1:00 PM, Philip Aker wrote:
I don't know about the vagaries of Folder Actions but in general,
you'll get a faster result if you're only sending events to one
application. Since you can ask the Finder for the same file and
folder count, I think that's one area which could be optimized.
And maybe instead of this:
set filesInFolder to every file of thisFolder whose visible is true
set n to count filesInFolder
set foldersInFolder to every folder of thisFolder whose visible is
true
set n to n + (count foldersInFolder)
This:
set n to (count (get files of thisFolder whose visible is true)) +
(count (get folders of thisFolder whose visible is true))
-- Michelle
--
Please contribute to the Leukemia and Lymphoma Society, and help me
meet my fund raising goal for my marathon training.
<http://www.active.com/donate/tntdms/tntdmsMSteine>
_______________________________________________
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