<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3752712344471911446</id><updated>2012-01-23T01:12:44.232+01:00</updated><category term='FileMaker Pro'/><category term='AppleScript'/><category term='Clip Manager'/><title type='text'>Vincent's digital life</title><subtitle type='html'>Mac OS X, FileMaker Pro, AppleScript, Divalto and random thoughts.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://vincentdigitallife.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3752712344471911446/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://vincentdigitallife.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Vincent</name><uri>http://www.blogger.com/profile/17055420758443800736</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3752712344471911446.post-4145097144622271608</id><published>2008-08-18T03:51:00.020+02:00</published><updated>2008-08-20T16:53:12.949+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FileMaker Pro'/><category scheme='http://www.blogger.com/atom/ns#' term='Clip Manager'/><category scheme='http://www.blogger.com/atom/ns#' term='AppleScript'/><title type='text'>FileMaker Pro : Adding sort ability to list view column automatically</title><content type='html'>Making the columns in list view sortable can be very tedious because you have to attach to each label a button to which you have to affect a sorting script. &lt;div&gt;&lt;br /&gt;&lt;div&gt;FileMaker allows to pass a parameter to a script that would theoretically permit us to create one script for all columns. Unfortunately, in the particular case of sorting, this is not very helpful because the sorting key can't be a variable. FileMaker forces us to hard code the sorting key in the "Sort" script step.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So, we have to create a sort script step by hand for each sorting key (x2 if we want to have both ascendant and descendant sorting), and then attach the script to each column. Frustrating !&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Fortunately, thanks to Clip Manager 3 AppleScriptability, I was able to cook a much faster solution. With my "List view columns sorter" script, all you need to do is 3 very small steps and a few seconds, and then, regardless the number of columns, you get all you columns sortable ascendingly and descendingly. You can save hours of frustrating work !&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;br /&gt;&lt;object height="259" width="460"&gt; &lt;param name="allowfullscreen" value="true"&gt; &lt;param name="allowscriptaccess" value="always"&gt; &lt;param name="movie" value="http://www.vimeo.com/moogaloop.swf?clip_id=1555066&amp;amp;server=www.vimeo.com&amp;amp;show_title=0&amp;amp;show_byline=0&amp;amp;show_portrait=0&amp;amp;color=00ADEF&amp;amp;fullscreen=1"&gt; &lt;embed src="http://www.vimeo.com/moogaloop.swf?clip_id=1555066&amp;amp;server=www.vimeo.com&amp;amp;show_title=0&amp;amp;show_byline=0&amp;amp;show_portrait=0&amp;amp;color=00ADEF&amp;amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" height="259" width="460"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;As a matter of fact I wrote that solution because I was so frustrated with the manual method that I gave up and  left many columns unsortable in my database.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now, all I have to do is select the labels and fields in layout mode, launch my script, wait a few seconds, re-position the columns (because unfortunately when pasting FileMaker moves the pasted object and there's no way to script the object position).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The only requirement is &lt;a href="http://www.myfmbutler.com/index.lasso?p=422" target="_blank"&gt;myFMbutler Clip Manager 3.0&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Thinks to know about :&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;I STRONGLY advise to set Filemaker to NOT save layout content automatically&lt;/span&gt;, so if something goes wrong you can just go to browse mode and reply no when prompted to save the layout change.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;GUI scripting must be enabled in System Preferences/Universal Access ("Enable access for assistive devices" checked)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Enable FileMaker GUI Scripting and Auto-Paste in FileMaker Pro must be enabled in Clip Manager's preferences.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;You have to select only the labels and fields. No other elements should be selected (borders are ok)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Number of labels and fields should be the same : you can't select 13 fields and only 12 labels&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Labels and fields must be in the same continuous order (because the script knows that the label 1 goes with field 1 because it's the first label and the first field)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;I meant to get the requirements as minimal as possible so I wrote everything in 100% pure AppleScript without requiring any OSAX. However, AppleScript is slow at parsing text, for 10 columns it can take 36 seconds to process (2Ghz intel MacBook Pro). I you want more speed, please install &lt;a href="http://www.satimage.fr/software/en/downloads/index.html" target="_blank"&gt;SATIMAGE'S Smile OSAX&lt;/a&gt;, with it the same 10 columns get processed in … 5 seconds !&lt;br /&gt;&lt;/li&gt;&lt;li&gt;The default name of the sorting script that is generated is  the name of the layout + "column sort". You can change it in scriptmaker afterwards&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Of course, the layout window as to be frontmost&lt;br /&gt;&lt;/li&gt;&lt;li&gt; If you use Clip Manager 3.0 Demo version, you have to launch Clip Manager before invoking the script and make sure you already clicked "OK" on the demo version reminder.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;How does the script work :&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;First it asks FileMaker to cut the selected objects, then that FileMaker clipboard containing all the objects description is transferred to Clip Manager that translates it to a text XML version that AppleScript can manipulate.&lt;/div&gt;&lt;div&gt;Then the AppleScript script will look for the labels and the fields in there particular order from left to right. It will generate the XML code of the Scriptmaker script that will allow the column to be sorted ascendingly/descendingly.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Then it will ask Clip Manager 3.0 to translate that XML to a FileMaker clipboard format and will open the Scriptmaker window and paste it in it thanks to Apple's GUI scripting.&lt;/div&gt;&lt;div&gt;Once that ScriptMaker script created, it will process the XML copied in the beginning to attach to the labels the FileMaker script it just created with the label name as a parameter.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Finally, that modified XML is translated back in the native FileMaker clipboard format by Clip Manager 3.0 and  pasted back in the FileMaker layout by Clip Manager itself.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;You have to reposition the pasted elements because I can't script that position. You should have the object info palette open before and remember the first two numbers once you have selected the elements before invoking the script. Then, once the script just pasted the new elements all you'd have to do is to report back those two numbers in the object info palette.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I left the script unlocked so you can customize it. &lt;a href="http://sites.google.com/site/vincentsdigitallife/Home/listviewcolumnssorterv1.0.zip"&gt;Download it here&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3752712344471911446-4145097144622271608?l=vincentdigitallife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='enclosure' type='video/mp4' href='http://www.blogger.com/video-play.mp4?contentId=ae9fd249606adc9f&amp;type=video%2Fmp4' length='0'/><link rel='enclosure' type='video/mp4' href='http://www.blogger.com/video-play.mp4?contentId=c60faadbbd768011&amp;type=video%2Fmp4' length='0'/><link rel='replies' type='application/atom+xml' href='http://vincentdigitallife.blogspot.com/feeds/4145097144622271608/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3752712344471911446&amp;postID=4145097144622271608' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3752712344471911446/posts/default/4145097144622271608'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3752712344471911446/posts/default/4145097144622271608'/><link rel='alternate' type='text/html' href='http://vincentdigitallife.blogspot.com/2008/08/fmp-adding-sortability-to-list-view.html' title='FileMaker Pro : Adding sort ability to list view column automatically'/><author><name>Vincent</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3752712344471911446.post-2624575725620820742</id><published>2008-08-17T21:48:00.010+02:00</published><updated>2008-08-17T22:34:00.002+02:00</updated><title type='text'>Filemaker Pro : Clip Manager 3.0 a must have tool !</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.myfmbutler.com/website/images/CM3icon.png"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 100px;" src="http://www.myfmbutler.com/website/images/CM3icon.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;FileMaker&lt;/span&gt; Pro development can be tedious for the advanced developer. It's all GUI based development tools are often a burden. Fortunately, thanks to the extensive implementation of copy and paste of objects in the latest &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;FileMaker&lt;/span&gt; releases, a very smart company, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;myFMbutler&lt;/span&gt;, was able to create the tool I waited for years : &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;&lt;a href="http://www.myfmbutler.com/index.lasso?p=422"&gt;myFMbutler Clip Manager 3.0&lt;/a&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Among many things, it lets you edit every &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;FileMaker&lt;/span&gt; object you can copy &amp;amp; paste (scripts, fields, layouts…) as text !&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;What it does is to convert the binary XML  that F&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;ileMaker&lt;/span&gt; generates when you copy an object to textual XML that you can then edit as you want, and then transform it back to F&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;ileMaker&lt;/span&gt; clipboard that you can paste back in F&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;ileMaker&lt;/span&gt; !&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The possibilities are endless, and what would takes you hours to do, can be done in seconds !&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;But before the 3.0 release you couldn't script Clip Manager with A&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;ppleScript&lt;/span&gt;. In fact even in late 3.0 ß you couldn't script it. So I asked &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_9"&gt;myFMbutler&lt;/span&gt; to make it &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_10"&gt;AppleScriptable&lt;/span&gt; and in one hour after my mail, I got an alpha release with &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_11"&gt;AppleScript&lt;/span&gt; support, and in one day a pretty much final one with many more &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_12"&gt;AppleScript&lt;/span&gt; commands ! How awesome is that company ?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In fact, I'm so impressed and grateful to them that this is the reason why I started this blog : to show them that it wasn't a waste of time to add this &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_13"&gt;AppleScript&lt;/span&gt; support and to show you how &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_14"&gt;FileMaker&lt;/span&gt; Pro development can be much quicker with a bit of &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_15"&gt;AppleScript&lt;/span&gt; and Clip Manager. And maybe we could start a community sharing scripts and tricks to speed up &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_16"&gt;FileMaker&lt;/span&gt; Pro development.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So I hope you'll excuse me about this endorsement, but Clip Manager will be an essential tool for many tips I will post here.&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3752712344471911446-2624575725620820742?l=vincentdigitallife.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vincentdigitallife.blogspot.com/feeds/2624575725620820742/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3752712344471911446&amp;postID=2624575725620820742' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3752712344471911446/posts/default/2624575725620820742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3752712344471911446/posts/default/2624575725620820742'/><link rel='alternate' type='text/html' href='http://vincentdigitallife.blogspot.com/2008/08/filemaker-pro-clip-manager-30-must-have.html' title='Filemaker Pro : Clip Manager 3.0 a must have tool !'/><author><name>Vincent</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>
