projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb513a2
)
Before asking the finder to start the application (if start=1 is specified), check...
author
Jack Jansen
<jack.jansen@cwi.nl>
Sat, 11 Aug 2001 22:29:18 +0000
(22:29 +0000)
committer
Jack Jansen
<jack.jansen@cwi.nl>
Sat, 11 Aug 2001 22:29:18 +0000
(22:29 +0000)
Mac/Lib/lib-toolbox/aetools.py
patch
|
blob
|
history
diff --git
a/Mac/Lib/lib-toolbox/aetools.py
b/Mac/Lib/lib-toolbox/aetools.py
index 42b6b76b377420c91dfd6198e89f4f1e1893cff1..1af761e2d89f7b1fe75e2022fe8e71d1acd9e003 100644
(file)
--- a/
Mac/Lib/lib-toolbox/aetools.py
+++ b/
Mac/Lib/lib-toolbox/aetools.py
@@
-161,7
+161,10
@@
class TalkTo:
def start(self):
"""Start the application, if it is not running yet"""
- _launch(self.target_signature)
+ try:
+ self.send('ascr', 'noop')
+ except AE.Error:
+ _launch(self.target_signature)
def newevent(self, code, subcode, parameters = {}, attributes = {}):
"""Create a complete structure for an apple event"""