Re: Scripting Startup Disk?
Re: Scripting Startup Disk?
- Subject: Re: Scripting Startup Disk?
- From: Jeff Horton <email@hidden>
- Date: Thu, 27 Sep 2001 11:14:01 -0400
On 9/27/01 9:46 AM, "Todd J McDaniel" <email@hidden> wrote:
>
Anyone sucessfully scripted the Startup Disk Control Panel? I have a simple
>
script:
>
>
tell app "Startup Disk"
>
return startup disk alias as string
>
end tell
>
>
I've gotten it to complile on a 9.1 box, but it always crashes a 9.2.1 box.
>
Anyone doing anything with it these days?
>
>
--
>
Todd McDaniel
>
_______________________________________________
>
applescript-users mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/applescript-users
>
Here is something that I made to change my startup disk to OSX..It may help.
tell application "Startup Disk"
activate
set startup system folder alias to alias "Macintosh
HD:System:Library:CoreServices:BootX"
quit
end tell
display dialog "Restart Mac with OSX?" buttons {"No", "Yes"} default button
2
set butt to button returned of result as text
if butt is "No" then return 0
if butt is "Yes" then
tell application "Finder"
restart
end tell
end if