Re: Dropping text on to Droplets
Re: Dropping text on to Droplets
- Subject: Re: Dropping text on to Droplets
- From: altenburg <email@hidden>
- Date: Fri, 08 Jun 2001 13:29:34 +0200
Brennan replied to Sander Tekelenburg's contribution:
>
> I suppose it could be nice if AS would be able to handle this
>
> internally on the fly. In the mean time, couldn't you look at the
>
> file's type, and if it is "TEXT" just have your script read it (and
>
> then do with it whatever you want to do with it)? Would only work with
>
> plain text of course.
>
>
Problem is, droplets only get triggered by files (i.e. aliases) dropped on
>
them
>
in the Finder, so I'd still need to save a file first.
>
>
What's needed is a mechanism to pass general drag and drop messages to the
>
open
>
handler of applescript droplets, not just dragged Finder files, then I imagine
>
it would work even with image clippings, for example a frame dragged from a
>
Quicktime movie.
Didn't follow the entire thread, but from the above I'd gather that you want
to accept text or pictures to have them processed. In the last chapter of
MacScripter's Magazine #4 Vittorio and I showed how to do that for text,
using iBuild as the front-end. You can do the same for pictures (albeit you
have to drop a picture onto a picture object, instead of a text object).
We're considering (and already did some work on) a special issue on image
processing using GraphicConverter, and Photoshop/Photoscripter. It would
motivate us if we hear people are interested in that. We don't get that much
feedback on what people would like to see in MacScripter's Magazine.
With save-restrictions being removed, you can see whether it fits your
needs.
MSM #4 can be downloaded from
http://macscripter.net/magazine.html
iBuild can be downloaded from
http://acruxsoft.com/ (NB, due to bugs in
earlier versions, you need 1.0.2 to process pictures).
HTH,
Bert
Who did some playing with GraphicConverter and iBuild, passing a picture
from iBuild to GraphicConvert, have GraphicConverter rotate it, pass it
back, take a picture of the (rotated) picture in iBuild, and feed that back
to GC etc. Gives a funny zoom effect, if you repeat it several times.