• 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: Help! Slow Script!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help! Slow Script!


  • Subject: Re: Help! Slow Script!
  • From: "Paul F. Henegan" <email@hidden>
  • Date: Tue, 09 Jul 2002 23:17:22 -0400

on 09.07.2002 09:53, Sprague, Graham at email@hidden wrote:

> I've written a droplet script that uses Photoshop 7 to extract dimensions
> and create thumbnails which are then placed into a FileMaker File. It all
> works fine but seems so damn slow. Funny thing is the slow spots are when
> one app finishes a task and another is about to start one.

Hi Graham,

Although I'm no expert, one thing I've noticed abluot AppleScript is that it
definitely prefers working with lists and references over individual Finder
objects. If only several items are dropped the difference isn't so obvious,
but above eight or so it's difficult not to notice.

So I would try building a separate list for each of the handlers of the
results and pass that to the next. The speed with which each application can
act on items in a list more than makes up for the extra step. In other
words, I would have getFileData() return a list of file data [records?] for
processPSFile(), which would then return a list of resulting files for
populateFileMaker() to work on.

HTH,

paul
--
Paul F. Henegan
<email@hidden>
_______________________________________________
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.

  • Prev by Date: Weird effect of Carbon Lib update
  • Next by Date: Re: timing
  • Previous by thread: Re: Help! Slow Script!
  • Next by thread: RE: Help! Slow Script!
  • Index(es):
    • Date
    • Thread