根据位置更改笔记本电脑 Mac OS X 壁纸 [英] Change laptop Mac OS X wallpaper upon location
本文介绍了根据位置更改笔记本电脑 Mac OS X 壁纸的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想针对我打开笔记本电脑的物理位置显示不同的壁纸.即:在家里我想看墙纸-A,而在办公室我希望它是墙纸-B.
I'd like to display different wallpapers regarding the physical location where I turn on my laptop. I.e.: at home I want to see Wallpaper-A and at office I want it to be Wallpaper-B.
有没有一种方法(一个应用程序,一个 AppleScript)可以检测笔记本电脑的位置(即 wifi 连接)然后更新壁纸?
Is there a way (an App, an AppleScript) that could detect laptop's location (i.e. wifi connection) and then update wallpaper?
我看到了一个 AppleScript,它允许根据一天中的时间这样做:https://github.com/pipwerks/OS-X-Wallpaper-Changer
I saw an AppleScript that allows to do so regarding time of the day: https://github.com/pipwerks/OS-X-Wallpaper-Changer
推荐答案
这对我 10.9 有效
This works for me on 10.9
set mySSID to do shell script "/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport -I|grep \" SSID: \"|cut -c 18-"
if mySSID is equal to "NETWORK_NAME" then
tell application "Finder"
set desktop picture to {"Macintosh HD:Users:USER_NAME:Desktop:IMAGE_NAME.jpg"} as alias
end tell
end if
这篇关于根据位置更改笔记本电脑 Mac OS X 壁纸的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文