Skip to content

Instantly share code, notes, and snippets.

@user52839307
user52839307 / slowtyping.applescript
Created April 17, 2023 03:30
This AppleScript emulates typing by outputting the contents of the clipboard with a delay between each keystroke.
(*
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.
*)
@skyisle
skyisle / icloud-ssh
Created February 18, 2012 01:44
Shell script to connect icloud host through ssh
#!/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')