Re: Setting the startup disk.
Re: Setting the startup disk.
- Subject: Re: Setting the startup disk.
- From: David Thorp <email@hidden>
- Date: Fri, 20 Apr 2001 18:23:00 +1000
Dear Michelle (and everyone else),
Thanks for your reply. I copied and pasted your script into my script
editor, changed "Dora:" and "hard disk:..." both to the name of my hard
drive which happens to be "DT HD:", pressed the check syntax button and I
got the following:
1. A message saying "A class name can't go after this application constant
or consideration." (and a cancel button), and
2. It highlighted the words "startup disk alias" in the fourth line of the
script.
Rather dissapointing of course, but I'm sure there's a perfectly good
explanation for it, I just wish I knew what it was! I can't see what's
wrong with the script, since the dictionary for startup disk has all those
commands in it... I'm stumped.
Does anyone have any ideas?
Thanks again,
David.
------------------------------------------------------------------------
David Thorp email@hidden
------------------------------------------------------------------------
"The only stupid question is the one that is never asked, except maybe
'Don't you think it is about time you audited my return?' or 'Isn't it
morally wrong to give me a warning when, in fact, I was speeding?'"
------------------------------------------------------------------------
>
From: Michelle Steiner <email@hidden>
>
Date: Wed, 18 Apr 2001 22:21:08 -0700
>
To: "David Thorp" <email@hidden>,
>
<email@hidden>
>
Subject: Re: Setting the startup disk.
>
>
On 4/18/01 8:33 PM, David Thorp <email@hidden> wrote:
>
>
> I wish to write two AppleScripts for switching between OS 9 and OS X. Both
>
> systems are on the same volume. One script to run in OS 9 for switching the
>
> startup system folder to OS X, the other for doing the reverse.
>
>
here's one that will switch 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 "hard
>
disk: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. |
>
----------------------------------------------------------------------