by shigemk2

当面は技術的なことしか書かない

AppleScript習作

ワークライフバランス()向上のために定時すぎたらダイアログが表示されるようにした - ( ꒪⌓꒪) ゆるよろ日記

set hour to hours of (current date)

try
	tell application (path to frontmost application as text)
		if hour = 20 then
			set msg to "( ꒪⌓꒪) もういい時間だしさっさと帰れよカスwww"
			display dialog msg
		else if hour = 21 then
			set msg to "( ꒪⌓꒪)おいダラダラ作業してんじゃねーよwwwクズがwww"
			display dialog msg
		else if hour = 22 then
			set msg to "こんな時間まで作業してるとかwwww生産性m9( ꒪⌓꒪)"
			display dialog msg
		else if hour = 23 then
			set msg to "( ꒪⌓꒪)そろそろ帰宅難民なんじゃね?社蓄乙www"
			display dialog msg
		else if hour = 24 then
			set msg to "( ꒪⌓꒪)なにムキになって仕事してんの?社蓄www"
			display dialog msg
		end if
	end tell
end try