Last active
March 14, 2022 08:45
-
-
Save kuronekomichael/7096699 to your computer and use it in GitHub Desktop.
ことえり単語登録に文字を入力するApple Script -- appleScript, apple script, AppleScript
This file contains 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
-- ことえり単語登録(== "WordRegister") | |
tell application "WordRegister" | |
activate | |
end tell | |
tell application "System Events" | |
-- 単語の欄にペースト | |
tell process "WordRegister" | |
click menu item "ペースト" of menu "編集" of menu bar 1 | |
end tell | |
-- 登録 | |
tell application process "WordRegister" | |
tell window 1 | |
tell tab group 1 | |
click button "登録" | |
end tell | |
-- よみに変な文字が入っていると警告が表示されるが、そのまま登録 | |
tell sheet 1 | |
click button "そのまま登録" | |
end tell | |
end tell | |
end tell | |
end tell | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment