Re: startup disk scripting
Re: startup disk scripting
- Subject: Re: startup disk scripting
- From: Michelle Steiner <email@hidden>
- Date: Tue, 5 Jun 2001 14:44:29 -0700
On 6/5/01 12:11 AM, Timothy Bates <email@hidden> wrote:
>
My goal is make an applescript to toggle the startup disk between OS9 and X
>
>
the script (and error) are:
>
tell application "Startup Disk"
>
startup disk alias
>
-->Expected end of line but found class name.
>
end tell
I found that that code crashed the startup disk application/control
panel, but if I wrote
tell application "Startup Disk"
activate
startup disk alias
end tell
It returned the alias to the startup disk.
>
My goal is make an applescript to toggle the startup disk between OS9 and X
Here's a start that works for me; it doesn't toggle, but it does switch
from OS 9 to OS X:
tell application "Startup Disk"
set localboot to true
set netboot to false
set startup disk alias to alias "Dora:"
set startup system folder alias to alias
"Dora:System:Library:CoreServices:BootX"
end tell
tell application "Finder"
restart
end tell
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------