Setting the startup disk.
Setting the startup disk.
- Subject: Setting the startup disk.
- From: David Thorp <email@hidden>
- Date: Thu, 19 Apr 2001 13:33:54 +1000
Greetings all,
I've just signed up to this list, on the advice of Apple Support.
If you want all the details of my question read the whole thing, but if you
don't like reading long emails, then just read this first bit. It's pretty
simple:
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.
--------------------------------
If you want any more lengthy details about what I've tried to do so far, go
ahead and read on...
Switching to the OS X System folder in the OS 9 Startup Disk control panel
works without a hitch. Switching to the OS 9 System Folder from in the OS X
System Preferences works without a hitch. But writing the applescripts is
proving unfruitful.
The two AppleScripts I want to write are:
The first will run under OS 9 and needs to set my startup system folder to
my OS X system folder.
The second will run under OS X and needs to set my startup system folder to
my OS 9 System Folder.
I have the following script already created for the first (under OS 9):
tell application "Startup Disk"
set startup system folder alias to (("DT HD:System:") as alias)
end tell
(please note that the name of my hard drive is "DT HD")
When I run this I get the following error message:
Startup Disk got an error: Can't set startup system folder alias to alias
"DT HD: System:".
I know that I've spelt everything right because when I run a script asking
to "get startup system foler alias" it gives me the expected result, and I
copied and pasted it into the 'set' script.
I have heard rumours that there may be issues where it doesn't know how to
set to an OS X system. But that issue is not the problem above, because I
get the same error message even if I ask it to set the startup system folder
to my OS 9 system folder.
I phoned Apple support today, and spoke to their resident applescript guru,
and he couldn't get his to work either. He got exactly the same error
message, and he emailed me his scripts to see if we were writing the same
thing, and we were.
I haven't even started trying to write the second applescript (for switching
it back to OS 9 from in OS X) so any advice on that would certainly be
welcome. But please at least tell me what's wrong with the first script.
Thank you in advance for any help.
------------------------------------------------------------------------
David Thorp email@hidden
------------------------------------------------------------------------
"Think of the biggest number you can. Now add five. Then, imagine if you
had that many Tim Tams. Wow, that's five more than the biggest number
you could come up with!"
------------------------------------------------------------------------