• 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: OS X to OS 9 restart script...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OS X to OS 9 restart script...


  • Subject: Re: OS X to OS 9 restart script...
  • From: "J.B. Stewart" <email@hidden>
  • Date: Wed, 14 Nov 2001 16:44:14 -0500

On 11/14/01 at 11:28 AM, John C. Welch <email@hidden> wrote:

> On 11/13/2001 19:36, "J.B. Stewart" <email@hidden> wrote:
>
> > I suspect there are a lot of people on this list in the same fix I am. I'm
> > fairly competent with a Mac (and Applescript) or on a PC (yuck) but am a
> > novice
> > at Unix. Those of you out there that know Unix please explain what you post.
I
> > need all the help I can get and so do many others. Cryptic posts only serve
to
> > frustrate.
>
> I wasn't trying to be cryptic. I was pointing you at the tool you need, as a
> sign post.
>
> You have to run bless as root, otherwise, nothing happens. That's in the man
> page for bless. Also in the man page, near the bottom, are some examples.
> What works for me, (a single volume, 9 and X on that volume is)
>
> bless -folder "/System/Library/CoreServices" -folder9 "/System Folder"
> -use9
>
> You have to put the path in quotes, spaces or not. There are also examples
> that give you tips on dealing with multiple volumes, etc. Note, if
> everything is on one volume, the you won't have any entries in /Volumes, so
> that part of the path can and should be ignored. As well, in that case, you
> don't need to supply a drive name.
>
> john
>
> --
> "March or Die"
> - French Foreign Legion
> _______________________________________________
> applescript-users mailing list
> email@hidden
> http://www.lists.apple.com/mailman/listinfo/applescript-users


Thanks to Bill Briggs, Jon Pugh and John C.Welch I finally have a working method
of rebooting between OS 10.1 and OS 9 by AppleScript.

This works from the Script Menu on my laptop.

(* script start *)
set cStr to "sudo bless -folder9 /Volumes/OS9/System\\ Folder -setOF\rsudo
reboot" -- this is a single wrapped line

tell application "Terminal"
do script with command cStr
end tell
(* script end *)

I have the hard drive on my laptop separated into 2 equal partitions, one named
OS9 and the other named OSX

Unfortunately as noted by John C. Welch you must be logged in as root or use
some other method to become a super user. I chose to modify the "/etc/sudoers"
file to keep Terminal from asking for a password but I would not recommend doing
this for everyone as it defeats some security measures.

Note that there are 2 sudo commands in cStr. One sets the folder the other
causes a reboot. These are separated by \r to insert a carriage return.

If you wish to use the above you will need to modify the path portion of cStr
where "OS9" is the name of my hard drive to the appropriate name for your drive.
Put a double backslash (\\) in front of any spaces in your drive's name.

Next you will need to modify the file "/etc/sudoers" using the vi editor (as
root) by entering the command "visudo" in Terminal. The commands "man vi" and
"man sudo" will help you learn to use the editor and learn what you need to add.
This is not for the faint of heart, make a backup copy of "/etc/sudoers" before
editing it.

John


References: 
 >Re: OS X to OS 9 restart script... (From: "John C. Welch" <email@hidden>)

  • Prev by Date: Idle handling questions
  • Next by Date: TECH: MacOS error and browse the internet
  • Previous by thread: Re: OS X to OS 9 restart script...
  • Next by thread: Re: OS X to OS 9 restart script...
  • Index(es):
    • Date
    • Thread