• 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?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting Startup Disk?


  • Subject: Re: Scripting Startup Disk?
  • From: Jeff Horton <email@hidden>
  • Date: Thu, 27 Sep 2001 11:14:01 -0400

On 9/27/01 9:46 AM, "Todd J McDaniel" <email@hidden> wrote:

> Anyone sucessfully scripted the Startup Disk Control Panel? I have a simple
> script:
>
> tell app "Startup Disk"
> return startup disk alias as string
> end tell
>
> I've gotten it to complile on a 9.1 box, but it always crashes a 9.2.1 box.
> Anyone doing anything with it these days?
>
> --
> Todd McDaniel
> _______________________________________________
> applescript-users mailing list
> email@hidden
> http://www.lists.apple.com/mailman/listinfo/applescript-users
>
Here is something that I made to change my startup disk to OSX..It may help.

tell application "Startup Disk"
activate
set startup system folder alias to alias "Macintosh
HD:System:Library:CoreServices:BootX"
quit
end tell

display dialog "Restart Mac with OSX?" buttons {"No", "Yes"} default button
2
set butt to button returned of result as text
if butt is "No" then return 0
if butt is "Yes" then
tell application "Finder"
restart
end tell
end if


References: 
 >Scripting Startup Disk? (From: Todd J McDaniel <email@hidden>)

  • Prev by Date: Illustrator 9 Duplicate Command
  • Next by Date: Re: Time
  • Previous by thread: Scripting Startup Disk?
  • Next by thread: Re: Scripting Startup Disk?
  • Index(es):
    • Date
    • Thread