Jump to content

Restart to-app


Greggen
 Share

1 post in this topic

Recommended Posts

Been putting together a little Restart to-app. It's just simple Applescript and the code might be rubbish (this ain't my area of expertise) but it works, at least for me.

 

The way it works is that it depends on 3 different org.chameleon.Boot.plist-files in your Extra-folder and then it just renames them so the desired one is used.

 

Here is my plist file that halts on the bootloader:

<key>EthernetBuiltIn</key>
<string>Yes</string>
<key>Graphics Mode</key>
<string>1920x1200x32</string>
<key>GraphicsEnabler</key>
<string>Yes</string>
<key>Theme</key>
<string>Default</string>
<key>UseKernelCache</key>
<string>Yes</string>

 

In the ones I use to boot strait to OSX or Windows i just add (with the correct Default Partition for the drive of course):

<key>Default Partition</key>
<string>hd(0,3)</string>
<key>Timeout</key>
<string>1</string>
<key>GUI</key>
<string>No</string>

 

The reason I use GUI=No is because the timeout with GUI is slow as hell for me. And the reason I use Timeout instead of Quiet Boot is because you can't edit the files (change the names) in Windows without installing a bunch of {censored} so you can read HFS, instead you'll have to be quick and abort the Timeout.

 

The two copies should be named org.chameleon.Boot.plist.osx and org.chameleon.Boot.plist.win.

 

Now you're almost ready to use it. You just have to open the app with applescript-editor and change the top line to the path of your extra-folder.

 

Start up the app, choose what to restart to and click Restart. This option will be permanent till the next time you change it. It sucks, I know but I can't do better then this, sorry XD. So whats the reason to use it if it doesn't only apply to the next restart? Well, I want my computer to boot OSX 90% of the time. With this I don't have to make an active choice in the bootloader and the few times I want to restart to Windows I don't have to bash the keys to abort a countdown (instead I can visit the bathroom or grab o cup of coffee, hehe).

 

I also made an even smaller script, which I add to my startup items, that reverts the restart option to OSX every time OSX boots.

So a scenario could be:

Restart to Windows -> endless loop of Windows restarts (Windows Update anyone?) -> Abort countdown -> Start OSX -> Endless restarts of OSX

 

And oh, If you find this the slightest useful and know your way around X-Code or something. Feel free to do whatever you like, just repost it here afterwords =D

 

RestartTo.zip

Link to comment
Share on other sites

 Share

×
×
  • Create New...