<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>rainbowlazer &#187; Operating Systems</title>
	<atom:link href="http://rainbowlazer.com/category/os/feed/" rel="self" type="application/rss+xml" />
	<link>http://rainbowlazer.com</link>
	<description>art, design &#38; new media technotes</description>
	<lastBuildDate>Fri, 02 Jul 2010 18:10:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>DIY 3-axis CNC Mill/Enhanced Machine Controller</title>
		<link>http://rainbowlazer.com/3d/rhino/diy-3-axis-cnc-millenhanced-machine-controller/</link>
		<comments>http://rainbowlazer.com/3d/rhino/diy-3-axis-cnc-millenhanced-machine-controller/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 02:12:20 +0000</pubDate>
		<dc:creator>Chris Reilly</dc:creator>
				<category><![CDATA[CNC Fabrication]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Rapid Prototyping]]></category>
		<category><![CDATA[Rhino]]></category>

		<guid isPermaLink="false">http://rainbowlazer.com/?p=44</guid>
		<description><![CDATA[This project has moved! Check out the latest version of the DIYLILCNC, complete with free plans and CAD files!
Taylor and I have been working on a DIY 3-axis CNC mill over the last few months. I&#8217;m posting this mostly to brag :), but also as an excuse to do some documenting on the process that [...]]]></description>
			<content:encoded><![CDATA[<p>This project has moved! Check out the latest version of the <a href="http://www.diylilcnc.org" target="_blank">DIYLILCNC</a>, complete with free plans and CAD files!</p>
<p><span style="text-decoration: line-through;"><a href="http://www.taylorhokanson.com/" target="_blank">Taylor</a> and I have been working on a <a href="http://www.instructables.com/id/How-to-Make-a-Three-Axis-CNC-Machine-Cheaply-and-/" target="_blank">DIY 3-axis CNC mill</a> over the last few months. I&#8217;m posting this mostly to brag :), but also as an excuse to do some documenting on the process that might be useful to others. We&#8217;ll keep posting as things progress.</span></p>

<a href='http://rainbowlazer.com/wp-content/uploads/2009/01/rainbowlazer_dot_com_cnc_complete_assembly.jpg' rel='shadowbox[post-44];player=img;' title='rainbowlazer_dot_com_cnc_complete_assembly'><img width="150" height="150" src="http://rainbowlazer.com/wp-content/uploads/2009/01/rainbowlazer_dot_com_cnc_complete_assembly-150x150.jpg" class="attachment-thumbnail" alt="Complete Assembly" title="rainbowlazer_dot_com_cnc_complete_assembly" /></a>
<a href='http://rainbowlazer.com/wp-content/uploads/2009/01/rainbowlazer_dot_com_cnc_cutswood2.jpg' rel='shadowbox[post-44];player=img;' title='rainbowlazer_dot_com_cnc_cutswood2'><img width="150" height="150" src="http://rainbowlazer.com/wp-content/uploads/2009/01/rainbowlazer_dot_com_cnc_cutswood2-150x150.jpg" class="attachment-thumbnail" alt="Milling Hardwood" title="rainbowlazer_dot_com_cnc_cutswood2" /></a>
<a href='http://rainbowlazer.com/wp-content/uploads/2009/01/rainbowlazer_dot_com_cnc_assmbyl2.jpg' rel='shadowbox[post-44];player=img;' title='rainbowlazer_dot_com_cnc_assmbyl2'><img width="150" height="150" src="http://rainbowlazer.com/wp-content/uploads/2009/01/rainbowlazer_dot_com_cnc_assmbyl2-150x150.jpg" class="attachment-thumbnail" alt="More Assembly" title="rainbowlazer_dot_com_cnc_assmbyl2" /></a>
<a href='http://rainbowlazer.com/wp-content/uploads/2009/01/rainbowlazer_dot_com_cnc_assmbyl.jpg' rel='shadowbox[post-44];player=img;' title='rainbowlazer_dot_com_cnc_assmbyl'><img width="150" height="150" src="http://rainbowlazer.com/wp-content/uploads/2009/01/rainbowlazer_dot_com_cnc_assmbyl-150x150.jpg" class="attachment-thumbnail" alt="Assembly" title="rainbowlazer_dot_com_cnc_assmbyl" /></a>
<a href='http://rainbowlazer.com/wp-content/uploads/2009/01/rainbowlazer_dot_com_cnc_case_connect.jpg' rel='shadowbox[post-44];player=img;' title='rainbowlazer_dot_com_cnc_case_connect'><img width="150" height="150" src="http://rainbowlazer.com/wp-content/uploads/2009/01/rainbowlazer_dot_com_cnc_case_connect-150x150.jpg" class="attachment-thumbnail" alt="Cable Connections" title="rainbowlazer_dot_com_cnc_case_connect" /></a>
<a href='http://rainbowlazer.com/wp-content/uploads/2009/01/rainbowlazer_dot_com_cnc_cable_connect.jpg' rel='shadowbox[post-44];player=img;' title='rainbowlazer_dot_com_cnc_cable_connect'><img width="150" height="150" src="http://rainbowlazer.com/wp-content/uploads/2009/01/rainbowlazer_dot_com_cnc_cable_connect-150x150.jpg" class="attachment-thumbnail" alt="Cable Connections" title="rainbowlazer_dot_com_cnc_cable_connect" /></a>
<a href='http://rainbowlazer.com/wp-content/uploads/2009/01/rainbowlazer_dot_com_cnc_enclosure_base.jpg' rel='shadowbox[post-44];player=img;' title='rainbowlazer_dot_com_cnc_enclosure_base'><img width="150" height="150" src="http://rainbowlazer.com/wp-content/uploads/2009/01/rainbowlazer_dot_com_cnc_enclosure_base-150x150.jpg" class="attachment-thumbnail" alt="Base Construction" title="rainbowlazer_dot_com_cnc_enclosure_base" /></a>
<a href='http://rainbowlazer.com/wp-content/uploads/2009/01/rainbowlazer_dot_com_cnc_dremel_mount.jpg' rel='shadowbox[post-44];player=img;' title='rainbowlazer_dot_com_cnc_dremel_mount'><img width="150" height="150" src="http://rainbowlazer.com/wp-content/uploads/2009/01/rainbowlazer_dot_com_cnc_dremel_mount-150x150.jpg" class="attachment-thumbnail" alt="3D Printed Dremel Mount" title="rainbowlazer_dot_com_cnc_dremel_mount" /></a>
<a href='http://rainbowlazer.com/wp-content/uploads/2009/01/rainbowlazer_dot_com_cnc_enclosure_constunt.jpg' rel='shadowbox[post-44];player=img;' title='rainbowlazer_dot_com_cnc_enclosure_constunt'><img width="150" height="150" src="http://rainbowlazer.com/wp-content/uploads/2009/01/rainbowlazer_dot_com_cnc_enclosure_constunt-150x150.jpg" class="attachment-thumbnail" alt="Constructing the Enclosure" title="rainbowlazer_dot_com_cnc_enclosure_constunt" /></a>
<a href='http://rainbowlazer.com/wp-content/uploads/2009/01/LILCNC.jpg' rel='shadowbox[post-44];player=img;' title='LILCNC'><img width="150" height="150" src="http://rainbowlazer.com/wp-content/uploads/2009/01/LILCNC-150x150.jpg" class="attachment-thumbnail" alt="New Redesign - No Side Drilling!" title="LILCNC" /></a>

<p><span style="text-decoration: line-through;"><a href="http://rainbowlazer.com/wp-content/uploads/2009/01/rainbowlazer_dot_com_lil_cnc.mov" rel="shadowbox[post-44]">Some video of testing</a></span></p>
<p><span style="text-decoration: line-through;"><a href="http://www.instructables.com/id/How-to-Make-a-Three-Axis-CNC-Machine-Cheaply-and-/" target="_blank">The original plans</a> use 1/2&#8243; MDF for all the panels. We decided to go with with clear acrylic for the visual effect. Also, we were able to use a laser cutter for most of the cutting to the edges are nice and clean.  The downside is the brittle nature of acrylic, which likes to crack when drilled from the edge (and this design requires a lot of that).  <strong> </strong></span></p>
<p><span style="text-decoration: line-through;"><strong>CONTROLLER &amp; CONFIGURATION </strong></span></p>
<p><span style="text-decoration: line-through;"><strong> </strong> We&#8217;re using linux-based <a href="http://www.linuxcnc.org/" target="_blank">Enhanced Machine Controller</a> to run the mill, with a modified version of the standard stepper configuration. Here&#8217;s our <a href="http://rainbowlazer.com/wp-content/uploads/2009/01/stepper.zip">EMC configuration files</a>. So far, I&#8217;ve been really pleased with the performance. It was trial-and-error figuring out the scaling&#8211; I ended up attaching a pencil to a dremel collet, then manually jogging each axis until I could draw a one-inch line in each direction. The scaling factors I came up with are: 520 for X and Y, and 16000 for Z, and that&#8217;s with quarter stepping set on the hardware controller board.</span></p>
<p><span style="text-decoration: line-through;">We kept getting a &#8220;<a title="http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Following_Error" href="http://" target="_blank">Joint 2 Following error</a>,&#8221; indicating that the z-axis was losing its position. I found that this was happening only when using  <a href="http://www.linuxcnc.org/docs/html/gcode_main.html#sec:G0:-Rapid-Linear" target="_blank">G00</a> (rapid-positioning) codes. I&#8217;m still a little unclear as to whether we need to even worry about positioning in this case, but for now I&#8217;m just replacing G00 codes in my toolpaths with <a href="http://www.linuxcnc.org/docs/html/gcode_main.html#sec:G1:-Linear-Motion" target="_blank">G01</a> (linear motion). It&#8217;s a little slower, but for now the error is not happening anymore. See Feed Speeds for the permanent fix.</span></p>
<p><span style="text-decoration: line-through;"><strong>TOOLPATHS</strong></span></p>
<p><span style="text-decoration: line-through;">We use <a href="http://www.rhino3d.com/" target="_blank">Rhino3D</a> and <a href="http://www.mecsoft.com/index.shtml" target="_blank">RhinoCam</a> to generate our toolpaths. I&#8217;ve found that a number of different post-processors to work just fine, but mostly we&#8217;re using .NCD&#8217;s out of habit.</span></p>
<p><span style="text-decoration: line-through;"><strong>FEED SPEEDS </strong></span></p>
<p><span style="text-decoration: line-through;">There doesn&#8217;t seem to be a way to directly set the feed and plunge speeds in EMC. The NCD post-processor defaults the feed speed to 3.7 and the plunge speed to 7.3 and the units are inches per minute. So we&#8217;ve been doing a search and replace in the post-processed files setting plunge to 14 and feed to 10 (this is easier than going back to RhinoCam to re-generate the toolpath with new feed speeds). </span><span style="text-decoration: line-through;">We also then modified the MAX_FEED_OVERRIDE setting in the  stepper_inch.ini file to 3, meaning we can increase the feed override up to 300%. We now limit the max override to 150%, and more deliberately set feed and plunge speeds in RhinoCam, under the Feeds &amp; Speeds tab &#8212; these vary depending on material.</span></p>
<p><span style="text-decoration: line-through;"><strong>ERRORS</strong></span></p>
<p><span style="text-decoration: line-through;">We kept getting a &#8220;Joint 2 following error&#8221; while testing, and found&#8211;after consulting the <a href="http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?Following_Error" target="_blank">EMC documentation wiki</a>&#8211;that changing the FERROR setting to 5.0 and the MIN_FERROR to 1.0 (that&#8217;s percent) for all axes in stepper_inch.ini alleviated this error. There&#8217;s the potential with increasing the FERROR settings of losing some accuracy, but that&#8217;s not our main concern at this point.</span></p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-9738136468704557";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0066cc";
google_color_text = "000000";
google_color_url = "008000";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://rainbowlazer.com/3d/rhino/diy-3-axis-cnc-millenhanced-machine-controller/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://rainbowlazer.com/wp-content/uploads/2009/01/rainbowlazer_dot_com_lil_cnc.mov" length="4851188" type="video/quicktime" />
		</item>
		<item>
		<title>Recovering a Stolen Mac Without Hurting Anyone&#8217;s Feelings</title>
		<link>http://rainbowlazer.com/scripting-programming/to-catch-a-thief-getting-back-a-stolen-laptop/</link>
		<comments>http://rainbowlazer.com/scripting-programming/to-catch-a-thief-getting-back-a-stolen-laptop/#comments</comments>
		<pubDate>Sat, 29 Mar 2008 19:43:32 +0000</pubDate>
		<dc:creator>Chris Reilly</dc:creator>
				<category><![CDATA[OS X]]></category>
		<category><![CDATA[Random]]></category>
		<category><![CDATA[Scripting & Programming]]></category>
		<category><![CDATA[recovered laptop]]></category>
		<category><![CDATA[stolen laptop]]></category>

		<guid isPermaLink="false">http://rainbowlazer.com/?p=28</guid>
		<description><![CDATA[




The situation: Steve* a former roommate of mine moved out, and left a box of things in our basement storage unit, including an old Apple iBook laptop. Even though our other three neighbors had access to the storage room, I wasn&#8217;t too worried about any of his stuff; the laptop was old, the battery &#38; [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-9738136468704557";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0066cc";
google_color_text = "000000";
google_color_url = "008000";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p align="center"><img src="http://www.artic.edu/~creill/stealer/photo-20.jpg" alt="This Computer Does Not Belong to you" /><img src="http://www.artic.edu/~creill/stealer/stealer2.png" alt="stealer2.png" /></p>
<p>The situation: Steve* a former roommate of mine moved out, and left a box of things in our basement storage unit, including an old Apple iBook laptop. Even though our other three neighbors had access to the storage room, I wasn&#8217;t too worried about any of his stuff; the laptop was old, the battery &amp; &#8216;Y&#8217; key were broken, etc. Plus I know all of my neighbors, they are all women in their mid-to-late 30&#8217;s and I had no reason to suspect any of them of doing anything&#8230; let&#8217;s just say &#8217;strange&#8217;.</p>
<p>At one point Steve sent a friend to pick up some stuff, and I assumed he had taken the laptop, because I noticed later that it wasn&#8217;t there any more.</p>
<p>I didn&#8217;t think anything more about it, since I never heard anything more from Steve. Until about a month ago, when I noticed that Steve&#8217;s laptop was connecting to our wireless network. I contacted him and confirmed that he did not have the laptop, nor did his friend. This pretty quickly led me to one conclusion: one of our neighbors had taken the laptop from our storage room, and was using it. On our network.</p>
<p>I found this situation to be pretty mind-blowing: that one of our adult neighbors would be so ignorant and unscrupulous as to take something and use it so flagrantly. It wasn&#8217;t so much the value of the computer that bothered me. The laptop, let&#8217;s face it, was a piece of shit. Beat up, old, and not containing any sensitive data, I would have had no problem loaning it out until Steve wanted it back. The principle of the situation was what really got under my skin: you don&#8217;t steal stuff from your neighbors, and if you do you certainly don&#8217;t advertise it to them!</p>
<p>Whoever had the laptop was basically waving a huge red flag saying, &#8220;I&#8217;m ignorant. Please take advantage of me.&#8221; At least that&#8217;s what first flashed through my mind&#45;&#45;­­visions of vengeful data-mining, FBI raids, etc. But after the initial shock wore off, I realized what a delicate situation this was. I certainly could not go about blindly accusing each of my neighbors in turn&#8211;this would only offend the two who were innocent, and produce a denial from the guilty one. I did consider calling the police, or using a packet-sniffer to maybe track down the email address of the culprit. But even that seemed a little harsh; pressing charges or going to elaborate lengths to embarrass the guilty neighbor would also probably lead to an awkward living situation.</p>
<p>I decided that my ideal approach was to let the thief know that I knew about the theft, and that they could return it to the storage room with no questions asked. And I would let them know in a firm yet polite fashion. By remotely breaking the shit out of that laptop.</p>
<p>Luckily I was able to get the login information from Steve, giving me pretty much unfettered access to his machine over our network. This was my plan: to put the machine into <a href="http://archive.macosxlabs.org/documentation/kiosk/configuration/config.html" target="_blank">kiosk mode</a>, disabling all other applications and interfaces save for one&#8211;a never-ending popup loop with a [polite] message commanding the return of the laptop.</p>
<p>To do this I needed to do a few things:</p>
<ul>
<li>Disable the Dock</li>
<li>Disable the Menu Bar</li>
<li>Replace the Finder with the popup-loop app</li>
</ul>
<p>I decided to start with the Finder-replacement App. I used Apple&#8217;s Script Editor to cobble the code snippet into an application bundle.</p>
<p align="center"><img src="http://www.artic.edu/~creill/stealer/picture-28.png" alt="picture-28.png" /></p>
<p>The bundle part is important, since it bundles an info.plist file with the script, which allows us to take control of the Dock and Menu Bar (We&#8217;ll get to that later).</p>
<p>Now to tell OS X to auto-start Stealer.app in place of Finder (which itself is an application), I placed Stealer.app in Steve&#8217;s Applications folder, then modified his com.apple.loginwindow.plist file (usually located in the Library/Preferences folder of the user&#8217;s Home directory) by adding the following lines:</p>
<p>&lt;key&gt;Finder&lt;/key&gt;<br />
&lt;string&gt;/Applications/Stealer.app&lt;/string&gt;</p>
<p align="center"><img src="http://www.artic.edu/~creill/stealer/picture-24.png" alt="picture-24.png" height="181" width="661" /></p>
<p>This code causes Stealer.app to automatically launch in place of Finder. This makes it basically impossible to quit Stealer.app or navigate to and start any other applications.</p>
<p>Next was to <a href="http://www.macosxhints.com/article.php?story=20070118003804854" target="_blank">hijack the Dock and Menu bar</a>. This makes it very hard to launch any other applications besides Stealer. I did this by editing Stealer&#8217;s info.plist file (control-click on Stealer.app, selecting Show Package Contents), adding the following lines, and keeping the tags in alphabetical order:</p>
<p>&lt;key&gt;<a href="http://developer.apple.com/documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/PListKeys.html#//apple_ref/doc/uid/20001431-113616" target="_blank">LSUIPresentationMode</a>&lt;/key&gt;<br />
&lt;integer&gt;4&lt;/integer&gt;</p>
<p align="center"><img src="http://www.artic.edu/~creill/stealer/picture-26.png" alt="picture-26.png" /></p>
<p>Since all these changes were taking place as the computer was running, and pretty well depended on it being restarted to work fully, I also took the precaution of moving all the Applications to a separate folder, then duplicating Stealer.app in the Applications folder, and renaming it iChat.app, iTunes.app, etc. This way the message would still appear without a restart. (I figured the surprise of realizing someone was remotely messing with your stolen computer would be enough to scare the thief into returning it.)</p>
<p>Two nights later, the laptop was back in the storage room, safe and sound. And later the same night, our upstairs neighbor coincidentally dropped by with a gift basket full of snacks, which she &#8216;just happened to have laying around, and thought we might like.&#8217; She just moved out today. :)</p>
<p><strong>Disclaimer: The solutions I came up with to deal with my situation are extremely specific and jury-rigged, and nowhere near foolproof. They are by no means the best solutions, they just happened to work in my situation. I wrote this post mostly because the situation was very weird, to the point of being comical, and it presented some opportunities to do some fun pseudo-hacking and learn a few things.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://rainbowlazer.com/scripting-programming/to-catch-a-thief-getting-back-a-stolen-laptop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WinRestart: Applescript Mini-App for Automatically Restarting Boot Camp in the Windows/Linux Partition</title>
		<link>http://rainbowlazer.com/scripting-programming/applescript-application-for-restarting-boot-camp-in-the-windows-partition/</link>
		<comments>http://rainbowlazer.com/scripting-programming/applescript-application-for-restarting-boot-camp-in-the-windows-partition/#comments</comments>
		<pubDate>Thu, 20 Mar 2008 15:37:14 +0000</pubDate>
		<dc:creator>Chris Reilly</dc:creator>
				<category><![CDATA[Boot Camp]]></category>
		<category><![CDATA[Dual Boot]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Scripting & Programming]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://rainbowlazer.com/?p=26</guid>
		<description><![CDATA[If you&#8217;re like me, you use Boot Camp to run both Windows/Linux and OS X on your Intel Mac. It&#8217;s truly a great setup, especially if you use a one-extra-partition setup (I use MacDrive on the Windows side) to share the same documents between all OS&#8217;s, and Thunderbird and Firefox sharing the same profiles to [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re like me, you use <a href="http://www.apple.com/macosx/features/bootcamp.html" target="_blank">Boot Camp</a> to run both Windows/Linux and OS X on your Intel Mac. It&#8217;s truly a great setup, especially if you use a one-extra-partition setup (I use <a href="http://www.mediafour.com/products/macdrive/" target="_blank">MacDrive</a> on the Windows side) to share the same documents between all OS&#8217;s, and <a href="http://www.mozilla.com/en-US/thunderbird/" target="_blank">Thunderbird</a> and <a href="http://www.mozilla.com/en-US/firefox/" target="_blank">Firefox</a> <a href="http://kb.mozillazine.org/Profile_Manager" target="_blank">sharing the same profiles</a> to get to all your email, bookmarks and preferences from any OS.</p>
<p>The only downside to this setup is having to reboot every time I  switch OS&#8217;s. Boot Camp only allows one partition to be the default startup disk. I keep my default set to OSX, since that&#8217;s what I use most. But if I want to reboot in Windows or Linux, I have to sit and wait while I hold down &#8216;alt&#8217; and the Boot Camp bootloader comes up. I would rather spend this time staring out the window, or getting up for coffee.</p>
<p><strong>That&#8217;s why <a href="http://www.rainbowlazer.com/wp-content/uploads/2008/03/WinRestart.app.zip">WinRestart</a> is awesome.</strong></p>
<p>WinRestart is a [painfully] simple two lines of Applescript (thanks to <a href="http://www.taylorhokanson.com/1/hokanson/" target="_blank">Taylor</a> for the code) that passes a shell script to the Terminal, using the <a href="http://developer.apple.com/documentation/Darwin/Reference/Manpages/man8/bless.8.html" target="_blank">bless</a> command. This sets your Windows/Linux partition to be the boot disk on the next restart only. WinRestart is saved as an application, which means you can keep it in your Dock. Just click to launch, and you&#8217;re on your way to automatic restart heaven!</p>
<p>After downloading and extracting WinRestart, open it up in the Script Editor (Applications -&gt; AppleScript -&gt; Script Editor.app) and change the name of the boot volume to your alternate partition. For example, if your Linux partition is named &#8216;linuxpartition,&#8217; you would change the default Untitled:</p>
<p align="center">do shell script &#8220;bless -mount /Volumes/<strong>Untitled</strong>/&#8230; privileges</p>
<p>to &#8216;linuxpartition&#8217; (no quotes, though):</p>
<p align="center">do shell script &#8220;bless -mount /Volumes/<strong>linuxpartition</strong>/&#8230; privileges</p>
<p align="center"><a title="Set the name of your Alternate Partition" href="http://rainbowlazer.com/wp-content/uploads/2008/03/picture-22.png" rel="shadowbox[post-26];player=img;"><img src="http://rainbowlazer.com/wp-content/uploads/2008/03/picture-22.thumbnail.png" alt="Set the name of your Alternate Partition" /></a></p>
<p align="left"><strong>UPDATE:</strong> Andy writes with this tip about using WinRestart with an NTFS partition:</p>
<blockquote><p><em>I just wanted to thank you for your WinRestart post on rainbowlazer.  It was pretty much exactly the information I wanted &#8212; however, using a NTFS partition for boot camp did cause some problems with using bless.</em></p>
<p><em>Bless seems to require statfs, when you use it with the &#8211;mount option, which apparently isn&#8217;t supported with MacFuse/NTFS-3G.  Instead [of bless -mount /Volumes/Untitled/ -legacy -setBoot -nextonly], the following bless command worked great for me:</em></p>
<p><em>bless &#8211;device /dev/disk0s3 &#8211;legacy &#8211;setBoot &#8211;nextonly</em></p></blockquote>
<p align="left"><strong>Thanks for the input, Andy!</strong></p>
<p align="left"><strong>UPDATE:</strong> Tim writes with this tip about adapting WinRestart to work with System Events to prompt saving of open documents before restart:</p>
<blockquote><p><em>Thanks for developing the WinRestart application.  I wanted to comment that I have used it a lot and have found it really helpful.  I made a version of the script that might suit most users a little better though, maybe you would like to post it as an alternative.</p>
<p>do shell script &#8220;bless -mount /Volumes/Your_Volume_Here/ -legacy -setBoot -nextonly&#8221; password &#8220;Your_User_Password_Here&#8221; with administrator privileges<br />
tell application &#8220;System Events&#8221;<br />
   restart<br />
end tell</p>
<p>It doesn&#8217;t ask for a password and lets you save unsaved documents/close programs.</p>
<p>For users of this, I also recommend turning off the startup screen in the WinStart File menu.</p>
<p>Many Thanks Again,</p>
<p>Tim</em></p></blockquote>
<p align="left"><strong>Thanks for the tip, Tim! <br />The addition of your password in plaintext is a little iffy in my opinion, but if you&#8217;re not worried about it then it&#8217;s a good time-saver.</strong></p>
<p><!--adsense--></p>
]]></content:encoded>
			<wfw:commentRss>http://rainbowlazer.com/scripting-programming/applescript-application-for-restarting-boot-camp-in-the-windows-partition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
