Automator Scripts to Change Start Disk

Discussion in 'Mac Programming' started by IamNobody, Nov 4, 2007.

  1. macrumors newbie

    Joined:
    Oct 17, 2007
    #1
    Hello,

    Does anyone know any automator workflow to boot an Intel Mac into Windows through Bootcamp ? I've tried recording workflow that clicks the system preferences buttons for the startup disk, but it didn't work. I want to be able to reboot into Windows with a single click.

    Thanks !
    :apple:
     
  2. macrumors newbie

    Joined:
    Feb 10, 2010
    #2
    Automator Script!

    IamNobody:

    In automator, create an application:

    - Add Apple Script

    - Remove any lines that come default, and insert these.

    do shell script "bless -mount /Volumes/EDIT_ME/ -legacy -setBoot -nextonly" password "EDIT_ME" with administrator privileges
    do shell script "shutdown -r now" with administrator privileges

    - Then click the Hammer icon and you should get it in the correct format.

    - Edit the fields EDIT_ME (ex: "BOOTCAMP") to whatever the corresponding values are in your computer. If you do not require a password to change your system settings, then you do not need the (password "EDIT_ME") line.

    - Save!

    If you double click the application you just created, you should go to windows directly.
     
  3. macrumors newbie

    Joined:
    Jul 28, 2009
    #3
    automatically boot from external boot disk

    Hi there,

    I tried this script, to boot the system from another (external) boot disk - mostly because I'm quite annoyed, I always have to type the password (since 10.6) to be able to change the boot volume.
    The system didn't boot though, mentioning something like "no boot volume was found, please enter boot volume and continue with any key"...

    Should I modify this script somehow, in order to have it work with something else but Bootcamp?
    Or does the scripting have to be altered because we have 10.6 now?

    Cheers, FD
     

Share This Page