AppleScript verwandelt jedes NAS in Time Machine Laufwerk

Eine ein­fache Anwendung auf Grundlage eines Apple Scripts soll jedes NAS in ein Time Machine Laufwerk ver­wan­deln können.

Simply down­load this app pack­age and drag your drive onto it. The script adds the drive as a Time Machine capa­ble device and then you can sim­ply add it under Time Machine System Preferences.

The full script is right here if you want to roll your own:

on open names
set volumeName to names as text
set macAddress to (do shell script "ifconfig en0 | grep ether | tr -d '\\011' | sed s/ether// | sed 's/ //g' | sed s/://g")
set hostName to (do shell script "hostname -fs")
tell application "Finder"
set theSize to round (((capacity of startup disk) / 1024 / 1024) / 1024)
end tell

do shell script «defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1″ with admin­is­tra­tor privileges

do shell script «sudo hdiu­til cre­ate –size » & the­Size & » –type SPARSEBUNDLE –nospot­light –vol­name \«Backup of » & host­Name & «\» –fs \«Journaled HFS+\» ~/» & host­Name & «_» & macAd­dress & «.sparse­bun­dle» with admin­is­tra­tor priv­i­leges
do shell script «mv ~/» & host­Name & «_» & macAd­dress & «.sparse­bun­dle /Volumes/» & vol­u­me­Name & «/» with admin­is­tra­tor privileges

tell appli­ca­tion «Finder» to eject volumeName

tell appli­ca­tion «System Preferences»
acti­vate
end tell

tell appli­ca­tion «System Events»
tell appli­ca­tion process «System Preferences»
set front­most to true
click menu item «Time Machine» of menu «View» of menu bar 1
end tell
end tell

end open

via MacOSXHints

… jetzt fehlt mir bloß noch das NAS ;-)

Über frank

Vater von 4 Töchtern (mit 1 Frau), Creative Director, Texter, Journalist, Leser, Mac-Nerd, Jogger

11. November 2009 von frank
Kategorien: Freeware, Geek stuff, Mac, OsX, Praktisch, Tipps, Tricks, Uncategorized | Schlagwörter: , , , | Schreibe einen Kommentar

Schreibe einen Kommentar

Pflichtfelder sind mit * markiert

*