Skip to content

Instantly share code, notes, and snippets.

@takuoka
Created April 18, 2022 13:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takuoka/5c3e38178f9ad38384660d7ad5d6ab80 to your computer and use it in GitHub Desktop.
Save takuoka/5c3e38178f9ad38384660d7ad5d6ab80 to your computer and use it in GitHub Desktop.
AppleScriptで時刻を確認して特定のURLを開く
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