RE: Help! Slow Script!
RE: Help! Slow Script!
- Subject: RE: Help! Slow Script!
- From: "Sprague, Graham" <email@hidden>
- Date: Fri, 12 Jul 2002 10:24:28 -0400
Ok that sounds like a good idea. However I would need to store pict data in
an applescript variable within a list. Can this be done? I would like to
copy pict data directly from a Photoshop layer into a variable. I looked in
the Applescript in a Nutshell book under data types and found no reference
to image or pict data. There must be a way to do this with!
>
----------
>
From: Paul F. Henegan
>
Sent: Tuesday, July 9, 2002 11:17 PM
>
To: Sprague, Graham; 'email@hidden'
>
Subject: Re: Help! Slow Script!
>
>
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.
_______________________________________________
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.