On Sat, Dec 24, 2016 at 7:21 PM, Jim Byrnes wrote:
> On 12/24/2016 05:10 PM, Danny Yoo wrote:
>>
>> On Sat, Dec 24, 2016 at 2:40 PM, Jim Byrnes wrote:
>>>
>>> subprocess.call(['libreoffice', '/home/jfb/test.ods'])
>>> k.tap_key(k.enter_key)
>>>
On 25/12/16 01:21, Jim Byrnes wrote:
> I am not trying to automate libreoffice using subprocess.
No, but you are trying to automate LO from within Python
by sending it keystrokes and that's not easy. That's why I
previously asked whether you really wanted to open the LO
file directly and
On 12/24/2016 05:10 PM, Danny Yoo wrote:
On Sat, Dec 24, 2016 at 2:40 PM, Jim Byrnes wrote:
subprocess.call(['libreoffice', '/home/jfb/test.ods'])
k.tap_key(k.enter_key)
k.tap_key(k.enter_key)
If I run the above code, libreoffice opens the test.ods spreadsheet then
just
On Sat, Dec 24, 2016 at 2:40 PM, Jim Byrnes wrote:
> subprocess.call(['libreoffice', '/home/jfb/test.ods'])
> k.tap_key(k.enter_key)
> k.tap_key(k.enter_key)
>
> If I run the above code, libreoffice opens the test.ods spreadsheet then
> just sits there. When I close
subprocess.call(['libreoffice', '/home/jfb/test.ods'])
k.tap_key(k.enter_key)
k.tap_key(k.enter_key)
If I run the above code, libreoffice opens the test.ods spreadsheet then
just sits there. When I close libreoffice the two enter_keys are
executed in the terminal that originated the script.