Skip to content

Commit 213e05c

Browse files
committed
update README.md
1 parent 7550535 commit 213e05c

File tree

1 file changed

+39
-39
lines changed

1 file changed

+39
-39
lines changed

README.md

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
1-
# mac_list_windows_pids
2-
Mac OS X: list all windows title and their owner process ids
1+
# `mac_list_windows_pids`
32

4-
##Usage:
3+
MacOS: list all windows title and their owner process ids.
54

6-
Tested on OS X Yosemite 10.10.5, Python 2.7
5+
## Usage
6+
7+
Tested on MacOS `13.4`, Python `3.7 ~ 3.11`.
78

89
*Note* if you run into error `No module named Quartz`, then run `pip install pyobjc-framework-Quartz` to install it.
910

10-
$ python lswin.py
11-
12-
PID WinID x,y,w,h [Title] SubTitle
13-
------- ----- --------------------- -------------------------------------------
14-
169 1956 {0,-38,1280,25 } [Window Server] Backstop Menubar
15-
169 1955 {0,-60,1280,22 } [Window Server] Menubar
16-
169 396 {0,-38,1280,25 } [Window Server] Backstop Menubar
17-
169 395 {0,-60,1280,22 } [Window Server] Menubar
18-
169 6 {0,0,0,0 } [Window Server] Cursor
19-
169 4 {0,22,1280,25 } [Window Server] Backstop Menubar
20-
169 3 {0,0,1280,22 } [Window Server] Menubar
21-
169 2 {0,0,1280,800 } [Window Server] Desktop
22-
262 404 {0,-38,1280,38 } [Google Chrome]
23-
262 393 {0,0,1280,800 } [Google Chrome]
24-
262 380 {100,100,1,1 } [Google Chrome] Focus Proxy
25-
262 351 {1189,45,46,18 } [Google Chrome]
26-
262 51 {0,0,1280,800 } [Google Chrome] sjitech/mac_list_windows_pids
27-
262 50 {0,755,1,1 } [Google Chrome]
28-
262 43 {0,0,1280,22 } [Google Chrome]
29-
262 42 {0,0,1280,22 } [Google Chrome]
30-
266 3294 {0,23,1276,777 } [Sublime Text] README.md — mac_list_windows_pids
31-
266 1954 {0,-38,1280,38 } [Sublime Text]
32-
266 1953 {0,0,1280,800 } [Sublime Text]
33-
266 1952 {0,0,1280,800 } [Sublime Text]
34-
266 345 {529,83,116,56 } [Sublime Text]
35-
266 188 {100,100,1,1 } [Sublime Text] Focus Proxy
36-
266 186 {0,0,1280,22 } [Sublime Text]
37-
266 185 {0,0,1280,22 } [Sublime Text]
38-
266 93 {0,0,1280,800 } [Sublime Text] lswin
39-
... ...
40-
41-
42-
##Known problems
11+
```sh
12+
$ python lswin.py
13+
14+
PID WinID x,y,w,h [Title] SubTitle
15+
------- ----- --------------------- -------------------------------------------
16+
169 1956 {0,-38,1280,25 } [Window Server] Backstop Menubar
17+
169 1955 {0,-60,1280,22 } [Window Server] Menubar
18+
169 396 {0,-38,1280,25 } [Window Server] Backstop Menubar
19+
169 395 {0,-60,1280,22 } [Window Server] Menubar
20+
169 6 {0,0,0,0 } [Window Server] Cursor
21+
169 4 {0,22,1280,25 } [Window Server] Backstop Menubar
22+
169 3 {0,0,1280,22 } [Window Server] Menubar
23+
169 2 {0,0,1280,800 } [Window Server] Desktop
24+
262 404 {0,-38,1280,38 } [Google Chrome]
25+
262 393 {0,0,1280,800 } [Google Chrome]
26+
262 380 {100,100,1,1 } [Google Chrome] Focus Proxy
27+
262 351 {1189,45,46,18 } [Google Chrome]
28+
262 51 {0,0,1280,800 } [Google Chrome] sjitech/mac_list_windows_pids
29+
262 50 {0,755,1,1 } [Google Chrome]
30+
262 43 {0,0,1280,22 } [Google Chrome]
31+
262 42 {0,0,1280,22 } [Google Chrome]
32+
266 3294 {0,23,1276,777 } [Sublime Text] README.md — mac_list_windows_pids
33+
266 1954 {0,-38,1280,38 } [Sublime Text]
34+
266 1953 {0,0,1280,800 } [Sublime Text]
35+
266 1952 {0,0,1280,800 } [Sublime Text]
36+
266 345 {529,83,116,56 } [Sublime Text]
37+
266 188 {100,100,1,1 } [Sublime Text] Focus Proxy
38+
266 186 {0,0,1280,22 } [Sublime Text]
39+
266 185 {0,0,1280,22 } [Sublime Text]
40+
266 93 {0,0,1280,800 } [Sublime Text] lswin
41+
......
42+
```
43+
44+
## Known problems
4345

4446
Processes created by Safari browser will be displayed as same PID as main Safari process.
4547

4648
https://github.com/sjitech/mac_list_windows_pids/issues/1
47-
48-

0 commit comments

Comments
 (0)