Created
May 21, 2019 00:37
-
-
Save moyashi/f42b231d521edee6247c41c37f4cb1cd to your computer and use it in GitHub Desktop.
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
--タイトル取得からの〜 | |
tell application "Preview" | |
set n to name of window 1 | |
--Window名から全体のページ数と現在のページ数をパースする | |
--それを監視しながらめくっていく | |
end tell | |
--全画面化 | |
tell application "Preview" to activate | |
tell application "System Events" | |
keystroke "f" using {control down, command down} | |
delay 3 | |
end tell | |
--ページめくり | |
tell application "Preview" to activate | |
repeat 10 times | |
tell application "System Events" | |
key code 125 | |
end tell | |
delay 3 | |
end repeat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment