<?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-5946042138037070458</id><updated>2012-02-16T14:07:23.358-03:00</updated><title type='text'>Coding AppleScript</title><subtitle type='html'>Tips &amp; Tricks &amp; Code &amp; Recipes &amp; Examples</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://applescripter.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5946042138037070458/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://applescripter.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Aurelio Jargas</name><uri>http://www.blogger.com/profile/14623429097044804992</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_7ryPr2n_Wx0/S_KXFS3cnYI/AAAAAAAAAYM/Zz8sd9X9OkY/S220/twitter.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5946042138037070458.post-8983231737912893973</id><published>2007-04-06T11:04:00.000-03:00</published><updated>2007-04-06T14:03:51.906-03:00</updated><title type='text'>AppleScript Studio: Center all windows and panels</title><content type='html'>Your application may use several windows and panels. The main window, the search panel, the progress panel and so on.&lt;br /&gt;&lt;br /&gt;The user can move them freely on the screen and it's a good practice to save and remember those positions.&lt;br /&gt;&lt;br /&gt;But if for any reason you want to reset the windows positions and center them, there's a sweet little command to do it:&lt;br /&gt;&lt;br /&gt;&lt;span class="ascommand"&gt;tell&lt;/span&gt; &lt;span class="ascommand"&gt;every&lt;/span&gt; &lt;span class="askeyword"&gt;window&lt;/span&gt; &lt;span class="ascommand"&gt;to&lt;/span&gt; &lt;span class="askeyword"&gt;center&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This will affect visible and hidden windows (and panels). You can call it on the &lt;strong&gt;awake from nib&lt;/strong&gt; handler to center at startup.&lt;br /&gt;&lt;br /&gt;It may be useful in a multi-screen computer, to rejoin all windows on the main display.&lt;div class="blogger-post-footer"&gt;&lt;br /&gt;&lt;br /&gt;
Found something wrong? Wanna suggest a different approach? Wanna read what others have to say about it? Click on the post title for the comments.&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5946042138037070458-8983231737912893973?l=applescripter.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://applescripter.blogspot.com/feeds/8983231737912893973/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5946042138037070458&amp;postID=8983231737912893973' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5946042138037070458/posts/default/8983231737912893973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5946042138037070458/posts/default/8983231737912893973'/><link rel='alternate' type='text/html' href='http://applescripter.blogspot.com/2007/04/applescript-studio-center-all-windows.html' title='AppleScript Studio: Center all windows and panels'/><author><name>Aurelio Jargas</name><uri>http://www.blogger.com/profile/14623429097044804992</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_7ryPr2n_Wx0/S_KXFS3cnYI/AAAAAAAAAYM/Zz8sd9X9OkY/S220/twitter.png'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5946042138037070458.post-6139199782458977154</id><published>2007-03-24T15:25:00.000-03:00</published><updated>2007-04-06T11:02:18.409-03:00</updated><title type='text'>Prompt user for a file and read it</title><content type='html'>&lt;span class="ascommand"&gt;set&lt;/span&gt; &lt;span class="asvariable"&gt;fileContents&lt;/span&gt; &lt;span class="ascommand"&gt;to&lt;/span&gt; &lt;span class="askeyword"&gt;read&lt;/span&gt; (&lt;span class="askeyword"&gt;choose file&lt;/span&gt;)&lt;br /&gt;&lt;br /&gt;Yes, just that.&lt;div class="blogger-post-footer"&gt;&lt;br /&gt;&lt;br /&gt;
Found something wrong? Wanna suggest a different approach? Wanna read what others have to say about it? Click on the post title for the comments.&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5946042138037070458-6139199782458977154?l=applescripter.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://applescripter.blogspot.com/feeds/6139199782458977154/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5946042138037070458&amp;postID=6139199782458977154' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5946042138037070458/posts/default/6139199782458977154'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5946042138037070458/posts/default/6139199782458977154'/><link rel='alternate' type='text/html' href='http://applescripter.blogspot.com/2007/03/applescript-prompt-user-for-file-and.html' title='Prompt user for a file and read it'/><author><name>Aurelio Jargas</name><uri>http://www.blogger.com/profile/14623429097044804992</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_7ryPr2n_Wx0/S_KXFS3cnYI/AAAAAAAAAYM/Zz8sd9X9OkY/S220/twitter.png'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5946042138037070458.post-3693504990375434244</id><published>2007-03-23T09:00:00.000-03:00</published><updated>2007-04-06T10:56:29.511-03:00</updated><title type='text'>Studio: Disable all controls (buttons) of the window</title><content type='html'>When coding your ApplesScript Studio application, sometimes it's useful to disable all the window's controls. By "controls" I mean every clickable piece, like buttons, popups, sliders and matrices.&lt;br /&gt;&lt;br /&gt;You may want to disable them to avoid user clicks for a short time period, when some processing is occurring or when the application is not yet ready to handle these clicks. It's just a single line:&lt;br /&gt;&lt;br /&gt;&lt;span class="ascommand"&gt;set&lt;/span&gt; &lt;span class="askeyword"&gt;enabled&lt;/span&gt; &lt;span class="ascommand"&gt;of&lt;/span&gt; &lt;span class="ascommand"&gt;every&lt;/span&gt; &lt;span class="askeyword"&gt;control&lt;/span&gt; &lt;span class="ascommand"&gt;of&lt;/span&gt; &lt;span class="askeyword"&gt;window&lt;/span&gt; 1 &lt;span class="ascommand"&gt;to&lt;/span&gt; &lt;span class="askeyword"&gt;false&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To restore all the controls, just change the last word to &lt;span style="font-weight: bold;"&gt;true&lt;/span&gt;. I know you knew it :)&lt;br /&gt;&lt;br /&gt;Remember: always consider the &lt;span style="font-weight: bold;"&gt;every&lt;/span&gt; magic keyword when you need to apply something to a group of elements.&lt;div class="blogger-post-footer"&gt;&lt;br /&gt;&lt;br /&gt;
Found something wrong? Wanna suggest a different approach? Wanna read what others have to say about it? Click on the post title for the comments.&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5946042138037070458-3693504990375434244?l=applescripter.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://applescripter.blogspot.com/feeds/3693504990375434244/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5946042138037070458&amp;postID=3693504990375434244' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5946042138037070458/posts/default/3693504990375434244'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5946042138037070458/posts/default/3693504990375434244'/><link rel='alternate' type='text/html' href='http://applescripter.blogspot.com/2007/03/applescript-studio-disable-all-controls.html' title='Studio: Disable all controls (buttons) of the window'/><author><name>Aurelio Jargas</name><uri>http://www.blogger.com/profile/14623429097044804992</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_7ryPr2n_Wx0/S_KXFS3cnYI/AAAAAAAAAYM/Zz8sd9X9OkY/S220/twitter.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5946042138037070458.post-3021142469240772573</id><published>2007-03-22T03:30:00.000-03:00</published><updated>2007-04-06T10:51:45.486-03:00</updated><title type='text'>Reverse of a string (invert/transpose text)</title><content type='html'>&lt;span class="askeyword"&gt;reverse&lt;/span&gt; &lt;span class="ascommand"&gt;of&lt;/span&gt; &amp;#34;ABCDEF&amp;#34;&lt;br /&gt;&lt;span class="ascomment"&gt;--&lt;/span&gt;&lt;span class="ascomment"&gt; Error&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="askeyword"&gt;characters&lt;/span&gt; &lt;span class="ascommand"&gt;of&lt;/span&gt; &amp;#34;ABCDEF&amp;#34;&lt;br /&gt;&lt;span class="ascomment"&gt;--&lt;/span&gt;&lt;span class="ascomment"&gt; Returns: {&amp;#34;A&amp;#34;, &amp;#34;B&amp;#34;, &amp;#34;C&amp;#34;, &amp;#34;D&amp;#34;, &amp;#34;E&amp;#34;, &amp;#34;F&amp;#34;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="askeyword"&gt;reverse&lt;/span&gt; &lt;span class="ascommand"&gt;of&lt;/span&gt; &lt;span class="askeyword"&gt;characters&lt;/span&gt; &lt;span class="ascommand"&gt;of&lt;/span&gt; &amp;#34;ABCDEF&amp;#34;&lt;br /&gt;&lt;span class="ascomment"&gt;--&lt;/span&gt;&lt;span class="ascomment"&gt; Returns: {&amp;#34;F&amp;#34;, &amp;#34;E&amp;#34;, &amp;#34;D&amp;#34;, &amp;#34;C&amp;#34;, &amp;#34;B&amp;#34;, &amp;#34;A&amp;#34;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="askeyword"&gt;reverse&lt;/span&gt; &lt;span class="ascommand"&gt;of&lt;/span&gt; &lt;span class="askeyword"&gt;characters&lt;/span&gt; &lt;span class="ascommand"&gt;of&lt;/span&gt; &amp;#34;ABCDEF&amp;#34; &lt;span class="ascommand"&gt;as&lt;/span&gt; &lt;span class="askeyword"&gt;text&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;br /&gt;&lt;br /&gt;
Found something wrong? Wanna suggest a different approach? Wanna read what others have to say about it? Click on the post title for the comments.&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5946042138037070458-3021142469240772573?l=applescripter.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://applescripter.blogspot.com/feeds/3021142469240772573/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5946042138037070458&amp;postID=3021142469240772573' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5946042138037070458/posts/default/3021142469240772573'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5946042138037070458/posts/default/3021142469240772573'/><link rel='alternate' type='text/html' href='http://applescripter.blogspot.com/2007/03/applescript-reverse-of-string.html' title='Reverse of a string (invert/transpose text)'/><author><name>Aurelio Jargas</name><uri>http://www.blogger.com/profile/14623429097044804992</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_7ryPr2n_Wx0/S_KXFS3cnYI/AAAAAAAAAYM/Zz8sd9X9OkY/S220/twitter.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5946042138037070458.post-159596130632991732</id><published>2007-03-21T01:56:00.000-03:00</published><updated>2007-04-06T10:54:07.087-03:00</updated><title type='text'>Get the list of folders inside a folder</title><content type='html'>&lt;span class="ascommand"&gt;tell&lt;/span&gt; &lt;span class="askeyword"&gt;application&lt;/span&gt; &amp;#34;Finder&amp;#34;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span class="ascommand"&gt;get&lt;/span&gt; &lt;span class="askeyword"&gt;name&lt;/span&gt; &lt;span class="ascommand"&gt;of&lt;/span&gt; &lt;span class="askeyword"&gt;folders&lt;/span&gt; &lt;span class="ascommand"&gt;of&lt;/span&gt; &lt;span class="askeyword"&gt;folder&lt;/span&gt; (&amp;#34;/Library/Desktop Pictures/&amp;#34; &lt;span class="ascommand"&gt;as&lt;/span&gt; &lt;span class="askeyword"&gt;POSIX file&lt;/span&gt;)&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;br /&gt;&lt;span class="ascomment"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;--&lt;/span&gt;&lt;span class="ascomment"&gt; Returns: {&amp;#34;Abstract&amp;#34;, &amp;#34;Black &amp;#38; White&amp;#34;, &amp;#34;Nature&amp;#34;, &amp;#34;Plants&amp;#34;, &amp;#34;Solid Colors&amp;#34;}&lt;/span&gt;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;br /&gt;&lt;span class="ascommand"&gt;end&lt;/span&gt; &lt;span class="ascommand"&gt;tell&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="ascommand"&gt;tell&lt;/span&gt; &lt;span class="askeyword"&gt;application&lt;/span&gt; &amp;#34;Finder&amp;#34;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;span class="ascommand"&gt;get&lt;/span&gt; &lt;span class="askeyword"&gt;name&lt;/span&gt; &lt;span class="ascommand"&gt;of&lt;/span&gt; &lt;span class="askeyword"&gt;folders&lt;/span&gt; &lt;span class="ascommand"&gt;of&lt;/span&gt; &lt;span class="askeyword"&gt;folder&lt;/span&gt; &amp;#34;Library:Desktop Pictures&amp;#34; &lt;span class="ascommand"&gt;of&lt;/span&gt; &lt;span class="askeyword"&gt;startup disk&lt;/span&gt;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;br /&gt;&lt;span class="ascomment"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;--&lt;/span&gt;&lt;span class="ascomment"&gt; Returns: {&amp;#34;Abstract&amp;#34;, &amp;#34;Black &amp;#38; White&amp;#34;, &amp;#34;Nature&amp;#34;, &amp;#34;Plants&amp;#34;, &amp;#34;Solid Colors&amp;#34;}&lt;/span&gt;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;div class="blogger-post-footer"&gt;&lt;br /&gt;&lt;br /&gt;
Found something wrong? Wanna suggest a different approach? Wanna read what others have to say about it? Click on the post title for the comments.&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5946042138037070458-159596130632991732?l=applescripter.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://applescripter.blogspot.com/feeds/159596130632991732/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5946042138037070458&amp;postID=159596130632991732' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5946042138037070458/posts/default/159596130632991732'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5946042138037070458/posts/default/159596130632991732'/><link rel='alternate' type='text/html' href='http://applescripter.blogspot.com/2007/03/applescript-get-list-of-folders-inside.html' title='Get the list of folders inside a folder'/><author><name>Aurelio Jargas</name><uri>http://www.blogger.com/profile/14623429097044804992</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_7ryPr2n_Wx0/S_KXFS3cnYI/AAAAAAAAAYM/Zz8sd9X9OkY/S220/twitter.png'/></author><thr:total>2</thr:total></entry></feed>
