Does this mean you can boot directly from an external drive with windows on it?
I have not tried that, but i will when i receive my new SSD and take the HDD out. Ill attach it to my seagate thunderbolt adapter.
I have replaced my Optical Drive with a second HDD and on that second HDD i have only my bootcamp windows. So there was no reason for me to have it constantly spinning when i would never use it logged in to OSX. I hardly ever use windows since it is horrible on battery and OSX just works better.
So the applescript code that i made will eject the windows HDD when OSX starts this way it will use less battery and also i don't have to listen to that loud spinning noise which is one reason i got an SSD. I just ended up getting a second SSD because i got used to my main drive and using windows on the HDD that came with my MBP just seemed too slow.
So the code just ejects the drive on OSX boot.