Re: AppleScript and the Startup Disk control panel...
Re: AppleScript and the Startup Disk control panel...
- Subject: Re: AppleScript and the Startup Disk control panel...
- From: "John S. Baltutis" <email@hidden>
- Date: Sun, 5 Aug 2001 23:55:36 -0700
At 13:48:37 -0400 on 8/5/01, Scott Barber wrote:
I have this sample script:
tell application "Startup Disk"
set startup disk alias to alias "Macintosh HD:"
end tell
Despite the fact that Macintosh HD exists, this script will NOT compile.
I am using AppleScript 1.6 under Mac OS 9.1.
******
Interestingly, I tried the following w/AS 1.6, MacOS 9.1, and
CarbonLib 1.4 using my disk's name:
tell application "Startup Disk"
activate
set localboot to true
set netboot to false
set <<class disk>> to alias "John's Mac:"
set <<class sysf>> to alias "John's Mac:System Folder:System"
quit
end tell
tell application "Finder" to restart
<<class disk>> and <<class sysf>> are what you get when you record
the actions in script editor. However, it didn't compile, giving this
error:
"Can't set +class disk; to alias "John's Mac:" Access not allowed."
I also tried Michelle Steiner's script and got the "A class name
can't go after this application constant or consideration" error with
respect to the "startup disk alias" constant. Any other thoughts?