Re: Runs in Script Editor, not as droplet
Re: Runs in Script Editor, not as droplet
- Subject: Re: Runs in Script Editor, not as droplet
- From: "Stockly, Ed" <email@hidden>
- Date: Mon, 13 Aug 2001 18:16:59 -0700
>>>Marc K. Myers, email@hidden, wrote:
>
> I wrote the following script to create low-res copies of hi-res images
>
> from a digital camera. It runs perfectly from Script Editor but errors
>
> out when run as a droplet.
>
How does it do when run from the Finder as an applet? The reason I ask is that is the only way this script runs from Script Editor. Script Editor does not execute the Open handler in context.
Also, I'm not sure this makes a difference but your parameters in the open handler have parens which are not needed.
Also, where does the "image" object come from? It's not a Finder object, is it from an Osax? If so you may want to move the command outside the finder tell.
You may also try
set theImage to image of ....
set commandResult to the result as string
display dialog commandResult
Of course, I'd try Shane's suggestion about boosting the memory available to the droplet before anything else.
ES