• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AppleScript and the Startup Disk control panel...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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?


  • Follow-Ups:
    • Re: AppleScript and the Startup Disk control panel...
      • From: Emmanuel <email@hidden>
  • Prev by Date: portfolio 5 close gallery with saving?
  • Next by Date: Re: Setting Access privileges
  • Previous by thread: Re: AppleScript and the Startup Disk control panel...
  • Next by thread: Re: AppleScript and the Startup Disk control panel...
  • Index(es):
    • Date
    • Thread