<?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>Everything is Crap &#187; applescript</title>
	<atom:link href="http://everythingiscrap.com/tag/applescript/feed/" rel="self" type="application/rss+xml" />
	<link>http://everythingiscrap.com</link>
	<description>Notes on the crap we&#039;ve been subjected to</description>
	<lastBuildDate>Wed, 11 Jan 2012 21:10:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Simple way to add static routes to mac xserve</title>
		<link>http://everythingiscrap.com/simple-way-to-add-static-routes-to-mac-xserve/</link>
		<comments>http://everythingiscrap.com/simple-way-to-add-static-routes-to-mac-xserve/#comments</comments>
		<pubDate>Wed, 12 May 2010 17:10:32 +0000</pubDate>
		<dc:creator>paul</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://everythingiscrap.com/?p=435</guid>
		<description><![CDATA[I have an AppleScript (saved as an application) that runs each time the xserve starts. In that AppleScript I have this code: do shell script "echo `cat /etc/security/admin_password` &#124; sudo -S route -nq add 192.168.10.0/24 192.168.0.1" It works for me. (I know, this is a convoluted way to do this, but I could not figure [...]]]></description>
			<content:encoded><![CDATA[<p>I have an AppleScript (saved as an application) that runs each time the xserve starts. In that AppleScript I have this code:</p>
<blockquote><p>do shell script "echo `cat /etc/security/admin_password` | sudo -S route -nq add 192.168.10.0/24 192.168.0.1"</p></blockquote>
<p>It works for me. (I know, this is a convoluted way to do this, but I could not figure out what I was doing wrong with launchd and I already had this mechanism in place, so I did it the wrong way.)</p>
]]></content:encoded>
			<wfw:commentRss>http://everythingiscrap.com/simple-way-to-add-static-routes-to-mac-xserve/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Connect to a share from Applescript</title>
		<link>http://everythingiscrap.com/connect-to-a-share-from-applescript/</link>
		<comments>http://everythingiscrap.com/connect-to-a-share-from-applescript/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 22:20:00 +0000</pubDate>
		<dc:creator>paul</dc:creator>
				<category><![CDATA[applescript]]></category>

		<guid isPermaLink="false">http://piotrouble.wordpress.com/2009/07/17/connect-to-a-share-from-applescript</guid>
		<description><![CDATA[More fun with mac scripting. There's a way to connect to a share on the network (mount/connect to a server if you're hopelessly lost in Mac-only parlance) using AppleScript: tell application "Finder" mount volume "smb://myserver.mydomain.net/myshare" end tell In my test, this code completed successfully, so it communicates with the Key Chain properly and finds the [...]]]></description>
			<content:encoded><![CDATA[<p>More fun with mac scripting. There's a way to connect to a share on the network (mount/connect to a server if you're hopelessly lost in Mac-only parlance) using AppleScript:</p>
<blockquote><p>tell application "Finder"<br />
mount volume "smb://myserver.mydomain.net/myshare"<br />
end tell</p></blockquote>
<p>In my test, this code completed successfully, so it communicates with the Key Chain properly and finds the correct user and everything. It's rather impressive that you can coax so much functionality out of so few lines of code. What can I say? I'm becoming a fan of AppleScript.</p>
]]></content:encoded>
			<wfw:commentRss>http://everythingiscrap.com/connect-to-a-share-from-applescript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

