Repository navigation
Expand file tree
/
Copy pathdocs.json
More file actions
430 lines (402 loc) · 17.7 KB
/
Copy pathdocs.json
File metadata and controls
430 lines (402 loc) · 17.7 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
[
{
"Constant" : [
],
"submodules" : [
],
"Function" : [
],
"Variable" : [
{
"doc" : "Every constant the Spoon uses, in one table. Timings are in seconds and\ndistances in points. Change a value before calling `start()`; the sources\nread the table when they start, not when they are registered.",
"stripped_doc" : [
"Every constant the Spoon uses, in one table. Timings are in seconds and",
"distances in points. Change a value before calling `start()`; the sources",
"read the table when they start, not when they are registered."
],
"def" : "PlatinumSnd.tuning",
"desc" : "Every constant the Spoon uses, in one table. Timings are in seconds and",
"notes" : [
],
"signature" : "PlatinumSnd.tuning",
"type" : "Variable",
"returns" : [
],
"name" : "tuning",
"parameters" : [
]
}
],
"stripped_doc" : [
],
"type" : "Module",
"Deprecated" : [
],
"desc" : "Mac OS 9 Platinum interface sounds for modern macOS.",
"Constructor" : [
],
"doc" : "Mac OS 9 Platinum interface sounds for modern macOS.",
"Method" : [
{
"doc" : "Starts making sounds. Loads the sound pack, installs the accessibility\ntimeout and starts every source. Does nothing if already running, and\nrefuses to start without Accessibility permission, alerting once and\nraising the system prompt instead.\n\nParameters:\n * None\n\nReturns:\n * The PlatinumSnd object",
"stripped_doc" : [
"Starts making sounds. Loads the sound pack, installs the accessibility",
"timeout and starts every source. Does nothing if already running, and",
"refuses to start without Accessibility permission, alerting once and",
"raising the system prompt instead.",
""
],
"def" : "PlatinumSnd:start()",
"desc" : "Starts making sounds. Loads the sound pack, installs the accessibility",
"notes" : [
],
"signature" : "PlatinumSnd:start()",
"type" : "Method",
"returns" : [
" * The PlatinumSnd object"
],
"name" : "start",
"parameters" : [
" * None",
""
]
},
{
"doc" : "Stops making sounds, and stops costing anything. Every event tap, timer,\nwatcher and accessibility observer is torn down and the process-wide\naccessibility timeout is handed back, so a stopped Spoon is inert rather\nthan muted. Does nothing if not running.\n\nParameters:\n * None\n\nReturns:\n * The PlatinumSnd object",
"stripped_doc" : [
"Stops making sounds, and stops costing anything. Every event tap, timer,",
"watcher and accessibility observer is torn down and the process-wide",
"accessibility timeout is handed back, so a stopped Spoon is inert rather",
"than muted. Does nothing if not running.",
""
],
"def" : "PlatinumSnd:stop()",
"desc" : "Stops making sounds, and stops costing anything. Every event tap, timer,",
"notes" : [
],
"signature" : "PlatinumSnd:stop()",
"type" : "Method",
"returns" : [
" * The PlatinumSnd object"
],
"name" : "stop",
"parameters" : [
" * None",
""
]
},
{
"doc" : "Starts the Spoon if it is stopped, stops it if it is running, and shows an\nalert saying which of those actually happened.\n\nParameters:\n * None\n\nReturns:\n * The PlatinumSnd object",
"stripped_doc" : [
"Starts the Spoon if it is stopped, stops it if it is running, and shows an",
"alert saying which of those actually happened.",
""
],
"def" : "PlatinumSnd:toggle()",
"desc" : "Starts the Spoon if it is stopped, stops it if it is running, and shows an",
"notes" : [
],
"signature" : "PlatinumSnd:toggle()",
"type" : "Method",
"returns" : [
" * The PlatinumSnd object"
],
"name" : "toggle",
"parameters" : [
" * None",
""
]
},
{
"doc" : "Binds the Spoon's hotkeys. One action is available, `toggle`.\n\nParameters:\n * mapping - A table mapping action names to a {mods, key} pair, for\n example `{toggle = {{\"cmd\", \"alt\", \"ctrl\"}, \"9\"}}`\n\nReturns:\n * The PlatinumSnd object",
"stripped_doc" : [
"Binds the Spoon's hotkeys. One action is available, `toggle`.",
""
],
"def" : "PlatinumSnd:bindHotkeys(mapping)",
"desc" : "Binds the Spoon's hotkeys. One action is available, `toggle`.",
"notes" : [
],
"signature" : "PlatinumSnd:bindHotkeys(mapping)",
"type" : "Method",
"returns" : [
" * The PlatinumSnd object"
],
"name" : "bindHotkeys",
"parameters" : [
" * mapping - A table mapping action names to a {mods, key} pair, for",
" example `{toggle = {{\"cmd\", \"alt\", \"ctrl\"}, \"9\"}}`",
""
]
},
{
"doc" : "Logs the sound each event would play instead of playing it. Lines look\nlike `AXCheckBox -> checkbox.press (chkp)`, which is how you find out why\nsomething sounded wrong.\n\nParameters:\n * enabled - true to log instead of play, false to go back to sounding\n\nReturns:\n * The PlatinumSnd object",
"stripped_doc" : [
"Logs the sound each event would play instead of playing it. Lines look",
"like `AXCheckBox -> checkbox.press (chkp)`, which is how you find out why",
"something sounded wrong.",
""
],
"def" : "PlatinumSnd:dryRun(enabled)",
"desc" : "Logs the sound each event would play instead of playing it. Lines look",
"notes" : [
],
"signature" : "PlatinumSnd:dryRun(enabled)",
"type" : "Method",
"returns" : [
" * The PlatinumSnd object"
],
"name" : "dryRun",
"parameters" : [
" * enabled - true to log instead of play, false to go back to sounding",
""
]
},
{
"doc" : "Plays every sound in the pack in sequence, printing each name to the\nConsole as it goes. Takes a bit over a minute. Use it to confirm the pack\nloaded and to learn what each of the four letter names sounds like.\n\nParameters:\n * None\n\nReturns:\n * The PlatinumSnd object",
"stripped_doc" : [
"Plays every sound in the pack in sequence, printing each name to the",
"Console as it goes. Takes a bit over a minute. Use it to confirm the pack",
"loaded and to learn what each of the four letter names sounds like.",
""
],
"def" : "PlatinumSnd:audition()",
"desc" : "Plays every sound in the pack in sequence, printing each name to the",
"notes" : [
],
"signature" : "PlatinumSnd:audition()",
"type" : "Method",
"returns" : [
" * The PlatinumSnd object"
],
"name" : "audition",
"parameters" : [
" * None",
""
]
},
{
"doc" : "Runs a diagnostic harness against the live Hammerspoon: permissions, the\nsound pack, the accessibility assumptions the design rests on, the\ndecision chain over whatever is on screen, the cache hit rate, and\nteardown. Writes a report to the Desktop and prints it to the Console. It\nmoves the cursor briefly and puts it back, and touches nothing else of\nyours.\n\nParameters:\n * opts - An optional table. `guided = true` adds the steps that need you\n to open a menu or drag a file. `delay = 10` waits that many seconds\n before starting, so another application can be brought to the front\n for the accessibility walk.\n\nReturns:\n * None",
"stripped_doc" : [
"Runs a diagnostic harness against the live Hammerspoon: permissions, the",
"sound pack, the accessibility assumptions the design rests on, the",
"decision chain over whatever is on screen, the cache hit rate, and",
"teardown. Writes a report to the Desktop and prints it to the Console. It",
"moves the cursor briefly and puts it back, and touches nothing else of",
"yours.",
""
],
"def" : "PlatinumSnd:diagnose([opts])",
"desc" : "Runs a diagnostic harness against the live Hammerspoon: permissions, the",
"notes" : [
],
"signature" : "PlatinumSnd:diagnose([opts])",
"type" : "Method",
"returns" : [
" * None"
],
"name" : "diagnose",
"parameters" : [
" * opts - An optional table. `guided = true` adds the steps that need you",
" to open a menu or drag a file. `delay = 10` waits that many seconds",
" before starting, so another application can be brought to the front",
" for the accessibility walk.",
""
]
}
],
"Command" : [
],
"Field" : [
],
"items" : [
{
"doc" : "Every constant the Spoon uses, in one table. Timings are in seconds and\ndistances in points. Change a value before calling `start()`; the sources\nread the table when they start, not when they are registered.",
"stripped_doc" : [
"Every constant the Spoon uses, in one table. Timings are in seconds and",
"distances in points. Change a value before calling `start()`; the sources",
"read the table when they start, not when they are registered."
],
"def" : "PlatinumSnd.tuning",
"desc" : "Every constant the Spoon uses, in one table. Timings are in seconds and",
"notes" : [
],
"signature" : "PlatinumSnd.tuning",
"type" : "Variable",
"returns" : [
],
"name" : "tuning",
"parameters" : [
]
},
{
"doc" : "Plays every sound in the pack in sequence, printing each name to the\nConsole as it goes. Takes a bit over a minute. Use it to confirm the pack\nloaded and to learn what each of the four letter names sounds like.\n\nParameters:\n * None\n\nReturns:\n * The PlatinumSnd object",
"stripped_doc" : [
"Plays every sound in the pack in sequence, printing each name to the",
"Console as it goes. Takes a bit over a minute. Use it to confirm the pack",
"loaded and to learn what each of the four letter names sounds like.",
""
],
"def" : "PlatinumSnd:audition()",
"desc" : "Plays every sound in the pack in sequence, printing each name to the",
"notes" : [
],
"signature" : "PlatinumSnd:audition()",
"type" : "Method",
"returns" : [
" * The PlatinumSnd object"
],
"name" : "audition",
"parameters" : [
" * None",
""
]
},
{
"doc" : "Binds the Spoon's hotkeys. One action is available, `toggle`.\n\nParameters:\n * mapping - A table mapping action names to a {mods, key} pair, for\n example `{toggle = {{\"cmd\", \"alt\", \"ctrl\"}, \"9\"}}`\n\nReturns:\n * The PlatinumSnd object",
"stripped_doc" : [
"Binds the Spoon's hotkeys. One action is available, `toggle`.",
""
],
"def" : "PlatinumSnd:bindHotkeys(mapping)",
"desc" : "Binds the Spoon's hotkeys. One action is available, `toggle`.",
"notes" : [
],
"signature" : "PlatinumSnd:bindHotkeys(mapping)",
"type" : "Method",
"returns" : [
" * The PlatinumSnd object"
],
"name" : "bindHotkeys",
"parameters" : [
" * mapping - A table mapping action names to a {mods, key} pair, for",
" example `{toggle = {{\"cmd\", \"alt\", \"ctrl\"}, \"9\"}}`",
""
]
},
{
"doc" : "Runs a diagnostic harness against the live Hammerspoon: permissions, the\nsound pack, the accessibility assumptions the design rests on, the\ndecision chain over whatever is on screen, the cache hit rate, and\nteardown. Writes a report to the Desktop and prints it to the Console. It\nmoves the cursor briefly and puts it back, and touches nothing else of\nyours.\n\nParameters:\n * opts - An optional table. `guided = true` adds the steps that need you\n to open a menu or drag a file. `delay = 10` waits that many seconds\n before starting, so another application can be brought to the front\n for the accessibility walk.\n\nReturns:\n * None",
"stripped_doc" : [
"Runs a diagnostic harness against the live Hammerspoon: permissions, the",
"sound pack, the accessibility assumptions the design rests on, the",
"decision chain over whatever is on screen, the cache hit rate, and",
"teardown. Writes a report to the Desktop and prints it to the Console. It",
"moves the cursor briefly and puts it back, and touches nothing else of",
"yours.",
""
],
"def" : "PlatinumSnd:diagnose([opts])",
"desc" : "Runs a diagnostic harness against the live Hammerspoon: permissions, the",
"notes" : [
],
"signature" : "PlatinumSnd:diagnose([opts])",
"type" : "Method",
"returns" : [
" * None"
],
"name" : "diagnose",
"parameters" : [
" * opts - An optional table. `guided = true` adds the steps that need you",
" to open a menu or drag a file. `delay = 10` waits that many seconds",
" before starting, so another application can be brought to the front",
" for the accessibility walk.",
""
]
},
{
"doc" : "Logs the sound each event would play instead of playing it. Lines look\nlike `AXCheckBox -> checkbox.press (chkp)`, which is how you find out why\nsomething sounded wrong.\n\nParameters:\n * enabled - true to log instead of play, false to go back to sounding\n\nReturns:\n * The PlatinumSnd object",
"stripped_doc" : [
"Logs the sound each event would play instead of playing it. Lines look",
"like `AXCheckBox -> checkbox.press (chkp)`, which is how you find out why",
"something sounded wrong.",
""
],
"def" : "PlatinumSnd:dryRun(enabled)",
"desc" : "Logs the sound each event would play instead of playing it. Lines look",
"notes" : [
],
"signature" : "PlatinumSnd:dryRun(enabled)",
"type" : "Method",
"returns" : [
" * The PlatinumSnd object"
],
"name" : "dryRun",
"parameters" : [
" * enabled - true to log instead of play, false to go back to sounding",
""
]
},
{
"doc" : "Starts making sounds. Loads the sound pack, installs the accessibility\ntimeout and starts every source. Does nothing if already running, and\nrefuses to start without Accessibility permission, alerting once and\nraising the system prompt instead.\n\nParameters:\n * None\n\nReturns:\n * The PlatinumSnd object",
"stripped_doc" : [
"Starts making sounds. Loads the sound pack, installs the accessibility",
"timeout and starts every source. Does nothing if already running, and",
"refuses to start without Accessibility permission, alerting once and",
"raising the system prompt instead.",
""
],
"def" : "PlatinumSnd:start()",
"desc" : "Starts making sounds. Loads the sound pack, installs the accessibility",
"notes" : [
],
"signature" : "PlatinumSnd:start()",
"type" : "Method",
"returns" : [
" * The PlatinumSnd object"
],
"name" : "start",
"parameters" : [
" * None",
""
]
},
{
"doc" : "Stops making sounds, and stops costing anything. Every event tap, timer,\nwatcher and accessibility observer is torn down and the process-wide\naccessibility timeout is handed back, so a stopped Spoon is inert rather\nthan muted. Does nothing if not running.\n\nParameters:\n * None\n\nReturns:\n * The PlatinumSnd object",
"stripped_doc" : [
"Stops making sounds, and stops costing anything. Every event tap, timer,",
"watcher and accessibility observer is torn down and the process-wide",
"accessibility timeout is handed back, so a stopped Spoon is inert rather",
"than muted. Does nothing if not running.",
""
],
"def" : "PlatinumSnd:stop()",
"desc" : "Stops making sounds, and stops costing anything. Every event tap, timer,",
"notes" : [
],
"signature" : "PlatinumSnd:stop()",
"type" : "Method",
"returns" : [
" * The PlatinumSnd object"
],
"name" : "stop",
"parameters" : [
" * None",
""
]
},
{
"doc" : "Starts the Spoon if it is stopped, stops it if it is running, and shows an\nalert saying which of those actually happened.\n\nParameters:\n * None\n\nReturns:\n * The PlatinumSnd object",
"stripped_doc" : [
"Starts the Spoon if it is stopped, stops it if it is running, and shows an",
"alert saying which of those actually happened.",
""
],
"def" : "PlatinumSnd:toggle()",
"desc" : "Starts the Spoon if it is stopped, stops it if it is running, and shows an",
"notes" : [
],
"signature" : "PlatinumSnd:toggle()",
"type" : "Method",
"returns" : [
" * The PlatinumSnd object"
],
"name" : "toggle",
"parameters" : [
" * None",
""
]
}
],
"name" : "PlatinumSnd"
}
]