• 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: RE: Scripting dropping a file onto a droplet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RE: Scripting dropping a file onto a droplet


  • Subject: Re: RE: Scripting dropping a file onto a droplet
  • From: "Roger Howard" <email@hidden>
  • Date: Thu, 12 Apr 2001 13:45:30 -0700

I didn't include much-needed error handling... try this as an alternative (using the Finder to open the file using another app)

set dropFile to ((path to startup disk as string) & "00140901.jpg") as file
tell application "Finder" to open dropFile using (((path to startup disk as string) & "Scale") as alias)

Of course you can use this code in more refined ways... but for brevity I hardcoded the application and drop file.

The problem appears to be that ImageReady droplets don't handle the open event properly. I hadn't tested with an ImageReady droplet before when I posted - sorry :)

Cheers,

Roger Howard
J. Paul Getty Museum

>>> Brian Mather <email@hidden> - 4/12/01 1:28 PM >>>
Posted my approach to this last night but agree your's is much, much better.
However, I can't seem to get your code to work on my machine..
set dropFile to ((path to startup disk as string) & "test.gif") as
file
tell application "droplet" to open dropFile
returns the error:
Can't make "Macintosh HD:test.gif" into a file


tell application "droplet" to open Macintosh HD:testgif"

launches the droplet but then it just sits there until timeout error


tell application "droplet" to open (Macintosh HD:testgif" as file)
returns the error:
Can't make "Macintosh HD:test.gif" into a file

Brian Mather
Digital Photographer
Global Sports Interactive
610-491-7091
http://www.globalsports.com


  • Prev by Date: Re: CGI?
  • Next by Date: Converting height and width to numbers, text, or string in PhotoS hop
  • Previous by thread: Re: Scripting dropping a file onto a droplet
  • Next by thread: Re: Scripting dropping a file onto a droplet
  • Index(es):
    • Date
    • Thread