View Single Post
  #3  
Old 05-27-2006, 01:15 AM
jaimev jaimev is offline
Registered User
 
Join Date: May 2006
Posts: 2
Thanks for the shell script. The line...

Code:
chflags nouchg /Volumes/A/System/Library/CoreServices/BootX;
gave permissions problems for me when I tried executing that script.

What ended up working, though was the following Applescript, which is called by a shell script, which is called by Super Duper

The Applescript:

Code:
tell application "Finder" to exists disk "iMac"

--change the boot volume and restart if the result is true

if the result then do shell script "/usr/sbin/bless -folder '/Volumes/iMac/System/Library/CoreServices' -setOF;/sbin/shutdown -r now" password "admin_password" with administrator privileges --put your admin password in for "admin_password", otherwise it will use a pop up dialog to ask the password.
And the shell script that calls it:

Code:
#! /bin/sh

osascript /Volumes/A010/Users/jaimev/Documents/boot-from-Imac-app.app
Reply With Quote