blob: 6f0a2a0e6ba5c54038a68644af127b0266a0cc14 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
"Run as Python" -- a BBEdit extension to make the Python interpreter execute the
contents of the current window.
version 0.2.3, 18 september 1996
contents:
- "Run as Python" -- the extension
- PythonSlave.py -- the "slave" script that handles the AppleEvents
- source -- source code & CW9 project for the extension
quickstart:
- drop "Run as Python" in BBEdit extensions folder
- double-click PythonSlave.py
- start BBEdit
- type some code
- go to Extensions menu: "Run as Python"
- be happy
warning:
since PythonSlave.py runs its own event loop and we have no interface
to SIOUX you *cannot* copy from the console. Duh.
extra feature:
while PythonSlave.py is running you can still double-click Python
documents, they will get executed as if Python was not already running.
bugs:
perhaps
acknowledgements:
- Thanks to Joseph Strout for valuable input and beta testing.
- Thanks to Mark Roseman for providing code that can launch
PythonSlave.py from BBEdit.
Have fun with it!
Please report bugs, or fix 'em. Suggestions are always welcome.
Just van Rossum, Letterror
<just@knoware.nl>
|