|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Automize a dropletHi 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 dropletOn 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 dropletHi, 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 dropletIn 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 |
|
|
|
| Free embeddable forum powered by Nabble | Forum Help |