Tuesday 28 January 2014

Scripts

Add scripts to /Library/Scripts directory of the image and to Workgroup Manager on svr-macaroon under Login-Items

  • loginsport.sh (for sport) etc
- automator loginscript created by ISJ & CM:

--------------------
'mount and record who's logged in then unmount
mkdir /Volumes/BarbLoLo

mount_smbfs //AppleMacLogon:mount_smbfs-VolumeShare@barbara.net.marjon.ac.uk/Logonoff$/macs  /Volumes/BarbLoLo
dt5=$(date "+%d%h%Y")

dt6=$(date)
printf "$USER, $HOSTNAME, $dt6\r\n">>/Volumes/BarbLoLo/on-$dt5.txt

umount /volumes/BarbLoLo


'load safari and show pages
open -a /Applications/Safari.app/ http://staffnews
open -a /Applications/Safari.app/ http://hub.marjon.ac.uk

'load shared drive
mkdir /volumes/shareddrive

mount_afp "afp://sportslive:sportslive@svr-mac-urban/Sports Live" /Volumes/shareddrive/

'create alias on desktop
/usr/bin/osascript > /dev/null <<EOT
try
tell application "Finder"
set macSrcPath to POSIX file "/Volumes/shareddrive"
make new alias file at desktop to macSrcPath
end tell
end try
EOT
-----------------
  • personaliseoffice.sh




No comments:

Post a Comment