Skip to content

Instantly share code, notes, and snippets.

View my key 89.txt
<?xml version="1.0"?>
<root>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_89</name>
<url type="shell">
osascript -e '
set sName to "89"
tell application "System Events"
View script for my key 89.txt
tell application "System Events"
keystroke "c" using command down
delay 0.5
set CopT to (the clipboard as text)
end tell
set AppleScript's text item delimiters to the {" ", ".",",",";","(",")"}
set x to every text item of CopT
addr(x)
to addr(l)
script foo
View script version 2 for my key 89.txt
tell application "System Events"
keystroke "c" using command down
delay 0.5
set CopT to (the clipboard as text)
end tell
set AppleScript's text item delimiters to the {" ", ".", ",", ";", "(", ")"}
set x to every text item of CopT
addr(x)
to addr(l)
script foo
View my key 90.txt
<?xml version="1.0"?>
<root>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_90</name>
<url type="shell">
osascript -e '
set sName to "90"
tell application "System Events"
View my key 82.2.txt
<?xml version="1.0"?>
<root>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_82.2</name>
<url type="shell">
osascript -e '
-- user input
set T1 to {"ocr", "hhh","ap"}
View my key 91.txt
<?xml version="1.0"?>
<root>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_91</name>
<url type="shell">
osascript -e '
set sName to "91"
tell application "System Events"
View my key 92.txt
<?xml version="1.0"?>
<root>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_92</name>
<url type="shell">
osascript -e '
-- user input ('OnOff'-> 0 = Off, 1 = On)
-- group1
View my key 93.txt
<?xml version="1.0"?>
<root>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_93</name>
<url type="shell">
osascript -e '
set sName to "93"
tell application "System Events"
View my key 94.txt
<?xml version="1.0"?>
<root>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_94-1-remove E line and tab</name>
<url type="shell">
osascript -e '
set sName to "94-1"
tell application "System Events"
View my key 87.1.txt
<?xml version="1.0"?>
<root>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_87</name>
<url type="shell">
osascript -e '
set sName to "87"
tell application "System Events"