5ちゃんねる⇒PC等⇒新・mac@5ch掲示板
設定
ダークモード
広告表示
画像・外部リンク

UPLIFT会員は外部リンクへ直接移動します。確認は初期設定でオンです。

機能のオン・オフ

このブラウザ・このサーバーのみ。オフにしても保存済みデータは残ります。

UPLIFT

itest版
494コメント212KB

【中の人】Automator【小人】3人目 [転載禁止]©5ch.io

垢版
返信 [2]
10.10のスクリプトエディタで、アプリで保存、ハンドラ実行後に終了しない

use framework "AppKit"
on didMount:aNotification
set volName to aNotification's userInfo's |NSWorkspaceVolumeLocalizedNameKey|
using terms from scripting additions
display notification (volName as Unicode text) & " がマウントされたよ"
end using terms from
end didMount:
tell current application
tell my NSWorkspace's sharedWorkspace()'s notificationCenter() to addObserver:me selector:"didMount:" |name|:"NSWorkspaceDidMountNotification" object:(missing value)
end tell

名前・メールを直接入力できます(保存されません)。


ニューススポーツなんでも実況