• 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: startup disk scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: startup disk scripting


  • Subject: Re: startup disk scripting
  • From: Michelle Steiner <email@hidden>
  • Date: Tue, 5 Jun 2001 14:44:29 -0700

On 6/5/01 12:11 AM, Timothy Bates <email@hidden> wrote:

>My goal is make an applescript to toggle the startup disk between OS9 and X
>
>the script (and error) are:
>tell application "Startup Disk"
> startup disk alias
>-->Expected end of line but found class name.
>end tell

I found that that code crashed the startup disk application/control
panel, but if I wrote

tell application "Startup Disk"
activate
startup disk alias
end tell

It returned the alias to the startup disk.

>My goal is make an applescript to toggle the startup disk between OS9 and X

Here's a start that works for me; it doesn't toggle, but it does switch
from OS 9 to OS X:

tell application "Startup Disk"
set localboot to true
set netboot to false
set startup disk alias to alias "Dora:"
set startup system folder alias to alias
"Dora:System:Library:CoreServices:BootX"
end tell
tell application "Finder"
restart
end tell

--Michelle

----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------


  • Prev by Date: Applescript brings finder to front each time
  • Next by Date: Time manipulation
  • Previous by thread: Re: startup disk scripting
  • Next by thread: File dialog
  • Index(es):
    • Date
    • Thread