<?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>Mac OS X Things | FlickrFan</title>
	<atom:link href="http://face.centosprime.com/macosxw/category/flickrfan/feed/" rel="self" type="application/rss+xml" />
	<link>http://face.centosprime.com/macosxw</link>
	<description>hints and notes for the mac os x folks</description>
	<lastBuildDate>Thu, 01 Jul 2010 13:02:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
		<item>
		<title>FlickrFan &#8211; find the Mac default pictures folder</title>
		<link>http://face.centosprime.com/macosxw/flickrfan-find-the-mac-default-pictures-folder/</link>
		<comments>http://face.centosprime.com/macosxw/flickrfan-find-the-mac-default-pictures-folder/#comments</comments>
		<pubDate>Sat, 29 Dec 2007 20:37:58 +0000</pubDate>
		<dc:creator>face</dc:creator>
				<category><![CDATA[AppleScript Notes]]></category>
		<category><![CDATA[FlickrFan]]></category>

		<guid isPermaLink="false">http://face.centosprime.com/macosxw/?p=275</guid>
		<description><![CDATA[sys.UnixShellCommand("osascript -e '(path to pictures folder) as string'") More better (since you get a newline at the end of the above) string.trimWhiteSpace(sys.unixShellCommand("osascript -e '(path to pictures folder) as string'")) The list of possible &#8220;magic&#8221; folders in AppleScript Get multiple folder paths in one swell foop osascript -e '{(path to pictures folder) as string, (path to [...]]]></description>
			<content:encoded><![CDATA[<p><code>sys.UnixShellCommand("osascript -e '(path to pictures folder) as string'")</code></p>
<p>More better (since you get a newline at the end of the above)<br />
<code>string.trimWhiteSpace(sys.unixShellCommand("osascript -e '(path to pictures folder) as string'"))</code></p>
<p><a href="http://face.centosprime.com/macosxw/?p=274">The list of possible &#8220;magic&#8221; folders in AppleScript</a></p>
<p>Get multiple folder paths in one swell foop</p>
<p><code>osascript -e '{(path to pictures folder) as string, (path to applications folder) as string}'</code></p>
<p>returns a comma-separated list.</p>
]]></content:encoded>
			<wfw:commentRss>http://face.centosprime.com/macosxw/flickrfan-find-the-mac-default-pictures-folder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Applescript &#8211; path to</title>
		<link>http://face.centosprime.com/macosxw/applescript-path-to/</link>
		<comments>http://face.centosprime.com/macosxw/applescript-path-to/#comments</comments>
		<pubDate>Sat, 29 Dec 2007 20:27:29 +0000</pubDate>
		<dc:creator>face</dc:creator>
				<category><![CDATA[AppleScript Notes]]></category>
		<category><![CDATA[FlickrFan]]></category>

		<guid isPermaLink="false">http://face.centosprime.com/macosxw/?p=274</guid>
		<description><![CDATA[The path to command now has the following new folder constants: applications folder documents folder favorites folder home folder library folder movies folder music folder pictures folder public folder shared documents shared documents folder sites folder utilities folder From the Applescript folks&#8230; An additional tip about &#8220;path to&#8221;: you don&#8217;t need to wait for us [...]]]></description>
			<content:encoded><![CDATA[<p>The path to command now has the following new folder constants:</p>
<ul>
<li>applications folder</li>
<li>documents folder</li>
<li>favorites folder</li>
<li>home folder</li>
<li>library folder</li>
<li>movies folder</li>
<li>music folder</li>
<li>pictures folder</li>
<li>public folder</li>
<li>shared documents</li>
<li>shared documents folder</li>
<li>sites folder</li>
<li>utilities folder</li>
</ul>
<p>From the Applescript folks&#8230;</p>
<blockquote><p>An additional tip about &#8220;path to&#8221;: you don&#8217;t need to wait for us to add an<br />
explicit enumeration, since it can also take any four-character string that&#8217;s a<br />
FindFolder selector. Get your hands on a copy of Folders.h (part of the Master<br />
Interfaces) and go nuts.</p></blockquote>
<p>Look here</p>
<p>/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/CFMCarbon/CarbonCore/Folders.h</p>
]]></content:encoded>
			<wfw:commentRss>http://face.centosprime.com/macosxw/applescript-path-to/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FlickrFan &#8211; Stop Firefox (or Safari) from starting up</title>
		<link>http://face.centosprime.com/macosxw/stop-firefox-or-safari-from-starting-up/</link>
		<comments>http://face.centosprime.com/macosxw/stop-firefox-or-safari-from-starting-up/#comments</comments>
		<pubDate>Sat, 29 Dec 2007 17:05:56 +0000</pubDate>
		<dc:creator>face</dc:creator>
				<category><![CDATA[FlickrFan]]></category>

		<guid isPermaLink="false">http://face.centosprime.com/macosxw/?p=273</guid>
		<description><![CDATA[When FlickrFan starts it makes sure that your default browser is running. Determining what your default browser is (on the Mac) isn&#8217;t all that easy. The &#8220;open&#8221; command knows what it is. in photoFanThread.script if system.environment.ismac { &#160;&#160;Â«webbrowser.launchMacBrowser () // [001] &#160;&#160;// [001] use the system utility &#160;&#160;sys.unixShellCommand("open " + homeurl) // [001] }; photoFanSuite.init [...]]]></description>
			<content:encoded><![CDATA[<p>When FlickrFan starts it makes sure that your default browser is running.<br />
Determining what your default browser is (on the Mac) isn&#8217;t all that easy.</p>
<p>The &#8220;open&#8221; command knows what it is.</p>
<p>in photoFanThread.script<br />
<code><br />
if system.environment.ismac {<br />
&nbsp;&nbsp;Â«webbrowser.launchMacBrowser () // [001]<br />
&nbsp;&nbsp;// [001] use the system utility<br />
&nbsp;&nbsp;sys.unixShellCommand("open " + homeurl) // [001]<br />
};<br />
photoFanSuite.init ();<br />
system.temp.photoFan.flStarted = true;<br />
// [001] we have already "opened" the URL on a Mac<br />
// [001]  don't do it again<br />
if not system.environment.ismac {<br />
&nbsp;&nbsp;webbrowser.openurl (homeurl)<br />
};<br />
webbrowser.bringtofront ();<br />
photoFanSuite.background.everyHour () //do a scan on startup<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://face.centosprime.com/macosxw/stop-firefox-or-safari-from-starting-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
