<?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>CampSoftware</title>
	<atom:link href="http://campsoftware.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://campsoftware.com</link>
	<description>Small Business Software by FileMaker Certified Developers</description>
	<lastBuildDate>Fri, 17 May 2013 12:38:36 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Spawning FileMaker</title>
		<link>http://campsoftware.com/2013/03/spawning-filemaker/</link>
		<comments>http://campsoftware.com/2013/03/spawning-filemaker/#comments</comments>
		<pubDate>Thu, 07 Mar 2013 16:37:35 +0000</pubDate>
		<dc:creator>Hal Gumbert</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[FileMaker]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://campsoftware.com/?p=2526</guid>
		<description><![CDATA[Brian Schick posted on Twitter a link on how to open additional instances of FileMaker, or any other application on your Mac. This was also mentioned at PauseOnError this week several times. I wouldn&#8217;t suggest that general users try this out, but developers and power users could used this to be able to multi task better.<p><a class="excerpt-more blog-excerpt" href="http://campsoftware.com/2013/03/spawning-filemaker/">Read More...</a></p>]]></description>
				<content:encoded><![CDATA[<p><a href="https://twitter.com/brian_schick/statuses/281144215893852160" target="_blank">Brian Schick posted on Twitter</a> a link on <a href="http://osxdaily.com/2012/12/05/9-command-line-tricks-for-mac-os-x-you-should-know/" target="_blank">how to open additional instances</a> of FileMaker, or any other application on your Mac. This was also mentioned at PauseOnError this week several times.</p>
<p>I wouldn&#8217;t suggest that general users try this out, but developers and power users could used this to be able to multi task better. Up until now, we run a FileMaker Pro along with FileMaker Advanced to use FileMaker Pro to run a task / billing database. Now, we can just run another copy of FileMaker Advanced.</p>
<p>This is also a great idea to work on several databases simultaneously and to make copy and pasting of anything that resides in a modal  window.</p>
<p>To try it, open Terminal and run the following command: open -n /Applications/&#8217;FileMaker Pro 12 Advanced&#8217;/'FileMaker Pro Advanced.app&#8217;/</p>
<p>This can be used for any other app too like FileMaker Pro, Safari, or any other app that you need. Keep in mind to enclose and paths or file names in quotes if there are any spaces within the path.</p>
<p>To make it less painful, you can also turn that terminal command into an Automator script as shown below or just download the <a href="http://campsoftware.com/wp-content/uploads/2013/03/Spawn-FM.app_.zip">Spawn FM.app</a> Automator script.</p>
<p><a href="http://i1.wp.com/campsoftware.com/wp-content/uploads/2013/03/SpawnFM.png"><img class="alignnone size-full wp-image-2528" alt="SpawnFM" src="http://i1.wp.com/campsoftware.com/wp-content/uploads/2013/03/SpawnFM.png?resize=640%2C214" data-recalc-dims="1" /></a></p>
<p>&nbsp;<br />
<a href="http://campsoftware.com/wp-content/uploads/2013/03/Spawn-FM.app_.zip"><br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://campsoftware.com/2013/03/spawning-filemaker/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>FileMaker Scripting &amp; Calcs. Now in Color!</title>
		<link>http://campsoftware.com/2013/02/filemaker-scripting-calcs-now-in-color/</link>
		<comments>http://campsoftware.com/2013/02/filemaker-scripting-calcs-now-in-color/#comments</comments>
		<pubDate>Thu, 14 Feb 2013 18:54:14 +0000</pubDate>
		<dc:creator>Hal Gumbert</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[FileMaker]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://campsoftware.com/?p=2518</guid>
		<description><![CDATA[Which do you like better: I thought so. Recently, I learned that the MBS FileMaker Plugin could color code FileMaker scripts and calcs on Mac OS. Sorry Windows users&#8230; It&#8217;s amazing. Plus calculations are colorized. It&#8217;s something I just can&#8217;t live without now&#8230; To try it for free: Download the plugin. Install the plugin, remembering<p><a class="excerpt-more blog-excerpt" href="http://campsoftware.com/2013/02/filemaker-scripting-calcs-now-in-color/">Read More...</a></p>]]></description>
				<content:encoded><![CDATA[<p>Which do you like better:</p>
<p><img class="alignnone size-medium wp-image-2519" alt="Screen Shot 2013-02-14 at 1.25.26 PM" src="http://i2.wp.com/campsoftware.com/wp-content/uploads/2013/02/Screen-Shot-2013-02-14-at-1.25.26-PM.png?resize=300%2C290" data-recalc-dims="1" /><img class="alignnone size-medium wp-image-2520" alt="Screen Shot 2013-02-14 at 1.25.34 PM" src="http://i2.wp.com/campsoftware.com/wp-content/uploads/2013/02/Screen-Shot-2013-02-14-at-1.25.34-PM.png?resize=300%2C290" data-recalc-dims="1" /></p>
<p>I thought so.</p>
<p>Recently, I learned that the <a href="http://www.monkeybreadsoftware.de/filemaker/" target="_blank">MBS FileMaker Plugin</a> could color code FileMaker scripts and calcs on Mac OS. Sorry Windows users&#8230; It&#8217;s amazing. Plus calculations are colorized. It&#8217;s something I just can&#8217;t live without now&#8230;</p>
<p>To try it for free:</p>
<ul>
<li><a href="http://www.monkeybreadsoftware.de/filemaker/download.shtml" target="_blank">Download</a> the plugin.</li>
<li>Install the plugin, remembering to quit and relaunch FileMaker.</li>
<li>Download and open the &#8216;<a href="http://campsoftware.com/wp-content/uploads/2013/02/zx-MBS-SyntaxColorizer.fmp12.zip" target="_blank">fmSyntaxColorizer</a>&#8216; database that I&#8217;ve already customized. I spent quite a bit of time deciding what colors to use for each script step type. Or open the &#8216;fmSyntaxColorizer&#8217; in the Examples/Third Party folder in the download if you&#8217;d like to use the example that comes with the plugin.</li>
<li>After opening the fmSyntaxColorizer, click the Colorize button. That&#8217;s unless you want to change the colors&#8230;</li>
<li>Finally, order the <a href="http://www.monkeybreadsoftware.de/filemaker/buy/" target="_blank">MBS FileMaker Plugin</a>. It&#8217;s well worth it JUST for the code coloring, but it can do sooo much <a href="http://www.monkeybreadsoftware.de/filemaker/" target="_blank">more</a>.</li>
</ul>
<p>Christian from MBS is simply amazing. He responds extremely fast to requests. In fact, I was editing some scripts yesterday, color coded of course, and I went to debug a script and it was in black and white. So I popped him an email and within literally minutes, he sent me an updated plugin that color coded the script debugger.</p>
<p>I&#8217;ve been using the <a href="http://www.monkeybreadsoftware.de/realbasic/" target="_blank">MBS Real Studio plugin</a> for years and years for <a href="http://www.realsoftware.com/realstudio/" target="_blank">Real Studio</a> projects. It&#8217;s essential. then a few years ago, Christian created the MBS FileMaker plugin which bring over some of the functionality of the Real Studio plugin, plus some special features just for FileMaker like code coloring, window controls like hiding, webviewer tool, and others.</p>
]]></content:encoded>
			<wfw:commentRss>http://campsoftware.com/2013/02/filemaker-scripting-calcs-now-in-color/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>FileMaker Automation with iClip and QuicKeys</title>
		<link>http://campsoftware.com/2013/01/filemaker-automation-with-iclip-and-quickeys/</link>
		<comments>http://campsoftware.com/2013/01/filemaker-automation-with-iclip-and-quickeys/#comments</comments>
		<pubDate>Sat, 05 Jan 2013 19:04:47 +0000</pubDate>
		<dc:creator>Hal Gumbert</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[FileMaker]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://campsoftware.com/?p=2495</guid>
		<description><![CDATA[Sometimes while developing FileMaker databases, we need to perform repetitive tasks, but you can save time by using tools to automate! More info: iClip and QuicKeys Watch on YouTube]]></description>
				<content:encoded><![CDATA[<p>Sometimes while developing FileMaker databases, we need to perform repetitive tasks, but you can save time by using tools to automate!</p>
<p>More info: <a href="http://j.mp/iClip" target="_blank">iClip</a> and <a href="http://j.mp/QuicKeysApp" target="_blank">QuicKeys</a></p>
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='640' height='390' src='http://www.youtube.com/embed/cplkUHMRVOU?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span>
<p><a href="http://www.youtube.com/watch?v=cplkUHMRVOU" target="_blank">Watch on YouTube</a></p>
]]></content:encoded>
			<wfw:commentRss>http://campsoftware.com/2013/01/filemaker-automation-with-iclip-and-quickeys/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Faster FileMaker? Auto Fill Your Coffee Machine Water Reservoir</title>
		<link>http://campsoftware.com/2012/10/faster-filemaker-auto-fill-your-coffee-machine-water-reservoir/</link>
		<comments>http://campsoftware.com/2012/10/faster-filemaker-auto-fill-your-coffee-machine-water-reservoir/#comments</comments>
		<pubDate>Sun, 14 Oct 2012 17:10:30 +0000</pubDate>
		<dc:creator>Hal Gumbert</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Coffee]]></category>
		<category><![CDATA[Not FileMaker]]></category>

		<guid isPermaLink="false">http://campsoftware.com/?p=2457</guid>
		<description><![CDATA[I&#8217;ve had a Keurig Coffee machine for a while now. But, as a FileMaker Developer, I couldn&#8217;t leave well enough alone. While the Keurig coffee is more expensive per cup than a regular coffee pot machine IF you don&#8217;t finish the entire pot, I never have to drink old coffee that&#8217;s been sitting on the<p><a class="excerpt-more blog-excerpt" href="http://campsoftware.com/2012/10/faster-filemaker-auto-fill-your-coffee-machine-water-reservoir/">Read More...</a></p>]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve had a <a href="http://www.amazon.com/exec/obidos/ASIN/B000GTR2F6/3816-20/ref=nosim" target="_blank">Keurig Coffee machine</a> for a while now. But, as a FileMaker Developer, I couldn&#8217;t leave well enough alone.</p>
<p>While the Keurig coffee is more expensive per cup than a regular coffee pot machine <strong>IF</strong> you don&#8217;t finish the entire pot, I never have to drink old coffee that&#8217;s been sitting on the burner for hours. We can almost always find <a href="http://www.amazon.com/exec/obidos/ASIN/B006IOKAA2/3816-20/ref=nosim" target="_blank">k-cups for about 50 cents each</a>. Plus it&#8217;s still cheaper than driving around for a $4 coffee.</p>
<p>Just like the tools we use to make FileMaker development faster like <a href="http://campsoftware.com/products/fmclips/" target="_blank">FMClips</a> and <a href="http://campsoftware.com/products/fmsnippets/" target="_blank">FMSnippets</a> I LOVE to make stuff around the house and our popup camping trailer better. For the coffee machine, I loved how it could make me a cup of coffee in seconds, every 5 for 6 cups, I had to keep filling the reservoir.</p>
<p>Ughhh. Take off the lid, carry to the fridge, hold it while it fills, then put it back. What a pain. So, just like the water line going to the fridge, I ran a line to the coffee machine with an on/off valve. That worked, but then I had to manually open and close rather than the parade to the fridge and back. Too much work, plus one time I didn&#8217;t close the valve and caused a minor flood, probably day dreaming about FileMaker&#8230;</p>
<p>Then I was thinking about how our toilet how it auto fills itself and thought that my coffee machine should do the same! So I bought a <a href="http://www.amazon.com/exec/obidos/ASIN/B0077RAX4W/3816-20/ref=nosim" target="_blank">float valve that would fit in the reservoir</a>. The idea is that every time I make a cup of coffee, it automatically refills the tank. I&#8217;ve been using it for weeks and it completely rocks. Unfortunately, I didn&#8217;t actually buy that float valve and had to use the adapter shown on the left next to the wall to deal with different hose sizes. One tip is to put a manual valve in the hose line and open it just enough to trickle water into the tank at a reasonable pace.</p>
<p>The 90° adapter on top was nice to keep the hose out of the way. I&#8217;m now thinking of getting one of those cord hiders to hide the hose, or maybe paint the hose black.</p>
<p><a href="http://campsoftware.com/2012/10/faster-filemaker-auto-fill-your-coffee-machine-water-reservoir/coffeeautofill/" rel="attachment wp-att-2459"><img class="alignnone size-large wp-image-2459" title="CoffeeAutoFill" src="http://i0.wp.com/campsoftware.com/wp-content/uploads/2012/10/CoffeeAutoFill.jpg?resize=620%2C666" alt="" data-recalc-dims="1" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://campsoftware.com/2012/10/faster-filemaker-auto-fill-your-coffee-machine-water-reservoir/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>FileMaker Go Power Entry</title>
		<link>http://campsoftware.com/2012/09/filemaker-go-power-entry/</link>
		<comments>http://campsoftware.com/2012/09/filemaker-go-power-entry/#comments</comments>
		<pubDate>Mon, 17 Sep 2012 13:17:44 +0000</pubDate>
		<dc:creator>Hal Gumbert</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[FileMaker]]></category>
		<category><![CDATA[FileMaker Go]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://campsoftware.com/?p=2429</guid>
		<description><![CDATA[A client needed a method to quickly input voltage reading into FileMaker Go on iPad and David Burton came up with this method of entering the data. The key was to not use the built in iOS keyboard, but rather provide on screen buttons that offer probably choices. Before the video starts, David entered the<p><a class="excerpt-more blog-excerpt" href="http://campsoftware.com/2012/09/filemaker-go-power-entry/">Read More...</a></p>]]></description>
				<content:encoded><![CDATA[<p>A client needed a method to quickly input voltage reading into FileMaker Go on iPad and David Burton came up with this method of entering the data. The key was to not use the built in iOS keyboard, but rather provide on screen buttons that offer probably choices.</p>
<p>Before the video starts, David entered the nominal voltage on the left out of the view of the video which set the range of voltages from 488 to 509. Chances are, the voltage reading will be represented in the list of buttons. If not, buttons are provided to go back and forward. Worst case, the voltage can be entered manually by entering the numbers.</p>
<p><span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='640' height='390' src='http://www.youtube.com/embed/DYnEjQLdjF4?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span></p>
]]></content:encoded>
			<wfw:commentRss>http://campsoftware.com/2012/09/filemaker-go-power-entry/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>MacBook Pro Cool Pad</title>
		<link>http://campsoftware.com/2012/09/macbook-pro-cool-pad/</link>
		<comments>http://campsoftware.com/2012/09/macbook-pro-cool-pad/#comments</comments>
		<pubDate>Wed, 05 Sep 2012 23:15:02 +0000</pubDate>
		<dc:creator>Hal Gumbert</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://campsoftware.com/?p=2422</guid>
		<description><![CDATA[LOVE this cool pad for my MacBook Pro when I use it on my lap. Huge difference! http://j.mp/LapCoolPad]]></description>
				<content:encoded><![CDATA[<p><img class="size-full wp-image-17" src="http://i0.wp.com/campsoftware.com/wp-content/uploads/2012/09/wpid-3f54c7c0-7e7a-428e-a401-77ea458721d9.jpg?w=640" alt="null" data-recalc-dims="1" /></p>
<p>LOVE this cool pad for my MacBook Pro when I use it on my lap. Huge difference! http://j.mp/LapCoolPad</p>
]]></content:encoded>
			<wfw:commentRss>http://campsoftware.com/2012/09/macbook-pro-cool-pad/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>FileMaker 12 &#8211; Internal SQL Code Formatting</title>
		<link>http://campsoftware.com/2012/08/filemaker-12-internal-sql-code-formatting/</link>
		<comments>http://campsoftware.com/2012/08/filemaker-12-internal-sql-code-formatting/#comments</comments>
		<pubDate>Thu, 02 Aug 2012 20:09:00 +0000</pubDate>
		<dc:creator>Hal Gumbert</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Custom Function]]></category>
		<category><![CDATA[FileMaker]]></category>
		<category><![CDATA[FileMaker Go]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://campsoftware.com/?p=2409</guid>
		<description><![CDATA[One of the new features in FileMaker 12 the ability to perform SQL Select statements against FileMaker data. SQL Select statements can be simple and can easily get complicated and difficult to read. This is just one way to make it SQL statements easier to read. What does that mean? We&#8217;ll normally, to find a Contact&#8217;s<p><a class="excerpt-more blog-excerpt" href="http://campsoftware.com/2012/08/filemaker-12-internal-sql-code-formatting/">Read More...</a></p>]]></description>
				<content:encoded><![CDATA[<p>One of the new features in FileMaker 12 the ability to perform SQL Select statements against FileMaker data. SQL Select statements can be simple and can easily get complicated and difficult to read. This is just one way to make it SQL statements easier to read.</p>
<p>What does that mean? We&#8217;ll normally, to find a Contact&#8217;s phone number, you would:</p>
<ol>
<li>Go to the Contact Layout</li>
<li>Enter find Mode</li>
<li>Go to the Contact name fields and enter their name.</li>
<li>Perform the Find</li>
<li>Then finally, get the Contact Phone number.</li>
</ol>
<p>With the new ExecuteSQL function you can do this in one step:</p>
<ol>
<li>
<pre>ExecuteSQL ( "SELECT PhoneNumber FROM Contacts WHERE Name ='Hal Gumbert'" )</pre>
</li>
</ol>
<p>This is perfect when you need a bit of data and don&#8217;t really want to leave the layout that you are currently on. However, in the example above, if you rename the fields or table name the ExecuteSQL statement will stop working.</p>
<p>To fix that problem, you would pass in the field and table names in a function so FileMaker&#8217;s field and table name references stay intact. We like this format to make the code easier to read. If you have any ideas to make this even better comment below.</p>
<pre style="padding-left: 30px;">"&lt;Record&gt;&lt;Field&gt;" &amp;</pre>
<pre style="padding-left: 30px;">ExecuteSQL (</pre>
<pre style="padding-left: 30px;">"SELECT " &amp;
FieldNameQuoted ( Contacts::PhoneNumber ) &amp; " " &amp;</pre>
<pre style="padding-left: 30px;">"FROM " &amp;
FieldTableNameQuoted ( Contacts::_ID ) &amp; " " &amp;</pre>
<pre style="padding-left: 30px;">"WHERE " &amp;
FieldNameQuoted ( Contacts::Name ) &amp; "=?"</pre>
<pre style="padding-left: 30px;">; "&lt;/Field&gt;&lt;Field&gt;" ; "&lt;/Field&gt;&lt;/Record&gt;" ; "Hal Gumbert" ) &amp;</pre>
<pre style="padding-left: 30px;">"&lt;/Field&gt;&lt;/Record&gt;"</pre>
<p>There&#8217;s a bit more in this than the simple ExecuteSQL statement above. First, we&#8217;ve changed the column and row delimiters to be XML like to make it easier  to read the data back in case the data contains commas, returns or other text that might break parsing. The following example would return:</p>
<pre style="padding-left: 30px;">&lt;Record&gt;&lt;Field&gt;407-555-1212&lt;/Field&gt;&lt;/Record&gt;</pre>
<p>That a bit excessive for this simple example, but if we returned back more data, it would be helpful:</p>
<pre style="padding-left: 30px;">&lt;Record&gt;&lt;Field&gt;Hal&lt;/Field&gt;&lt;Field&gt;Gumbert&lt;/Field&gt;&lt;Field&gt;CampSoftware&lt;/Field&gt;&lt;Field&gt;407-555-1212&lt;/Field&gt;&lt;/Record&gt;</pre>
<p>To extract the data from the XML like data, we can use another calculation. The following will return the first field from the first record. To get any other field from a record, you just have to change the RecordIndex and the FieldIndex.</p>
<pre style="padding-left: 30px;">Let ( [</pre>
<pre style="padding-left: 30px;">RecordIndex = 1 ;
FieldIndex = 1 ;</pre>
<pre style="padding-left: 30px;">Record = ParseData ( $XML ; "&lt;Record&gt;" ; "&lt;/Record&gt;" ; RecordIndex ) ; 
Field = ParseData ( Record ; "&lt;Field&gt;" ; "&lt;/Field&gt;" ; FieldIndex )</pre>
<pre style="padding-left: 30px;">] ;</pre>
<pre style="padding-left: 30px;">Field</pre>
<pre style="padding-left: 30px;">)</pre>
<p>The calculations above use three Custom Functions, FieldNameQuoted, FieldTableNameQuoted, and ParseData, but they could be replaced by calculations. The idea is to get either the Field or Table name from a FileMaker reference name and also quote the name. We use keys that start with underscores which require quoting. Below are the custom functions:</p>
<pre style="padding-left: 30px;"><strong>// FieldNameQuoted ( theField )</strong>
//
// Returns the only the Field Name, dropping the text before and including the '::'. Contact::FirstName would return 'FirstName'</pre>
<pre style="padding-left: 30px;">Let ( [</pre>
<pre style="padding-left: 30px;">theFullName = GetFieldName ( theField ) ; 
theColons = Position ( theFullName ; "::" ; 1 ; 1 ) ;</pre>
<pre style="padding-left: 30px;">theFieldName = Middle ( theFullName ; theColons + 2 ; 99999 ) ;
theTableName = Left ( theFullName ; theColons - 1 )</pre>
<pre style="padding-left: 30px;">] ;</pre>
<pre style="padding-left: 30px;">Char ( 34 ) &amp; theFieldName &amp; Char ( 34 )</pre>
<pre style="padding-left: 30px;">)</pre>
<hr />
<pre style="padding-left: 30px;"><strong>// FieldTableName ( theField )</strong></pre>
<pre style="padding-left: 30px;">//
// Returns the only the Table Name, dropping the text after and including the '::'. Contact::FirstName would return 'Contact'</pre>
<pre style="padding-left: 30px;">Let ( [</pre>
<pre style="padding-left: 30px;">theFullName = GetFieldName ( theField ) ; 
theColons = Position ( theFullName ; "::" ; 1 ; 1 ) ;</pre>
<pre style="padding-left: 30px;">theFieldName = Middle ( theFullName ; theColons + 2 ; 99999 ) ;
theTableName = Left ( theFullName ; theColons - 1 )</pre>
<pre style="padding-left: 30px;">] ;</pre>
<pre style="padding-left: 30px;">Char ( 34 ) &amp; theTableName &amp; Char ( 34 )</pre>
<pre style="padding-left: 30px;">)</pre>
<hr />
<pre style="padding-left: 30px;"><strong>// ParseData ( theText; theStartTag; theEndTag; theOccurance)</strong>
//
// Extract the text between two strings.
//
// Parameters:
// theText = the text to parse
// theStartTag = the string that comes before the text to extract
// theEndTag = the string that comes after the text to extract
// theOccurance = the instance of the text to extract
//
// Return Value:
// the instance of text found in theText beween theStartTag and theEndTag based on theOccurance
//</pre>
<pre style="padding-left: 30px;">Let ( [</pre>
<pre style="padding-left: 30px;">theStartPos = Position ( theText ; theStartTag ; 1 ; theOccurance ) ;
theResult = Case (</pre>
<pre style="padding-left: 30px;">// ------------------------------
// If theStartTag was not found, return an empty string.
theStartPos = 0 ; "" ;
// ------------------------------</pre>
<pre style="padding-left: 30px;">// ------------------------------
// If theStartTag was found, get the string we are looking for.
theStartPos &gt; 0 ; 
Let ( [
theStartPos = theStartPos + Length ( theStartTag ) ;
theEndPos = Position ( theText ; theEndTag ; theStartPos ; 1 ) ;
theLengthToKeep = theEndPos - theStartPos;
theResult = Middle ( theText ; theStartPos ; theLengthToKeep ) 
] ; 
theResult
)
// ------------------------------</pre>
<pre style="padding-left: 30px;">) // End case</pre>
<pre style="padding-left: 30px;">] ;</pre>
<pre style="padding-left: 30px;">theResult</pre>
<pre style="padding-left: 30px;">)</pre>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://campsoftware.com/2012/08/filemaker-12-internal-sql-code-formatting/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>VIP Smart Folders for Mac Mountain Lion Mail</title>
		<link>http://campsoftware.com/2012/07/vip-smart-folders-for-mac-mountain-lion-mail/</link>
		<comments>http://campsoftware.com/2012/07/vip-smart-folders-for-mac-mountain-lion-mail/#comments</comments>
		<pubDate>Thu, 26 Jul 2012 17:57:10 +0000</pubDate>
		<dc:creator>Hal Gumbert</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Email]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://campsoftware.com/?p=2397</guid>
		<description><![CDATA[Mountain Lion for Mac OS X, 10.8, was released yesterday. I&#8217;ve been looking forward to using the new Mail VIP feature for a while now. It allows you to mark contacts as a VIP. My goal was to somehow move less important emails to a folder or smart mailbox. To make this happen, I created the<p><a class="excerpt-more blog-excerpt" href="http://campsoftware.com/2012/07/vip-smart-folders-for-mac-mountain-lion-mail/">Read More...</a></p>]]></description>
				<content:encoded><![CDATA[<p>Mountain Lion for Mac OS X, 10.8, was released yesterday. I&#8217;ve been looking forward to using the new Mail VIP feature for a while now. It allows you to mark contacts as a VIP. My goal was to somehow move less important emails to a folder or smart mailbox.</p>
<p>To make this happen, I created the following Smart Mailbox for messages in my Inbox from VIPs.</p>
<p><a href="http://i2.wp.com/campsoftware.com/wp-content/uploads/2012/07/Mail-VIP.png"><img class="alignnone size-full wp-image-2400" title="Mail-VIP" src="http://i2.wp.com/campsoftware.com/wp-content/uploads/2012/07/Mail-VIP.png?resize=640%2C203" alt="" data-recalc-dims="1" /></a></p>
<p>&nbsp;</p>
<p>That allowed me to make an inverse Smart Mailbox of messages in my Inbox NOT from VIPs.</p>
<p><a href="http://i0.wp.com/campsoftware.com/wp-content/uploads/2012/07/Mail-VIP-Not.png"><img class="alignnone size-full wp-image-2399" title="Mail-VIP-Not" src="http://i0.wp.com/campsoftware.com/wp-content/uploads/2012/07/Mail-VIP-Not.png?resize=640%2C201" alt="" data-recalc-dims="1" /></a></p>
<p>With those in place, I now have two Inbox folders that I can use rather than the standard folder. When I&#8217;m working, I can focus on VIPs and when I have time, process the non VIP messages&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://campsoftware.com/2012/07/vip-smart-folders-for-mac-mountain-lion-mail/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Controlling Microsoft Word from FileMaker</title>
		<link>http://campsoftware.com/2012/06/controlling-microsoft-word-from-filemaker/</link>
		<comments>http://campsoftware.com/2012/06/controlling-microsoft-word-from-filemaker/#comments</comments>
		<pubDate>Fri, 15 Jun 2012 18:09:17 +0000</pubDate>
		<dc:creator>Hal Gumbert</dc:creator>
				<category><![CDATA[AppleScript]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[FileMaker]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[MS Office]]></category>
		<category><![CDATA[PDF]]></category>

		<guid isPermaLink="false">http://campsoftware.com/?p=2384</guid>
		<description><![CDATA[We&#8217;re working on a project for a client who gathers and formats data in a FileMaker database. The goal was to create a complexly formatted PDF file where the main content needed to be two columns. So, we tried a few things and found that Microsoft Word could format data in two columns very easily.<p><a class="excerpt-more blog-excerpt" href="http://campsoftware.com/2012/06/controlling-microsoft-word-from-filemaker/">Read More...</a></p>]]></description>
				<content:encoded><![CDATA[<p>We&#8217;re working on a project for a client who gathers and formats data in a FileMaker database. The goal was to create a complexly formatted PDF file where the main content needed to be two columns. So, we tried a few things and found that Microsoft Word could format data in two columns very easily.</p>
<p>We then started to create the Word file by hand noticing that just about everything could be done using keyboard shortcuts, typing, and choosing menus. After a bit of Googling, we found AppleScript steps to type, perform keystrokes, and choose menu items.</p>
<p><span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='640' height='390' src='http://www.youtube.com/embed/hcPNyAFkas0?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0'></iframe></span></p>
<p><a href="http://www.youtube.com/watch?v=hcPNyAFkas0" target="_blank">View on YouTube</a>.</p>
<p><a href="http://www.campsoftware.com/download/MakeWordDoc.fmp12.zip">Download the demo file</a>.</p>
<p>Let us know if you like this&#8230; Also, if you need any help doing something similar, we can help out with the automation.</p>
]]></content:encoded>
			<wfw:commentRss>http://campsoftware.com/2012/06/controlling-microsoft-word-from-filemaker/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Controlling Safari from FileMaker</title>
		<link>http://campsoftware.com/2012/06/controlling-safari-from-filemaker/</link>
		<comments>http://campsoftware.com/2012/06/controlling-safari-from-filemaker/#comments</comments>
		<pubDate>Fri, 01 Jun 2012 18:52:36 +0000</pubDate>
		<dc:creator>Hal Gumbert</dc:creator>
				<category><![CDATA[AppleScript]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[FileMaker]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Automate]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Source]]></category>

		<guid isPermaLink="false">http://campsoftware.com/?p=2370</guid>
		<description><![CDATA[This week we needed to gather data from a website and store the result into a FileMaker database running on Mac. Everything worked great when we manually tested it in Safari, so when we tried it in using the FileMaker Web Viewer we were surprised that the page would not load as it did in<p><a class="excerpt-more blog-excerpt" href="http://campsoftware.com/2012/06/controlling-safari-from-filemaker/">Read More...</a></p>]]></description>
				<content:encoded><![CDATA[<p>This week we needed to gather data from a website and store the result into a FileMaker database running on Mac.</p>
<p>Everything worked great when we manually tested it in Safari, so when we tried it in using the FileMaker Web Viewer we were surprised that the page would not load as it did in Safari. We also considered the script step &#8216;Insert from URL&#8217;, but that wouldn&#8217;t work since navigation of the site is required.</p>
<p>So we thought if it worked in Safari by hand, why not just go in that direction. So we did a few Google searches and found the AppleScript commands that we needed to make it work and came up with the following AppleScript that left :</p>
<p><strong><code>Perform AppleScript as Calculated:</code></strong>&#8220;¶</p>
<p><code> property theURL : \"\"¶<br />
¶<br />
tell application \"Safari\"¶<br />
¶<br />
activate¶<br />
¶<br />
set theURL to URL of current tab of window 1¶<br />
set theURL to theURL &amp; \"&amp;title=" &amp; $title &amp; "\"¶<br />
set URL of document 1 to theURL¶<br />
¶<br />
delay 5¶<br />
¶<br />
tell application \"System Events\"¶<br />
keystroke \"u\" using {command down, option down}¶<br />
delay 1¶<br />
keystroke \"a\" using command down¶<br />
delay 1¶<br />
keystroke \"c\" using command down¶<br />
delay 1¶<br />
keystroke \"w\" using command down¶<br />
delay 1¶<br />
keystroke \"[\" using command down¶<br />
delay 1¶<br />
end tell¶<br />
¶<br />
end tell¶<br />
"</code></p>
<p>This code does the following:</p>
<ul>
<li>Define a property variable call theURL.</li>
<li>Tell Safari to come to the front.</li>
<li>For our needs, we grab the current Window Tab URL.</li>
<li>We append a parameter &#8220;&amp;title=123&#8243; to go to the URL.</li>
<li>We pause 5 seconds to give the page time to load.</li>
<li>Then we use the keyboard to navigate Safari with one second pauses between each step.</li>
<li>Show the Source Code of the Page.</li>
<li>Select all of the Source Code Text.</li>
<li>Copy the Text.</li>
<li>Close the Source Code Window.</li>
<li>Then finally go back to the previous page.</li>
</ul>
<p>Then in our FileMaker script, we simply Paste the Source Code Text into our field.</p>
<p>Let us know what you think and if you have any ideas for this&#8230;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://campsoftware.com/2012/06/controlling-safari-from-filemaker/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
