<?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>tech stuff</title>
	<atom:link href="http://sibr.com/blog/index.php?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://sibr.com/blog</link>
	<description>Simon&#039;s FileMaker and Mac OS tech tidbits</description>
	<lastBuildDate>Wed, 28 Dec 2011 05:27:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Gooey Gadgets 0.3.9</title>
		<link>http://sibr.com/blog/?p=137</link>
		<comments>http://sibr.com/blog/?p=137#comments</comments>
		<pubDate>Wed, 12 Oct 2011 00:41:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Applescript]]></category>
		<category><![CDATA[Scripting Addition]]></category>
		<category><![CDATA[User Interface]]></category>

		<guid isPermaLink="false">http://sibr.com/blog/?p=137</guid>
		<description><![CDATA[This is mainly a bug fix to restore several functions that were broken with Lion (10.7). Some issues with optional parameters remain with PowerPC version however. As usual, includes both an AppleScript and a .fp7 demo file. Download at http://sibr.com/downloads/Gooey Gadgets.zip]]></description>
			<content:encoded><![CDATA[<p>This is mainly a bug fix to restore several functions that were broken with Lion (10.7). Some issues with optional parameters remain with PowerPC version however.</p>
<p>As usual, includes both an AppleScript and a .fp7 demo file.</p>
<p>Download at <a href="http://sibr.com/downloads/Gooey Gadgets.zip">http://sibr.com/downloads/Gooey Gadgets.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sibr.com/blog/?feed=rss2&#038;p=137</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gooey Gadgets 0.37</title>
		<link>http://sibr.com/blog/?p=132</link>
		<comments>http://sibr.com/blog/?p=132#comments</comments>
		<pubDate>Wed, 15 Jun 2011 04:22:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sibr.com/blog/?p=132</guid>
		<description><![CDATA[This is small background app I wrote a while ago, and just rev&#8217;d it once again. Recapping things, it is a small background application for adding UI functionality that is not easily available in either AppleScript or Filemaker. It supports the following UI elements: • Message Window: display a single line of text sized to [...]]]></description>
			<content:encoded><![CDATA[<p>This is small background app I wrote a while ago, and just rev&#8217;d it once again.</p>
<p>Recapping things, it is a small background application for adding UI functionality that is not easily available in either AppleScript or Filemaker. It supports the following UI elements:</p>
<p>• <strong>Message Window</strong>: display a single line of text sized to fit across entire width of screen (like Address Book)<br />
• <strong>Progress Window</strong>: smaller window displaying a progress control and a cancel button<br />
• <strong>Table Window</strong>: displays list data in a row &#038; column format<br />
• <strong>Text Window</strong>: for larger amounts of text that won&#8217;t fit in a typical dialog</p>
<p>Includes both an AppleScript and a .fp7 demo file.</p>
<p>Download at <a href="http://sibr.com/downloads/Gooey Gadgets.zip">http://sibr.com/downloads/Gooey Gadgets.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sibr.com/blog/?feed=rss2&#038;p=132</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Use Bonjour name to connect to a system</title>
		<link>http://sibr.com/blog/?p=108</link>
		<comments>http://sibr.com/blog/?p=108#comments</comments>
		<pubDate>Fri, 27 May 2011 00:55:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sibr.com/blog/?p=108</guid>
		<description><![CDATA[Many servers and devices, especially those that are Mac OS based, use Bonjour to broadcast their location. On a few occasions, I&#8217;ve known that a particular server or workstation was on the network, but not its address. This tip has two parts to it. The first part of this, and more commonly known, is how [...]]]></description>
			<content:encoded><![CDATA[<p>Many servers and devices, especially those that are Mac OS based, use <a href="http://en.wikipedia.org/wiki/Bonjour_(software)">Bonjour</a> to broadcast their location. On a few occasions, I&#8217;ve known that a particular server or workstation was on the network, but not its address.</p>
<p>This tip has two parts to it. The first part of this, and more commonly known, is how you can use a system&#8217;s computer (Bonjour) name to contact a system. You can see this for a file server if you go to the Finder&#8217;s <a href="http://support.apple.com/kb/HT2645?viewlocale=en_US">Network browse</a> folder.</p>
<p><a href="http://sibr.com/blog/wp-content/uploads/2011/05/Network-Window.gif"><img src="http://sibr.com/blog/wp-content/uploads/2011/05/Network-Window-300x68.gif" alt="" title="Network Window" width="300" height="68" class="alignnone size-medium wp-image-110" /></a></p>
<p>In the example above, there is only one system broadcasting its availability, and showing its name as iMacIntel. From here, I could connect to the system if it was a file server or share its screen if screen sharing (AKA VNC) was enabled. But what if I want to connect via SSH or ping it. Since I know its Bonjour name, I can ping the system in the Terminal by adding .local as a suffix like so:</p>
<p><code>ping imacintel.local</code></p>
<p>Now that we know how to use a system&#8217;s name as a hostname, how do we find a system if it isn&#8217;t showing up in the network view? That will be in the next post.</p>
]]></content:encoded>
			<wfw:commentRss>http://sibr.com/blog/?feed=rss2&#038;p=108</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gooey Gadgets 0.36</title>
		<link>http://sibr.com/blog/?p=104</link>
		<comments>http://sibr.com/blog/?p=104#comments</comments>
		<pubDate>Sun, 23 Jan 2011 06:41:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Applescript]]></category>
		<category><![CDATA[Scripting Addition]]></category>
		<category><![CDATA[User Interface]]></category>

		<guid isPermaLink="false">http://sibr.com/blog/?p=104</guid>
		<description><![CDATA[New version of the AppleScript UI add-on available.]]></description>
			<content:encoded><![CDATA[<p>This version adds the <strong>display table window</strong> AppleScript command to display lists of data in a column &#038; row format. Here&#8217;s an example of what it looks like and how to use from AppleScript:</p>
<p><a href="http://sibr.com/blog/wp-content/uploads/2011/01/table-window.tiff"><img src="http://sibr.com/blog/wp-content/uploads/2011/01/table-window.tiff" alt="" title="table window example" class="alignnone size-full wp-image-95" /></a></p>
<blockquote><p>display table window &#8220;Table Title&#8221; label &#8220;my rows and columns&#8221; data {{&#8220;1&#8243;, &#8220;one&#8221;, &#8220;uno&#8221;}, {&#8220;2&#8243;, &#8220;two&#8221;, &#8220;dos&#8221;}, {&#8220;3&#8243;, &#8220;three&#8221;, &#8220;tres&#8221;}}</p></blockquote>
<p>Download at <a href="http://sibr.com/downloads/Gooey%20Gadgets.zip">http://sibr.com/downloads/Gooey Gadgets.zip</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://sibr.com/blog/?feed=rss2&#038;p=104</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gooey Gadgets 0.3.0</title>
		<link>http://sibr.com/blog/?p=83</link>
		<comments>http://sibr.com/blog/?p=83#comments</comments>
		<pubDate>Sun, 09 Jan 2011 20:42:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Applescript]]></category>
		<category><![CDATA[Scripting Addition]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[User Interface]]></category>

		<guid isPermaLink="false">http://sibr.com/blog/?p=83</guid>
		<description><![CDATA[Since my last post I&#8217;m now up to version 0.3.0, which includes a new command, display text window. This command can be used to display larger amounts of text in a dialog. Currently, the text inside this window is editable. However, there is probably no easy way to properly support the editing of text, so [...]]]></description>
			<content:encoded><![CDATA[<p>Since my last post I&#8217;m now up to version 0.3.0, which includes a new command, <strong>display text window</strong>. This command can be used to display larger amounts of text in a dialog. Currently, the text inside this window is editable. However, there is probably no easy way to properly support the editing of text, so it&#8217;s likely this will change to a static view soon. Here&#8217;s an example of what it looks like and how to use from AppleScript:</p>
<p><a href="http://sibr.com/blog/wp-content/uploads/2011/01/text-window.png"><img src="http://sibr.com/blog/wp-content/uploads/2011/01/text-window.png" alt="" title="text window" width="375" height="292" class="alignnone size-full wp-image-85" /></a></p>
<blockquote><p>display text window &#8220;Text Title&#8221; label &#8220;Log from: /var/log/system.log&#8221; message (do shell script &#8220;cat /var/log/system.log&#8221;)
</p></blockquote>
<p>There have also been some minor changes to the parameters used for the <strong>update window</strong> and <strong>display progress window</strong> commands so that they are consistent with <strong>display text window</strong>. These may require you to edit or recompile any scripts to use the new version.</p>
<p>Download at <a href="http://sibr.com/downloads/Gooey%20Gadgets.zip">http://sibr.com/downloads/Gooey Gadgets.zip</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://sibr.com/blog/?feed=rss2&#038;p=83</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gooey Gadgets 0.2.1</title>
		<link>http://sibr.com/blog/?p=70</link>
		<comments>http://sibr.com/blog/?p=70#comments</comments>
		<pubDate>Mon, 03 Jan 2011 03:14:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Applescript]]></category>
		<category><![CDATA[Scripting Addition]]></category>
		<category><![CDATA[User Interface]]></category>

		<guid isPermaLink="false">http://sibr.com/blog/?p=70</guid>
		<description><![CDATA[I&#8217;ve updated the app with some improvements to the original show message window command, added a new display progress window command, and included a couple of example files showing how to use the app. There&#8217;s one glaring omission in the current version: how to detect when the user has canceled the progress dialog. For that, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve updated the app with some improvements to the original <strong>show message window</strong> command, added a new <strong>display progress window</strong> command, and included a couple of example files showing how to use the app.</p>
<p>There&#8217;s one glaring omission in the current version: how to detect when the user has canceled the progress dialog. For that, I&#8217;ll probably add a <strong>list windows</strong> function, or something similar.</p>
<p>I did some investigation into creating a windows Applescript class of its own. This would be especially helpful with implementing the features for the progress window so you could say something <strong>set title of window 1 to &#8220;Hi&#8221;</strong>. However, adding support for a class requires a significant amount of work, and I&#8217;d rather spend the time right now on adding more interface elements. So any improvements on the object oriented front will have to wait.</p>
<p>Once again, the download link is at:</p>
<p><a href="http://sibr.com/downloads/Gooey%20Gadgets.zip">http://sibr.com/downloads/Gooey Gadgets.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sibr.com/blog/?feed=rss2&#038;p=70</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Display Large Type window à la Address Book</title>
		<link>http://sibr.com/blog/?p=24</link>
		<comments>http://sibr.com/blog/?p=24#comments</comments>
		<pubDate>Mon, 27 Dec 2010 23:49:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Applescript]]></category>
		<category><![CDATA[Scripting Addition]]></category>
		<category><![CDATA[User Interface]]></category>

		<guid isPermaLink="false">http://sibr.com/blog/?p=24</guid>
		<description><![CDATA[There&#8217;s a few times I would&#8217;ve like to prominently display a phone number or some other piece of information from a script or FileMaker. Apple&#8217;s Address Book application makes good use of this. If you right-click on a phone number you get this: There&#8217;s a nice utility by the name of BigHonkingText that comes pretty [...]]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s a few times I would&#8217;ve like to prominently display a phone number or some other piece of information from a script or FileMaker. Apple&#8217;s Address Book application makes good use of this. If you right-click on a phone number you get this:</p>
<p><a href="http://sibr.com/blog/wp-content/uploads/2010/12/window-example2.png"><img class="alignnone size-full wp-image-27" title="window example" src="http://sibr.com/blog/wp-content/uploads/2010/12/window-example2.png" alt="" width="647" height="114" /></a></p>
<p>There&#8217;s a nice utility by the name of BigHonkingText that comes pretty close to this, but you must execute it via the command line, and has a few small differences from Address Book in its implementation</p>
<p>Since I was hoping for an all AppleScript solution and was trying to get as close a match as possible, I&#8217;ve cooked up an app of my own for this.</p>
<p>Called Gooey Gadgets, it is a faceless &#8220;helper&#8221; applcation that has the following commands:</p>
<div><strong>dismiss window</strong> v : close given window</div>
<div><strong>&nbsp;dismiss window</strong> integer : the window number to close</div>
<div>&nbsp;&nbsp;→ boolean : returns true if the window was found</div>
<p></p>
<div><strong>display message window</strong> v : Create a translucent window with one line message</div>
<div><strong>&nbsp;display message window</strong> text : a brief message to display</div>
<div><strong>&nbsp;&nbsp;[giving up after</strong> integer]: number of seconds to wait before dismissing window</div>
<div><strong>&nbsp;&nbsp;[screen</strong> point]: X,Y coordinates for any point within screen to be used to display the window</div>
<div><strong>&nbsp;&nbsp;[transparency</strong> integer]: the window&#8217;s background transparency (alpha) as a percentage</div>
<div>&nbsp;&nbsp;→ integer : the window id</div>
<div>
<ul>
<li>The <strong>screen</strong> coordinates are an optional value that you can use to make sure the message displays on the same screen as your other script or Filemaker windows. However they are in the coordinate system that Cocoa uses, which has the inverse Y-axis from what Filemaker uses for Get (WindowTop).</li>
<li>The <strong>giving up after</strong> parameter works the same way as Applescript&#8217;s <strong>Display Dialog</strong> command, allowing you to set a maximum time for the window to display (the user may click on the window to dismiss it before then).</li>
<li>The <strong>transparency</strong> parameter is not yet implemented, so its value is ignored.</li>
</ul>
</div>
<div>An example of its usage looks like this:</div>
<blockquote>
<div><strong>tell</strong> <em>application</em> id &#8221;com.sibr.gooeygadgets&#8221; &#8211; could&#8217;ve also used app name instead</div>
<div><strong>&nbsp;set</strong> x <strong>to</strong> <strong>display message window</strong> &#8220;big message&#8221;</div>
<div><strong>&nbsp;delay</strong> 4</div>
<div><strong>&nbsp;dismiss window</strong> x &#8211; Gooey Gadgets will now quit if this is the last open window</div>
<div><strong>end tell</strong></div>
</blockquote>
<div>
<p><strong> </strong></p>
</div>
<div>I have also included command line support, and the options look like this:</div>
<div><strong>Gooey Gadgets.app/Contents/MacOS/Gooey Gadgets -cmd messagewindow [-giveup seconds] [-screenx num] [-screeny num] <span style="text-decoration: underline;">message</span></strong></div>
<p></p>
<div>The path used is an artifact of the fact that the command line must execute the actual application binary, not the application&#8217;s package folder. So if the application is at /_Projects, a command line example would be:</div>
<blockquote><p>
<code>/_Projects/Gooey\ Gadgets/build/Release/Gooey\ Gadgets.app/Contents/MacOS/Gooey\ Gadgets -cmd messagewindow -giveup 2 &quot;(510) 835-4483&quot;</code></p>
<div>
<div>
<p><span style="font-family: Verdana;"><strong> </strong></span></p>
<p><strong> </strong></p>
</div>
</div>
<div>
<div></div>
</div>
</blockquote>
<p>Download the most recent version at:</p>
<p><a title="Gooey Gadgets download" href="http://sibr.com/downloads/Gooey Gadgets.zip">Gooey Gadgets.app.zip</a></p>
<p>After downloading, move it out of your Downloads folder. The first time you run it, you may need to OK the application as safe to run.</p>
<div>PS: Excuse the formatting messiness above. The blog software wasn&#8217;t kind to my cut-and-pasting.</div>
]]></content:encoded>
			<wfw:commentRss>http://sibr.com/blog/?feed=rss2&#038;p=24</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New version of bBox FileMaker plugin</title>
		<link>http://sibr.com/blog/?p=16</link>
		<comments>http://sibr.com/blog/?p=16#comments</comments>
		<pubDate>Mon, 27 Dec 2010 22:35:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[filemaker]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://sibr.com/blog/?p=16</guid>
		<description><![CDATA[One of my work/personal projects has been a FileMaker external plug-in for the Mac OS called bBox. The main push with this recently has was to include access to the Python scripting language. Previously, using bBox&#8217;s existing bBox_Shell function I could&#8217;ve called a Python script this way: Set Variable [ $script; Value:"xs = 'He' + [...]]]></description>
			<content:encoded><![CDATA[<p>One of my work/personal projects has been a FileMaker external plug-in for the Mac OS called bBox. The main push with this recently has was to include access to the Python scripting language. Previously, using bBox&#8217;s existing bBox_Shell function I could&#8217;ve called a Python script this way:</p>
<blockquote><p><strong>Set Variable </strong>[ $script; Value:"xs = 'He' + 'llo'; print xs # Complicated way to say hello" ]</p>
<p><strong>Set Variable </strong>[ $res; Value:bBox_Shell( 0; "python -c \"" &amp; $script &amp; "\"") ]</p>
<p><strong>Show Custom Dialog </strong>[ Title: "Python"; Message: $res; Buttons: “OK” ]</p></blockquote>
<p>That&#8217;s definitely do-able. But you&#8217;ll likely have to reformat your scripts, and be careful about quoting or escaping characters. Alternatively, you could first ensure that your script had first been saved out to a file, perhaps by using FileMaker&#8217;s Export Records command.</p>
<p>But instead, I can now write something like the following from a FileMaker script:</p>
<blockquote><p><strong>Set Variable </strong>[ $script; Value:"# Complicated way to say hello. xs = 'He' + 'llo'</p>
<p>print xs "]</p>
<p><strong>Set Variable </strong>[ $res; Value:bBox_PythonCompile( 0; $script ) ]</p>
<p><strong>If </strong>[ $res = "" ]</p>
<p><strong> Set Variable </strong>[ $res; Value:bBox_PythonExecute( 0 ) ]</p>
<p><strong> Set Variable </strong>[ $ig; Value:bBox_PythonFinalize ]</p>
<p><strong>End If</strong></p></blockquote>
<p>You may be wondering why it takes three function calls to execute such a simple script. There are three reasons for this. Most obviously, a script can be executed multiple times but only needs to be executed once. A related, but less obvious reason is the need to setup and then teardown the Python environment, which is significant for a short script like this. Finally, it allows the option of setting or retrieving Python variables from FileMaker, which can now be done with the bBox_PythonSetVar and bBox_PythonGetVar functions.</p>
]]></content:encoded>
			<wfw:commentRss>http://sibr.com/blog/?feed=rss2&#038;p=16</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Now on Twitter as @sibrcode</title>
		<link>http://sibr.com/blog/?p=15</link>
		<comments>http://sibr.com/blog/?p=15#comments</comments>
		<pubDate>Sat, 02 Jan 2010 20:14:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sibr.com/blog/?p=15</guid>
		<description><![CDATA[OK, well who isn&#8217;t at this point? But I&#8217;ve actually been pleasantly what some people have been doing with it. Personally, I won&#8217;t be tweeting extensively, just occasionally.]]></description>
			<content:encoded><![CDATA[<p>OK, well who isn&#8217;t at this point? But I&#8217;ve actually been pleasantly what some people have been doing with it.</p>
<p>Personally, I won&#8217;t be tweeting extensively, just occasionally.</p>
]]></content:encoded>
			<wfw:commentRss>http://sibr.com/blog/?feed=rss2&#038;p=15</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>bBox FileMaker plug-in for AppleScript, shell, grep, etc.</title>
		<link>http://sibr.com/blog/?p=9</link>
		<comments>http://sibr.com/blog/?p=9#comments</comments>
		<pubDate>Mon, 30 Mar 2009 05:17:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[filemaker]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://sibr.com/blog/?p=9</guid>
		<description><![CDATA[Finally got a new version of my FileMaker plug-in going with a feature that I&#8217;ve been waiting for a long time &#8212; the ability to pass parameters to AppleScript without having to resort passing data through FileMaker globals or other craziness. The best place to find it right now is: http://buzz.beezwax.net/2009/03/19/bbox-filemaker-plug-in-easily-add-applescript-shell-grep-and-more-to-your-filemaker-projects Since it&#8217;s already described [...]]]></description>
			<content:encoded><![CDATA[<p>Finally got a new version of my FileMaker plug-in going with a feature that I&#8217;ve been waiting for a long time &#8212; the ability to pass parameters to AppleScript without having to resort passing data through FileMaker globals or other craziness. The best place to find it right now is:</p>
<p><a title="bBox FileMaker plug-in" href="http://buzz.beezwax.net/2009/03/19/bbox-filemaker-plug-in-easily-add-applescript-shell-grep-and-more-to-your-filemaker-projects">http://buzz.beezwax.net/2009/03/19/bbox-filemaker-plug-in-easily-add-applescript-shell-grep-and-more-to-your-filemaker-projects</a></p>
<p>Since it&#8217;s already described there I won&#8217;t be going into great detail about it. But I do plan on posting some comments on how to make good (or unexpected) use of it .</p>
<p>Here&#8217;s my first easter-egg. In the shell section of the demo file, I&#8217;ve put in some of the Safari preference snippets that I mentioned in <a href="http://sibr.com/blog/?p=3">Hidden preferences, files, and URLs in Safari</a>. Eventually I may get them all in.</p>
]]></content:encoded>
			<wfw:commentRss>http://sibr.com/blog/?feed=rss2&#038;p=9</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

