iChat Status Uptimer └───Macの起動時間をiChatのステータスに表示するアプリです。 これといって、たいしたことはありませんが起動時間対決ができます…。 30秒おきに更新されます。Uptimer
└───Macの起動時間を表示するアプリです。こっちは使いやすいし、便利かな?
この2つのアプリは1日以上起動したMacでないと正しく表示されないバグがあります。
まぁ、普通は1日未満で起動時間計っても面白くないからいっか(笑)
ちなみに、両方ともDockのアプリをコントロール+クリックで強制終了
するなり「⌘+.」で停止しないとループして、普通に終了できません…。
以下、「if」追加で1日未満の起動時間取得に対応したコードです。(041029)
統一されていないので、使うときに適当に改造してください。
repeat
set AAA to (do shell script "uptime")
if AAA contains "day" then
set BBB to word 4 of AAA & "d/" & word 6 of AAA & "h/" & word 7 of AAA & "m/" & "running"
else
if AAA contains "hrs" then
set BBB to "0d/" & word 4 of AAA & "h/" & word 5 of AAA & "m/" & "running"
else
set BBB to "0d/0h" & word 4 of AAA & "m/" & "running"
end if
end if
tell application "iChat"
set status message to the BBB
end tell
delay 30
tell application "iChat"
set status message to the BBB
end tell
end repeat
// iChat Status Menu Switch Auto Apple Script Change ステータス 自動 変更 changer switcher Uptimer Uptime 連続起動時間 表示