人気ブログランキング | 話題のタグを見る
デスクトップピクチャを変更 - 3
システム環設定を開かずにデスクトップピクチャを選択→変更するAppleScript のサンプル。僕のテスト環境はOS 10.5。
property commentTags : {"海", "霧", "パセリ"}

set xdr5 to a reference to "HD1:Users:nobio:Pictures:nobitopPictures"
tell application "Finder"
activate
choose from list commentTags with prompt "Select Picture." with multiple selections allowed
set theSelct to result
set theSelct to theSelct as string
if theSelct is "海" then
set desktop picture to document file "海1.jpg" of folder xdr5
end if
if theSelct is "霧" then
set desktop picture to document file "Sea Mist.jpg" of folder xdr5
end if
if theSelct is "パセリ" then
set desktop picture to document file "パセリ03.jpg" of folder xdr5
end if
end tell

by nobiox | 2011-01-11 18:47 | ├バカスクリプト |
<< AppleScriptで今日の日付 | デスクトップピクチャを変更 - 2 >>