<?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>joe-ferraro.com &#187; mac</title>
	<atom:link href="http://joe-ferraro.com/category/mac/feed/" rel="self" type="application/rss+xml" />
	<link>http://joe-ferraro.com</link>
	<description>adless since 2008</description>
	<lastBuildDate>Thu, 24 Mar 2011 22:22:57 +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>copy your current ip address to the clipboard</title>
		<link>http://joe-ferraro.com/2009/01/copy-your-current-external-ip-address-to-the-clipboard/</link>
		<comments>http://joe-ferraro.com/2009/01/copy-your-current-external-ip-address-to-the-clipboard/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 20:58:42 +0000</pubDate>
		<dc:creator>joe</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[salesforce]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[butler]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[os x]]></category>

		<guid isPermaLink="false">http://joe-ferraro.com/?p=57</guid>
		<description><![CDATA[


if you&#8217;ve worked in several different instances of Salesforce.com from several different locations, surely you&#8217;ve run into roadblocks on Salesforce.com Security Boulevard (and yes, I know you can use a security token, but many times I&#8217;m using a client&#8217;s license and he/she will &#8220;inadvertently&#8221; reset the token and lock me out of the org).
when in [...]]]></description>
			<content:encoded><![CDATA[<div>
<img src="http://www.joe-ferraro.com/images/salesforce_ip.png" alt="Salesforce Security Controls" />
</div>
<p>if you&#8217;ve worked in several different instances of <a href="http://www.salesforce.com">Salesforce.com</a> from several different locations, surely you&#8217;ve run into roadblocks on Salesforce.com Security Boulevard (and yes, I know you can use a security token, but many times I&#8217;m using a client&#8217;s license and he/she will &#8220;inadvertently&#8221; reset the token and lock me out of the org).</p>
<p>when in a new location, I used to copy my external ip from <a href="http://www.whatsmyip.com">whatsmyip.com</a>.  well, if you&#8217;re using os x, you can leverage Applescript to make this a bit less painful.</p>
<pre name="code" class="javascript">

set response to do shell script &quot;/usr/bin/curl http://checkip.dyndns.org/&quot;
set ip_address to extract_ip(response)

set the Reply to display dialog &quot;Your IP address is: &quot; &amp;amp; ip_address
set the clipboard to ip_address

-- Function to extract ip from HTML returned by dydns.com
on extract_ip(this_text)
	set clean_ip to &quot;&quot;
	set this_char to &quot;&quot;
	repeat with this_char in this_text
		set this_char to the contents of this_char
		if the this_char is in {&quot;0&quot;, &quot;1&quot;, &quot;2&quot;, &quot;3&quot;, &quot;4&quot;, &quot;5&quot;, &quot;6&quot;, &quot;7&quot;, &quot;8&quot;, &quot;9&quot;, &quot;.&quot;} then
			set the clean_ip to the clean_ip &amp;amp; this_char as string
		end if
	end repeat
	return the clean_ip
end extract_ip

-- end script
</pre>
<p> </p>
<p>
if you&#8217;re using <a href="http://www.manytricks.com/butler/">Butler</a>, you can run this applescript with a hot key.  so, whenever I need my external ip, I simply hold command + shift + i and my ip address is copied to my clipboard for handy paste into the trusted ip ranges.
</p>
<div>
<img src="http://joe-ferraro.com/images/Butler_Configuration.png" alt="Butler" />
</div>
<p>hth.</p>
]]></content:encoded>
			<wfw:commentRss>http://joe-ferraro.com/2009/01/copy-your-current-external-ip-address-to-the-clipboard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

