MACSCRPT Archives

January 2010

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Lively <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Tue, 5 Jan 2010 16:18:43 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (21 lines)
On Jan 5, 2010, at 2:05 PM, Chuck Pelto wrote:

> Is it possible to have an applescript change the startup or boot drive and then restart the computer?
> 
> I see the 'restart' verb in the dictionary. But I see no way to designate a change in the boot drive.
> 
> Happy New Year,
> 
> Chuck


The shell command bless can do it.

sudo bless --mount /volumes/OtherDisk --setBoot

or in AppleScript

do shell script "bless --mount /volumes/OtherDisk --setBoot" with administrator privileges

-Mark
hacking nvram is another possibility but that scares me

ATOM RSS1 RSS2