Automize a droplet

View: New views
5 Messages — Rating Filter:   Alert me  

Automize a droplet

by the Shelter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I wanna control/ trigger the process of a file being handed over to a droplet- is this doable? I haven't even found a way to do this in AppleTalk or on the command line yet ...

Any suggestion is highly appreciated.

Cheers,


S






     
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@...
http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: Automize a droplet

by Kevin Walzer-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 11/7/09 7:39 PM, the Shelter wrote:

> Hi all,
>
> I wanna control/ trigger the process of a file being handed over to a droplet- is this doable? I haven't even found a way to do this in AppleTalk or on the command line yet ...
>
> Any suggestion is highly appreciated.
>
> Cheers,
>
>
> S

Can you be more specific about what you want to do? What's a "droplet"?
And since you reference AppleTalk (do you mean AppleScript), is this
about Python?

--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@...
http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: Automize a droplet

by the Shelter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,


droplets are little mac apps that get triggered by dragging and dropping a file on them.
In my case there exists such a droplet app that creates txt output I need to infterface w/.
So I wanna trigger the process of a file being dropped on the app so I get the txt output that is written to a folder, i.e. take the file and fire it off to the app ...


And yes: I meant ApleScript, not Appletalk :-)

Since my main application that wants to get the txt file: yes, I'd prefer a python approach to this.


Cheers,

S







--- On Sun, 11/8/09, Kevin Walzer <kw@...> wrote:

> From: Kevin Walzer <kw@...>
> Subject: Re: [Pythonmac-SIG] Automize a droplet
> To: pythonmac-sig@...
> Date: Sunday, November 8, 2009, 1:48 PM
> On 11/7/09 7:39 PM, the Shelter
> wrote:
> > Hi all,
> >
> > I wanna control/ trigger the process of a file being
> handed over to a droplet- is this doable? I haven't even
> found a way to do this in AppleTalk or on the command line
> yet ...
> >
> > Any suggestion is highly appreciated.
> >
> > Cheers,
> >
> >
> > S
>
> Can you be more specific about what you want to do? What's
> a "droplet"?
> And since you reference AppleTalk (do you mean
> AppleScript), is this
> about Python?
>
> --
> Kevin Walzer
> Code by Kevin
> http://www.codebykevin.com
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG@...
> http://mail.python.org/mailman/listinfo/pythonmac-sig
>

--- On Sun, 11/8/09, Kevin Walzer <kw@...> wrote:

> From: Kevin Walzer <kw@...>
> Subject: Re: [Pythonmac-SIG] Automize a droplet
> To: pythonmac-sig@...
> Date: Sunday, November 8, 2009, 1:48 PM
> On 11/7/09 7:39 PM, the Shelter
> wrote:
> > Hi all,
> >
> > I wanna control/ trigger the process of a file being
> handed over to a droplet- is this doable? I haven't even
> found a way to do this in AppleTalk or on the command line
> yet ...
> >
> > Any suggestion is highly appreciated.
> >
> > Cheers,
> >
> >
> > S
>
> Can you be more specific about what you want to do? What's
> a "droplet"?
> And since you reference AppleTalk (do you mean
> AppleScript), is this
> about Python?
>
> --
> Kevin Walzer
> Code by Kevin
> http://www.codebykevin.com
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG@...
> http://mail.python.org/mailman/listinfo/pythonmac-sig
>


     
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@...
http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: Automize a droplet

by Ned Deily :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In article <111363.73671.qm@...>,
 the Shelter <the_shelter@...> wrote:

> droplets are little mac apps that get triggered by dragging and dropping a
> file on them.
> In my case there exists such a droplet app that creates txt output I need to
> infterface w/.
> So I wanna trigger the process of a file being dropped on the app so I get
> the txt output that is written to a folder, i.e. take the file and fire it
> off to the app ...
>
>
> And yes: I meant ApleScript, not Appletalk :-)
>
> Since my main application that wants to get the txt file: yes, I'd prefer a
> python approach to this.

If I understand correctly, you want to programatically emulate the
action of dropping a file onto a droplet app.  If so, probably the
easiest way to do it is to use the OS X open command from the command
line, so somthing like:

  $ open -a "/path/to/applet.app" "file-to-drop"

If that works, you can easily call that from within a python program by
using the old standby: os.system('open -a ...') or, if you need more
control, subprocess.Popen(...).

--
 Ned Deily,
 nad@...

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@...
http://mail.python.org/mailman/listinfo/pythonmac-sig

Parent Message unknown Re: Automize a droplet

by Jerry LeVan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Nov 9, 2009, at 6:00 AM, pythonmac-sig-request@... wrote:

>
> On 11/7/09 7:39 PM, the Shelter wrote:
>> Hi all,
>>
>> I wanna control/ trigger the process of a file being handed over to  
>> a droplet- is this doable? I haven't even found a way to do this in  
>> AppleTalk or on the command line yet ...
>>
>> Any suggestion is highly appreciated.
>>
>> Cheers,
>>
>>
>> S
>

I seem to recall that "Drop Stuff" and "Playtpus" can create droplets  
for
scripting languages.


Jerry
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@...
http://mail.python.org/mailman/listinfo/pythonmac-sig