| Sign In/My Account | View Cart |
| Article: |
Using Python and AppleScript Together | |
| Subject: | Shorter alias | |
| Date: | 2007-05-10 08:48:18 | |
| From: | ulrichp | |
|
Instead of
|
||
Showing messages 1 through 3 of 3.
Shorter alias
app(u'/Applications/DiskWarrior.app')...
dw=app('DiskWarrior')
dw.activate(timeout=3600)
dw.disk['main'].rebuild(replacing=k.yes_,
timeout=3600)
dw.quit(timeout=3600)
I personally like to be explicit as much as possible, but I also like the short cut way too.