Created
April 18, 2022 13:25
-
-
Save takuoka/5c3e38178f9ad38384660d7ad5d6ab80 to your computer and use it in GitHub Desktop.
AppleScriptで時刻を確認して特定のURLを開く
This file contains hidden or 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
set d to the weekday of the (current date) | |
set h to the hours of the (current date) | |
if d is not in {Sunday, Saturday} then | |
if (8 < h and h < 12) or (18 < h and h < 21) then | |
tell application "Google Chrome" | |
open location "https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" | |
end tell | |
end if | |
end if | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment