在位置改变笔记本电脑的Mac OS X壁纸 [英] Change laptop Mac OS X wallpaper upon location

查看:174
本文介绍了在位置改变笔记本电脑的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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆