<?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>Huy Zing &#187; osx</title>
	<atom:link href="http://huyzing.com/tag/osx/feed/" rel="self" type="application/rss+xml" />
	<link>http://huyzing.com</link>
	<description></description>
	<lastBuildDate>Fri, 04 Dec 2009 06:23:35 +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>Launching a VirtualBox VM from the OS X Dock</title>
		<link>http://huyzing.com/2009/08/23/launching-a-virtualbox-vm-from-the-os-x-dock/</link>
		<comments>http://huyzing.com/2009/08/23/launching-a-virtualbox-vm-from-the-os-x-dock/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 04:00:17 +0000</pubDate>
		<dc:creator>huy</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[Automator]]></category>
		<category><![CDATA[Dock]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[VirtualBox]]></category>

		<guid isPermaLink="false">http://huyzing.com/?p=125</guid>
		<description><![CDATA[Here's how to use Automator to launch a specific VirtualBox virtual machine directly from the OS X Dock.  Optionally, copy the icon from an application to another.]]></description>
			<content:encoded><![CDATA[<p>I like to run Windows XP at all times in my OS X machine for access to essential software not available on the Mac, e.g.  the <a href="http://www.roboform.com/">Roboform</a> password manager and the <a href="http://www.babylon.com/">Babylon</a> dictionary and translation utility.  For that, I use Sun&#8217;s free <a href="http://www.virtualbox.org/">VirtualBox</a> virtualization product.</p>
<p>To quickly launch XP when I need it, I wanted a launch icon in my Dock.</p>
<p>To do that:</p>
<ol>
<li>First, know the name of the virtual machine you want to launch by invoking in Terminal:
<pre><a href="http://www.virtualbox.org/manual/UserManual.html#vboxmanage-list">VBoxManage list vms</a></pre>
</li>
<li>Run Automator, choose the &#8220;Run Shell Script&#8221; action, and type in the script:
<pre><a href="http://www.virtualbox.org/manual/UserManual.html#vboxmanage-startvm">VBoxManage startvm</a> "<em>THE_NAME_OF_VIRTUAL_MACHINE</em>"</pre>
<p><div id="attachment_126" class="wp-caption aligncenter" style="width: 583px"><img class="size-full wp-image-126" title="2009-08-24 Launching a VirtualBox VM from the OS X Dock - Automator Screenshot" src="http://huyzing.com/wp/wp-content/uploads/2009/08/2009-08-24-Launching-a-VirtualBox-VM-from-the-OS-X-Dock-Automator-Screenshot.png" alt="Creating a shell script in Automator" width="573" height="352" /><p class="wp-caption-text">Creating a shell script in Automator</p></div></li>
<li>Save the script into your /Applications folder (or create a /Applications/scripts folder for these kinds of scripts), e.g. as &#8220;Win XP VM&#8221;, making sure to save it as an &#8220;Application&#8221; instead of a &#8220;Workflow&#8221;.</li>
<li>Now find the script you just created in Finder and drag and drop it to the Dock.</li>
</ol>
<p>Optionally, you can change the icon of the application to be the same as VirtualBox (a downloaded XP icon would be even better):</p>
<ol>
<li> In Finder, select the VirtualBox application and press Command-I</li>
<li>Click the icon at the top-left and press Command-C to copy the icon</li>
<li>Now select the script that you created in Automator earlier and press Command-I</li>
<li>Click the icon at the top-left and press Command-V to replace the icon</li>
</ol>
<p>Sources:</p>
<ul>
<li><a href="http://stackoverflow.com/questions/281372/executing-shell-scripts-from-the-os-x-dock/281455#281455">StackOverflow: Executing Shell Scripts from the OS X Dock?</a></li>
<li><a href="http://www.virtualbox.org/manual/UserManual.html">Sun VirtualBox User Manual</a></li>
<li><a href="http://support.apple.com/kb/HT2493">Mac 101: Change Your Icons</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://huyzing.com/2009/08/23/launching-a-virtualbox-vm-from-the-os-x-dock/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
