• 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: Folder Actions Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Folder Actions Question (From: Stuart Milliken <email@hidden>)
 >Re: Folder Actions Question (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: Folder Actions Question
  • Next by Date: InDesign Page #
  • Previous by thread: Re: Folder Actions Question
  • Next by thread: InDesign CS2: Test graphics for item layer
  • Index(es):
    • Date
    • Thread