~ubuntu-branches/ubuntu/oneiric/python2.5/oneiric

« back to all changes in this revision

Viewing changes to Lib/plat-mac/terminalcommand.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2008-12-21 08:57:49 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20081221085749-bijjr25h8na5jdsu
Tags: 2.5.3-0ubuntu1
* New upstream version.
* Regenerate the included documentation.
* Add an option --install-layout=deb, which is ignored for 2.5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
def run(command):
29
29
    """Run a shell command in a new Terminal.app window."""
30
 
    termAddress = AE.AECreateDesc(typeApplSignature, TERMINAL_SIG)
 
30
    termAddress = AE.AECreateDesc(typeApplicationBundleID, "com.apple.Terminal")
31
31
    theEvent = AE.AECreateAppleEvent(kAECoreSuite, kAEDoScript, termAddress,
32
32
                                     kAutoGenerateReturnID, kAnyTransactionID)
33
33
    commandDesc = AE.AECreateDesc(typeChar, command)