« 模様がすごい雲 - 地震雲? | メイン | HandBrake »

iChat Status Uptimer & Uptimer

iChat Status Uptimer  └───Macの起動時間をiChatのステータスに表示するアプリです。      これといって、たいしたことはありませんが起動時間対決ができます…。      30秒おきに更新されます。

     Download

Uptimer
 └───Macの起動時間を表示するアプリです。こっちは使いやすいし、便利かな?

     Download


この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 連続起動時間 表示

トラックバック

このエントリーのトラックバックURL:
http://www.shofoo.com/mt/mt-tb.cgi/89

この一覧は、次のエントリーを参照しています: iChat Status Uptimer & Uptimer:

» Uptime_Setter V1.0 送信元 ray+log

コメントを投稿

(いままで、ここでコメントしたことがないときは、コメントを表示する前にこのブログのオーナーの承認が必要になることがあります。承認されるまではコメントは表示されません。そのときはしばらく待ってください。)

About