Update for initial code
This commit is contained in:
parent
0291da191e
commit
1d754db4e4
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
password.txt
|
10
unlock.as
Normal file
10
unlock.as
Normal file
@ -0,0 +1,10 @@
|
||||
do shell script "caffeinate -u -t 3"
|
||||
set theFile to POSIX file "./password.txt"
|
||||
set theFile to theFile as alias
|
||||
set theFileContents to paragraphs of (read file theFile)
|
||||
|
||||
tell application "System Events"
|
||||
keystroke (item 1 of theFileContents as string)
|
||||
delay 1
|
||||
keystroke return
|
||||
end tell
|
3
unlock.php
Normal file
3
unlock.php
Normal file
@ -0,0 +1,3 @@
|
||||
<?php
|
||||
header("Location: unlock_action.php");
|
||||
?>
|
4
unlock_action.php
Normal file
4
unlock_action.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
echo shell_exec("osascript './unlock.as'");
|
||||
header("Location: unlock_finished.php");
|
||||
?>
|
1
unlock_finished.php
Normal file
1
unlock_finished.php
Normal file
@ -0,0 +1 @@
|
||||
Thank you!
|
Loading…
Reference in New Issue
Block a user