This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* | |
This AppleScript emulates typing by outputting the contents of the clipboard | |
with a delay between each keystroke, making it appear more like actual human typing. | |
The script retrieves the formatted clipboard contents as plain text and outputs each character | |
as a keystroke with a 0.1 second delay using the `keystroke` and `delay` commands in a `repeat` loop. | |
You can adjust the delay time to be shorter or longer by changing the value in the delay command. | |
*) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ ! -n "$1" ] | |
then | |
echo "Usage: `basename $0` hostname" | |
exit $E_BADARGS | |
fi | |
HOSTNAME=$1 | |
DOMAIN=$(echo show Setup:/Network/BackToMyMac | scutil | sed -n 's/.* : *\(.*\).$/\1/p') |