-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtype.js
More file actions
39 lines (36 loc) · 810 Bytes
/
type.js
File metadata and controls
39 lines (36 loc) · 810 Bytes
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
const { spawn } = require('child_process')
const s = `
on type(the_string)
tell application "System Events"
repeat with the_character in the_string
keystroke the_character
delay (random number from 0.05 to 0.10)
end repeat
key code 36
end tell
end type
on typeInstant(the_string)
tell application "System Events"
keystroke the_string
key code 36
end tell
end type
activate application "Terminal"
type("mnp -I")
delay 0.5
typeInstant("1c3fa196701b45d66eea507082b1787f52d3d108")
delay 0.5
type("artdecocode")
delay 0.5
typeInstant("")
delay 0.5
typeInstant("")
delay 0.5
type("https://artdeco.bz")
delay 0.5
type("Art Deco Code Limited")
`
// type("mnp")
// set the_string to "A test package to show the capabilities."
// type(the_string)
spawn('osascript', ['-e', s])