• 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: Scripting Startup Disk System Preference in OS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting Startup Disk System Preference in OS X


  • Subject: Re: Scripting Startup Disk System Preference in OS X
  • From: Mr Tea <email@hidden>
  • Date: Fri, 22 Mar 2002 09:07:31 +0000

This from Allen Burnett

>I am wondering if there is anyway to script the startup disk
>control panel in OS X the way you can in 9?

Not directly, Allen, but you can achieve the same ends if you're prepared
to get your hands a little dirty with UNIX.

This script is for rebooting into OS 9 from X. In the first line (do
shell...privileges) you need to replace DISKNAME with the name of the
volume that contains the system folder your want to use, and XXXXXX with
the password that you use when logging in. (If you want to boot into
another installation of OS X, the line will be different - but as I have
just the one X partition, I haven't needed to find out how to do that yet.)

do shell script "/usr/sbin/bless -folder9 '/Volumes/DISKNAME/System
Folder' -setOF" password "XXXXXX" with administrator privileges

ignoring application responses
tell application "Finder" to restart
end ignoring

There are also shell script commands for shutting down/restarting the
computer, but these are pretty brutal. Using the Finder is safer, but
it's essential to use the ignoring block, otherwise the Finder will
remain active waiting for confirmation that all running processes,
including itself, have quit. D'oh.

Mr Tea
--
"Always remember to warm the pot."
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Scripting Startup Disk System Preference in OS X (From: Allen Burnett <email@hidden>)

  • Prev by Date: Is the picture_folder of the screensaver in OS X scriptable?
  • Next by Date: FileMaker Scripting Query
  • Previous by thread: Scripting Startup Disk System Preference in OS X
  • Next by thread: Re: scripting 'mail' from OS X
  • Index(es):
    • Date
    • Thread