In case you were from the first one million applicant who were able to download and install the public Yosemite beta that Apple offered in the last few days for free.. Â Now maybe you are a hard working Mac user and you need to switch between OS X Mavericks and Yosemite beta so quickly, what should you do ? Thankfully there is a quick way that will make you to switch between Mavericks and yosmeite beta.
Having an easily accessible application for booting into another OS while making a sandwich or refilling a cup of coffee, versus having to wait around to hold down Option, can be highly usefulâ¦
 NOTE: The code for booting into Windows on BootCamp is slightly different, as it adds â -legacyâ just before â -setBoot.â Again, be sure to change the directory from âBOOTCAMPâ if your partition uses a different name
F0r M0re UpDaTing: Be 0ne 0f My New F0ll0wers 0n Twitter [1] , 0ne 0f My New Fan 0n FaceB00k [2] , And Here Is The Feeds .  Having an easily accessible application for booting into another OS while making a sandwich or refilling a cup of coffee, versus having to wait around to hold down Option, can be highly usefulâ¦
STEP 1: Open Scrpit Editor (Application---> Utilities--->Script Editor app) and make a new document.
STEP 2: Simply copy and paste the following code in the AppleScript document:
set deviceID to (do shell script "diskutil list | awk '/Yosemite/ {print $NF}'") do shell script "bless -device /dev/" & deviceID & ¬ " -setBoot -nextonly" with administrator privileges tell application "Finder" to restartIn the first line, change âYosemiteâ to the name of the partition on which the OS you want to automatically boot into is installed. For example, your main OS is likely installed on âMacintosh HD,â so to boot into Mavericks on Macintosh HD, the first line would read:
set deviceID to (do shell script "diskutil list | awk '/Macintosh HD/ {print $NF}'")ÂHere's what it should look like:
 NOTE: The code for booting into Windows on BootCamp is slightly different, as it adds â -legacyâ just before â -setBoot.â Again, be sure to change the directory from âBOOTCAMPâ if your partition uses a different name
set deviceID to (do shell script "diskutil list | awk '/BOOTCAMP/ {print $NF}'") do shell script "bless -device /dev/" & deviceID & ¬ " -legacy -setBoot -nextonly" with administrator privileges tell application "Finder" to restartI recommend configuring scripts to switch among all the OSs on your computer and placing them appropriately in each system partition to take full advantage of the convenience this method offers. If youâre feeling adventurous, you might try using Automator to set up triggers for running the script to further streamline your workflow.Â
No comments:
Post a Comment