I think you can find an example in the sample chapter of Adam 
Goldstein's AppleScript: The Missing Manual found at:
<http://www.oreilly.com/catalog/applescripttmm/>

Ruby/AppleScript examples are in  Matt Neuburg's AppleScript the 
Definitive Guide.


-:  -:  -:  -: -:  -:  -:  -:    \|/
   -:  -:  -:  -: -:  -:  -:  -:  cU
mlb                    412/373.8355


On Apr 28, 2005, at 9:57 AM, tsuraan wrote:

> I'm not sure what that means, but I'll ask google :)  It sounds 
> interesting, anyhow.  Thanks!
>
> --jay
>
> PS, sorry for hijacking the comments thread.  I guess I can't just hit 
> reply and change the subject to make a new thread.  Sorry again.
>
> On Apr 28, 2005, at 7:56 AM, Mel Bohince wrote:
>
>> tsuraan,
>>
>> You could use an AppleScript with an open handler, saved as a 
>> droplet, to pass the handle(s) of the droppee's to ruby with "do 
>> shell script".
>>
>>
>> -:  -:  -:  -: -:  -:  -:  -:    \|/
>>   -:  -:  -:  -: -:  -:  -:  -:  cU
>> mlb                    412/373.8355
>>
>>
>> On Apr 27, 2005, at 9:30 PM, tsuraan wrote:
>>
>>> I'm wondering if there's a global variable or something that can 
>>> tell if a ruby script was started by having a file dropped on its 
>>> icon in the finder.  I'm not even sure if drag and drop is the right 
>>> term here, since I'm not actually planning on having a GUI; I just 
>>> want a path to a file to operate upon.
>>>
>>>
>>
>>
>
>