• 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: Runs in Script Editor, not as droplet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Hash arrays [was: does property exists in a record]
  • Next by Date: Re: Hash arrays [was: does property exists in a record]
  • Previous by thread: Re: Runs in Script Editor, not as droplet
  • Next by thread: Re: Runs in Script Editor, not as droplet
  • Index(es):
    • Date
    • Thread