FasdUAS 1.101.10 k l  STARTUP SCRIPT l  # Source: http://herrklein.com  l   l z This is a simple applescript for changing the behaviour of your portable Mac depending on where you are when you start it l f` This is especially useful for mounting servers that are not always available for a portable mac l l wq Do the following for each physical location where you want to change the behaviour of your mac after logging in: l WQ 1. Open terminal under Applications / Utilities and type "ifconfig" (without "") l ga 2. Look for an ip address in the text that appears (An ip address looks like this: 120.110.54.1) l  E? 3. Replace the numbers and dots in each locationtest("") below!" !l"#$ #l% %xr The first two or three numbers separated by dots are probably enough to identify the network you are connected to$&' &l( (a[ (do not use the full ip address to check, as your ip address may change from time to time)')* )l+ +d^ This method is not fool-proof, so you may have to experiment a little before you get it right*,- ,l-./ .l0 0ZT When you are done, you can save this script as an application and then drag it into/12 1l3 3B< System Preferences / Account / Login Items for your account245 4l6 6TN Applications that you want to open wherever you are can also be dragged there578 7l89: 9lH; ;ZH<=>? <I@ 0 locationtest@A AmB B 148.121.189 =l CD Ck EEFG Fl GHI Hl J J BOOTED AT WORK IKL KO MN MI  .miscactv******** Nm OOnullqMail.app^p}>Ihh- 6G\] \=#*^_ ^I#( 0getairportnamegetAirportName _m()` ` HomeNetwork]a al-Dbc bk-Dddef el--fgh gl--i i BOOTED AT HOME hjk jO-7lm lI16 .miscactv******** mm-.nnnull߀ f* Skype.app^'2Ih(HGG /dev/null 2>&1; then echo 'true'; else echo 'false'; fi;wv w rtyp mu u TEXTvz m t t bool lsrsr lqq F@Function for getting the name of the currently connected airport i Ipon p 0getairportnamegetAirportNameon Iml m.sysoexecTEXTTEXT lk m /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport -I | grep ' SSID:' | cut -d ':' -f 2 | tr -d ' 'kl ljiji lhh  Disclaimer: !  lg"g "ke I doubt you will be able to make any trouble for yourself by using this script, but I still have to !#$ #lf%f %c] say that you are using this script at your own risk, and that I assume no responsibility if $&' &le(e ( something should happen')d )lcbcbda*+,-a*`_^ `0 locationtest _ 0getairportnamegetAirportName ^.aevtoappnull****+]\[./Z ]0 locationtest\Y0Y0X X0 testpattern[.W W0 testpattern/  VUTS V rtyp U TEXT T.sysoexecTEXTTEXT S boolZ%%l &,RQP12O R 0getairportnamegetAirportNameQP12N N.sysoexecTEXTTEXTOj -M3LK45J M.aevtoappnull**** 3kH669IILK45 BHOGTF`ns H0 locationtest G.miscactv******** F 0getairportnamegetAirportNameJI*k+*j UO*j UOPY'*j+*j UO*j UOPYhascr ޭ