Commit b5982221 authored by Jack Jansen's avatar Jack Jansen

Before asking the finder to start the application (if start=1 is specified),...

Before asking the finder to start the application (if start=1 is specified), check that it isn't incidentally running already.
parent fb513a20
......@@ -161,6 +161,9 @@ class TalkTo:
def start(self):
"""Start the application, if it is not running yet"""
try:
self.send('ascr', 'noop')
except AE.Error:
_launch(self.target_signature)
def newevent(self, code, subcode, parameters = {}, attributes = {}):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment