Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0"?>
<root>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_97</name>
<url type="shell">
osascript -e '
-- user input
set myAppleScript to ""
<?xml version="1.0"?>
<root>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_75.5-1</name>
<url type="shell">
osascript -e '
try
if application "Firefox" is not running then
do shell script "> ~/Desktop/mykey75checkfirefox12345678987654321.txt"
end if
set Replace_Me to "abc"
-- user input (up to 30) - position, size and name of window
set input1 to Replace_Me
set input2 to Replace_Me
set input3 to Replace_Me
set input4 to Replace_Me
set input5 to Replace_Me
set input6 to Replace_Me
set input7 to Replace_Me
set input8 to Replace_Me
<?xml version="1.0"?>
<root>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_81.2</name>
<url type="shell">
osascript -e '
-- user input
set T1 to {"ocr", "hhh", "ap"}
set T2 to {"optical...", "hello", "AppleScript"}
-- end of user input
<?xml version="1.0"?>
<root>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_82.3</name>
<url type="shell">
osascript -e '
-- user input
set myAppleScript to ""
-- tested version: Finder 10.10.4
set Replace_Me to "abc"
-- user input (up to 20)
set input1 to Replace_Me
set input2 to Replace_Me
set input3 to Replace_Me
set input4 to Replace_Me
set input5 to Replace_Me
set input6 to Replace_Me
set input7 to Replace_Me
-- user input - NameStarts (up to 20)
set NameStarts1 to {"", ""}
set NameStarts2 to {"", ""}
set NameStarts3 to {"", ""}
set NameStarts4 to {"", ""}
set NameStarts5 to {"", ""}
set NameStarts6 to {"", ""}
set NameStarts7 to {"", ""}
set NameStarts8 to {"", ""}
set NameStarts9 to {"", ""}
try
tell application "Firefox"
activate
end tell
delay 1
tell application "System Events"
set activeApp to (get name of first process where it is frontmost)
repeat 300 times
tell application "Firefox"
activate
-- user options
set Convert_Text to "off" -- "on" or "off" | If text contains " or \ or if shortcut is not replaced with your text, set Convert_Text to "on" and copy text from 'Result' tab of Script Editor. | To run script, set Convert_Text to "off".
-- end of user options
-- user input (shortcuts)
set T1_1 to ""
set T1_2 to ""
set T1_3 to ""
set T1_4 to ""
set T1_5 to ""
set T1_6 to ""
-- user input (shortcuts)
set T1 to {"", ""}
-- end of user input (shortcuts)
set MaxLen to 0
repeat with x from 1 to count T1
if (item x of T1) is not "" then
set Lenx to length of (item x of T1) as integer
if Lenx > MaxLen then
set MaxLen to Lenx
end if