<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
      <title>FastScripts - Red Sweater Forums</title>
      <link>http://www.red-sweater.com/forums/categories/fastscripts/p2/feed.rss</link>
      <pubDate>Wed, 19 Jun 13 09:50:32 -0400</pubDate>
         <description>FastScripts - Red Sweater Forums</description>
   <language>en-CA</language>
   <atom:link href="/forums/discussions/feed.rss" rel="self" type="application/rss+xml" />
   <item>
      <title>FastScripts&#039; invoke command</title>
      <link>http://www.red-sweater.com/forums/discussion/1970/fastscripts-invoke-command</link>
      <pubDate>Thu, 28 Jul 2011 10:52:37 -0400</pubDate>
      <dc:creator>ljr</dc:creator>
      <guid isPermaLink="false">1970@/forums/discussions</guid>
      <description><![CDATA[Hi everyone,<br /><br />is it possible to use FastScripts' invoke command in combination with a file path?<br /><br />I am thinking of something more or less like this (which of course does not work):<br /><br />tell app "FastScripts"<br />invoke script item file "Mac:myName:....:someScript.scpt"<br />end<br /><br />I have pretty much understood the basic idea of the invoke command by reading this post: <a href="http://www.red-sweater.com/forums/discussion/comment/363/#Comment_363" target="_blank" rel="nofollow">http://www.red-sweater.com/forums/discussion/comment/363/#Comment_363</a><br /><br />But it seems like quite a detour and I would like to be able to point directly to the scpt file.<br /><br />Thanks in advance<br /><br />Luke<br /><br /><br />Background:<br />I have an AppleScript applet that responds to a url scheme and then launches a series of other scripts.<br />My first approach using "run script" turned out to be way to slow. The second approach via "do shell script" and "osascript" is running faster but it still does not perform as well as FastScripts. So I would love to see FastScripts handle the tasks... :)<br />]]></description>
   </item>
   <item>
      <title>AppleScript and Shortcut Problems</title>
      <link>http://www.red-sweater.com/forums/discussion/1910/applescript-and-shortcut-problems</link>
      <pubDate>Wed, 18 May 2011 02:18:29 -0400</pubDate>
      <dc:creator>mwean</dc:creator>
      <guid isPermaLink="false">1910@/forums/discussions</guid>
      <description><![CDATA[I'm trying to set up an AppleScript to run with a keyboard shortcut. If I select the item from the scripts menu, it works fine, but it doesn't if I use a keyboard shortcut. The applescript simply runs a Ruby script through the shell. So far I've found two problems:<br /><br />-Using a complicated shortcut like cmd-opt-ctrl-shift-\ makes the AppleScript display the dialog "Press Run to run this script, or Quit to quit."<br /><br />-Using a more simple shortcut, the Ruby script is opened with an editor rather than being executed.<br /><br />I'm wondering why the script would behave differently in these situations. Thanks for your help!]]></description>
   </item>
   <item>
      <title>App-specific shortcuts triggering from other apps</title>
      <link>http://www.red-sweater.com/forums/discussion/1370/app-specific-shortcuts-triggering-from-other-apps</link>
      <pubDate>Wed, 10 Feb 2010 17:50:29 -0500</pubDate>
      <dc:creator></dc:creator>
      <guid isPermaLink="false">1370@/forums/discussions</guid>
      <description><![CDATA[Although it says in Preferences/Script Shortcuts that "Shortcuts for scripts within the 'Applications' folder are only active when that application is frontmost", I've found that scripts stored in ~/Library/Scripts/Applications/Mail trigger no matter which application has focus. Am I going wrong somewhere?]]></description>
   </item>
   <item>
      <title>Fastscripts doesn&#039;t export PYTHONPATH to child process</title>
      <link>http://www.red-sweater.com/forums/discussion/1877/fastscripts-doesnt-export-pythonpath-to-child-process</link>
      <pubDate>Tue, 26 Apr 2011 07:26:19 -0400</pubDate>
      <dc:creator>brainysmurf</dc:creator>
      <guid isPermaLink="false">1877@/forums/discussions</guid>
      <description><![CDATA[I was wondering if what is happening on my machine is the way it's supposed to work, because any directories that I have under PYTHONPATH doesn't show up in the sys.path list. Of course, it's easy enough to just append the directory myself in the script itself, but it takes away what PYTHONPATH was set up to do.]]></description>
   </item>
   <item>
      <title>MobileMe syncing of FastScripts settings and scripts</title>
      <link>http://www.red-sweater.com/forums/discussion/1274/mobileme-syncing-of-fastscripts-settings-and-scripts</link>
      <pubDate>Thu, 01 Oct 2009 18:47:10 -0400</pubDate>
      <dc:creator></dc:creator>
      <guid isPermaLink="false">1274@/forums/discussions</guid>
      <description><![CDATA[I would like to use MobileMe iDisk to sync my scripts between systems, and to keep settings such as shortcut-bindings synced as well.<br /><br />Currently, it's possible to sync scripts with iDisk, then have an alias in ~/Library/Scripts that points to the Scripts folder on iDisk.  This works 90%, but I noticed that the Scripts folder doesn't get listed under the "Open Scripts Folder" menu.]]></description>
   </item>
   <item>
      <title>Reveal file in Script Shortcuts via AS</title>
      <link>http://www.red-sweater.com/forums/discussion/1850/reveal-file-in-script-shortcuts-via-as</link>
      <pubDate>Fri, 25 Mar 2011 13:16:46 -0400</pubDate>
      <dc:creator>l_ri</dc:creator>
      <guid isPermaLink="false">1850@/forums/discussions</guid>
      <description><![CDATA[Can you use AppleScript to select a file in Script Shortcuts? (As if it was ⌘-clicked.)<br /><br />I'm looking to write scripts like <i>Finder/reveal in fastscripts.applescript</i> and <i>AppleScript Editor/reveal in fastscripts.applescript</i>.<br /><br />]]></description>
   </item>
   <item>
      <title>Fire and forget scripts</title>
      <link>http://www.red-sweater.com/forums/discussion/22/fire-and-forget-scripts</link>
      <pubDate>Fri, 03 Feb 2006 20:18:24 -0500</pubDate>
      <dc:creator></dc:creator>
      <guid isPermaLink="false">22@/forums/discussions</guid>
      <description><![CDATA[Is it currently possible (or can it be a request)  to have time consuming scripts be started by FastScripts but not restrict one from starting another script.  It seems that with the messaging and also using growl or other system notices, there is not a need to tie up fastscript for notice that a task is finished...]]></description>
   </item>
   <item>
      <title>FS menu shell for developers?</title>
      <link>http://www.red-sweater.com/forums/discussion/1839/fs-menu-shell-for-developers</link>
      <pubDate>Fri, 18 Mar 2011 06:04:59 -0400</pubDate>
      <dc:creator>Boodlums</dc:creator>
      <guid isPermaLink="false">1839@/forums/discussions</guid>
      <description><![CDATA[Would it be possible to fork a branch of FS and make it into something where an AppleScripter could generate a standalone script runner?<br /><br />Would it be possible to have custom dialogs as well?<br /><br />I looked at both Smile and AS Studio, but neither really does what I need, and we know FaceSpan is no longer available, and I don't know C, so if it's possible...<br /><br />Or... maybe I can share with you my program plans; you might be interested in working on it? We can talk further in email in that case. :-)<br /><br />thanks,<br />-Walter]]></description>
   </item>
   <item>
      <title>Images in display message</title>
      <link>http://www.red-sweater.com/forums/discussion/1808/images-in-display-message</link>
      <pubDate>Mon, 28 Feb 2011 00:50:59 -0500</pubDate>
      <dc:creator>gabriella</dc:creator>
      <guid isPermaLink="false">1808@/forums/discussions</guid>
      <description><![CDATA[Can i show image in display message?]]></description>
   </item>
   <item>
      <title>Folder Creation Error When Selecting Create  Scripts Folder</title>
      <link>http://www.red-sweater.com/forums/discussion/1789/folder-creation-error-when-selecting-create-scripts-folder</link>
      <pubDate>Sun, 13 Feb 2011 09:04:42 -0500</pubDate>
      <dc:creator>kenclark</dc:creator>
      <guid isPermaLink="false">1789@/forums/discussions</guid>
      <description><![CDATA[When I go to the FastScripts &gt; Create  Scripts folder option for any app, I get the following error in a dialog box.<br /><br />*Folder Creation Error*<br /><br />FastScripts could not create the Scripts folder in your user Library folder.<br /><br />If I go into Finder, I have no problem manually creating the folder (which in turn shows up in the FastScripts menubar fine).<br /><br />I do have this folder hosted on Dropbox, and based on what I read in another post, I created an alias, not a sym link, for my ~/Library/Scripts folder which points to my DropBox Scripts folder.<br /><br />I am assuming this is somehow related to a permissions issue, or possibly my Dropbox setup, so any advice on how to fix this would be much appreciated.<br /><br />Thanks,<br /><br />Ken<br />]]></description>
   </item>
   <item>
      <title>Create three windows of specific size &amp; location</title>
      <link>http://www.red-sweater.com/forums/discussion/1471/create-three-windows-of-specific-size-location</link>
      <pubDate>Thu, 20 May 2010 10:38:57 -0400</pubDate>
      <dc:creator></dc:creator>
      <guid isPermaLink="false">1471@/forums/discussions</guid>
      <description><![CDATA[I am new to FastScripts &amp; AppleScript in general, so please forgive what may be a stupid question.<br /><br />Is it possible to create three Safari windows of 3 specific dimensions on two monitors?<br /><br />Basically I'd like to be able to invoke a script which will open Google in one window on my first monitor, and two other Safari windows (each 50% of the screen) on my main iMac monitor.<br /><br />But I have no idea a) if this is possible or b) where to begin]]></description>
   </item>
   <item>
      <title>Help me troubleshoot</title>
      <link>http://www.red-sweater.com/forums/discussion/1452/help-me-troubleshoot</link>
      <pubDate>Wed, 12 May 2010 06:37:11 -0400</pubDate>
      <dc:creator></dc:creator>
      <guid isPermaLink="false">1452@/forums/discussions</guid>
      <description><![CDATA[I have a script that activates Terminal.app, create a new window before it creates 3 new tabs (for 4 tabs in total) that ssh to a remote server at work. I use it on two different users (independent me and work me) on different Macs. The scripts are on Dropbox, so that they are synchronized to all the computers and users.<br /><br />But for one user the script doesn't work until I allready have created a tab and logged into the remote server. I only get the following error.<br /><br /><div class="PreContainer"><pre><br />Error Number&#58;Can’t get text 1 thru 19 of \&quot;bash — bash\&quot;.<br />-1728<br /></pre></div><br /><br />The script in question:<br /><div class="PreContainer"><pre><br />-- `menu_click`, by Jacob Rus, September 2006<br />-- <br />-- Accepts a list of form&#58; `{\&quot;Finder\&quot;, \&quot;View\&quot;, \&quot;Arrange By\&quot;, \&quot;Date\&quot;}`<br />-- Execute the specified menu item.  In this case, assuming the Finder <br />-- is the active application, arranging the frontmost folder by date.<br /><br />on menu_click(mList)<br />    local appName, topMenu, r<br />    <br />    -- Validate our input<br />    if mList's length &lt; 3 then error \&quot;Menu list is not long enough\&quot;<br />    <br />    -- Set these variables for clarity and brevity later on<br />    set {appName, topMenu} to (items 1 through 2 of mList)<br />    set r to (items 3 through (mList's length) of mList)<br />    <br />    -- This overly-long line calls the menu_recurse function with<br />    -- two arguments&#58; r, and a reference to the top-level menu<br />    tell application \&quot;System Events\&quot; to my menu_click_recurse(r, ((process appName)'s (menu bar 1)'s (menu bar item topMenu)'s (menu topMenu)))<br />end menu_click<br /><br />on menu_click_recurse(mList, parentObject)<br />    local f, r<br />    <br />    -- `f` = first item, `r` = rest of items<br />    set f to item 1 of mList<br />    if mList's length &gt; 1 then set r to (items 2 through (mList's length) of mList)<br />    <br />    -- either actually click the menu item, or recurse again<br />    tell application \&quot;System Events\&quot;<br />        if mList's length is 1 then<br />            click parentObject's menu item f<br />        else<br />            my menu_click_recurse(r, (parentObject's (menu item f)'s (menu f)))<br />        end if<br />    end tell<br />end menu_click_recurse<br /><br />-- Matthew Lambie, November 2007<br />-- http&#58;//lambie.org<br /><br />-- Opens a Terminal with four tabs that then each reconnect to named screen <br />-- sessions or if that window is already opened, reapply focus<br /><br />global window_id<br />global window_name<br />set window_id to 0<br />set window_name to \&quot;\&quot;<br />set user to \&quot;tsd\&quot;<br />set server to \&quot;&lt;servername&gt;\&quot;<br />set user_at to user &amp; \&quot;@\&quot; &amp; server<br /><br />-- MAINLINE<br />tell application \&quot;Terminal\&quot;<br />    activate<br />    <br />    -- get every window id<br />    set w_ids to (id of every window)<br />    <br />    -- with each window id...<br />    repeat with w_id in w_ids<br />        <br />        -- have we found our target window_id?<br />        if window_id is equal to 0 then<br />            <br />            -- load this window's name<br />            set w_name to name of window id w_id<br />            <br />            -- is this the window we're looking for?<br />            if (text 1 thru (count user_at) of w_name) is equal to user_at then<br />                set window_id to w_id<br />                set window_name to name of window id window_id<br />            end if<br />        end if<br />    end repeat<br />    <br />    -- if we have a window_id then we can give that window<br />    -- the focus, otherwise we need to make a new window<br />    -- with four tabs and execute the ssh/screen command in<br />    -- each of those four tab <br />    <br />    if (window_id is not equal to 0) then<br />        -- give that window the focus<br />        set frontmost of window id window_id to true<br />    else<br />        <br />        -- make a new window with the execution of a trivial command<br />        do script \&quot;clear\&quot;<br />        <br />        -- load up the window id of the window we just created<br />        set window_id to id of first window whose frontmost is true<br />        <br />        -- make tabs 2, 3 and 4<br />        repeat with i from 1 to 3<br />            my menu_click({\&quot;Terminal\&quot;, \&quot;Shell\&quot;, \&quot;New Tab\&quot;, \&quot;Ocean\&quot;})<br />        end repeat<br />        <br />        -- for each of the four tabs we've now made<br />        repeat with i from 1 to 4<br />            <br />            -- build the command, then execute it<br />            -- set cmd to \&quot;clear; ssh -t \&quot; &amp; server &amp; \&quot; 'screen -d -R tfg_\&quot; &amp; i &amp; \&quot;'\&quot;<br />            set cmd to \&quot;janus\&quot;<br />            do script cmd in tab i of window id window_id of application \&quot;Terminal\&quot;<br />            <br />        end repeat<br />    end if<br />end tell<br /></pre></div><br /><br />It is a script that I have found on the Internet and edited to fit with my need, the original parts are in the script commented.]]></description>
   </item>
   <item>
      <title>Wrapping a bookmarklet into AppleScript</title>
      <link>http://www.red-sweater.com/forums/discussion/217/wrapping-a-bookmarklet-into-applescript</link>
      <pubDate>Sun, 22 Apr 2007 09:25:48 -0400</pubDate>
      <dc:creator></dc:creator>
      <guid isPermaLink="false">217@/forums/discussions</guid>
      <description><![CDATA[This is not a FastScripts-specific question, but I found an interesting example of using FastScripts at ( <a rel="nofollow" target="_blank" href="http://www.red-sweater.com/blog/293/really-simple-discovery">http://www.red-sweater.com/blog/293/really-simple-discovery</a> ).<br /><br />I wonder what's need to make a bookmarklet into an AppleScript.<br /><br />I think I need to something like:<br /> <div class="PreContainer"><pre>tell application \&quot;Safari\&quot;<br />do JavaScript \&quot;blahblahblah\&quot; in document 1<br />end tell</pre></div><br />I just tossed a bookmarklet code minus the very first "javascript:" in blahblahblah. <br />I'm obviously missing something. Tried several tweaks, but didn't work.<br /><br />Can you give me a little tutoral for me?]]></description>
   </item>
   <item>
      <title>Popping browser to front</title>
      <link>http://www.red-sweater.com/forums/discussion/1414/popping-browser-to-front</link>
      <pubDate>Fri, 30 Apr 2010 18:12:38 -0400</pubDate>
      <dc:creator></dc:creator>
      <guid isPermaLink="false">1414@/forums/discussions</guid>
      <description><![CDATA[I have a bunch of AppleScripts that follow a similar pattern: they take the current clipboard contents, turn it into a URL to an intranet server, and then use "open location" to go to the URL.  In addition, some of them pop up a dialogue to ask for additional info that gets merged into the URL.<br /><br />These scripts worked fine when I was running Leopard and FS 2.3.6.  I recently upgraded to Snow Leopard, and noticed that when the scripts pop up a dialogue, it wasn't brought to the front.  I had to hide all windows to find it.<br /><br />Upgrading to FS 2.5 fixed that problem, but now when those scripts open the location, Safari doesn't pop to the front.  I have to switch to it manually.  This only happens with the scripts that display a dialogue.<br /><br />Adding<br /><br />tell application "Safari" to activate<br /><br />to the end of the script seems to solve the problem, but it would be nice if I didn't have to do this in all the scripts.]]></description>
   </item>
   <item>
      <title>How to make hotkey global?</title>
      <link>http://www.red-sweater.com/forums/discussion/1384/how-to-make-hotkey-global</link>
      <pubDate>Sun, 28 Feb 2010 16:17:44 -0500</pubDate>
      <dc:creator></dc:creator>
      <guid isPermaLink="false">1384@/forums/discussions</guid>
      <description><![CDATA[I have a script called 'open home folder', and i assigned a hotkey to it (command shift space) but it only works if I'm already in finder.  Is there any way to make the hotkey work if I'm in, say Firefox?]]></description>
   </item>
   <item>
      <title>FastScripts hotkey that invoked made available script</title>
      <link>http://www.red-sweater.com/forums/discussion/1376/fastscripts-hotkey-that-invoked-made-available-script</link>
      <pubDate>Mon, 15 Feb 2010 17:42:41 -0500</pubDate>
      <dc:creator></dc:creator>
      <guid isPermaLink="false">1376@/forums/discussions</guid>
      <description><![CDATA[Is there any way to determine the hotkey that invoked the script within the script itself? I'd like to use that as a parameter for the script so that I don't have to write multiple versions of the following script, which lets you choose Terminal.app tabs using CMD+#.<br /><br />tell application "Terminal" to set selected of tab 1 of front window to true]]></description>
   </item>
   <item>
      <title>Removing menubar icon</title>
      <link>http://www.red-sweater.com/forums/discussion/863/removing-menubar-icon</link>
      <pubDate>Mon, 28 Jul 2008 22:32:00 -0400</pubDate>
      <dc:creator></dc:creator>
      <guid isPermaLink="false">863@/forums/discussions</guid>
      <description><![CDATA[Hi,<br /><br />It is possible to run FastScripts in background (like Spark) and hide/disable the menubar icon as I've already assigned keyboard shortcuts to the applescripts I use.<br /><br />Thanks in advance.]]></description>
   </item>
   <item>
      <title>New user to FastScripts - honestly, totally lost</title>
      <link>http://www.red-sweater.com/forums/discussion/1368/new-user-to-fastscripts-honestly-totally-lost</link>
      <pubDate>Mon, 08 Feb 2010 20:47:53 -0500</pubDate>
      <dc:creator></dc:creator>
      <guid isPermaLink="false">1368@/forums/discussions</guid>
      <description><![CDATA[FastScripts installed just fine..<br /><br />its up on the status bar, and all the scripts are  present.<br /><br />Could someone walk me through step by step on how to assign function keys to terminal commands?<br /><br />Im relatively computer literate, but this is ironically kicking my butt..]]></description>
   </item>
   <item>
      <title>FastScript delays since Snow Leopard</title>
      <link>http://www.red-sweater.com/forums/discussion/1257/fastscript-delays-since-snow-leopard</link>
      <pubDate>Wed, 09 Sep 2009 10:46:50 -0400</pubDate>
      <dc:creator></dc:creator>
      <guid isPermaLink="false">1257@/forums/discussions</guid>
      <description><![CDATA[Since (I *think*) upgrading to Snow Leopard I sometimes experience delays of a few seconds between hitting a keyboard shortcut and the execution of scripts. When it happens, the FastScripts menu item icon is blue for the duration of the delay, then it goes back to black and the script runs.<br /><br />The strange thing is that it doesn't happen all the time. After I invoke a script once, it usually triggers quickly after that first time for a short while.<br /><br />I made a screen video:<br /><br /><a rel="nofollow" target="_blank" href="http://gallery.me.com/liyanage/100048">http://gallery.me.com/liyanage/100048</a><br /><br />It's a bit hard to see because the menu bar is tiny, but you can see that the icon turns blue when I hit the shortcut, then it stays that way for several seconds, then the script runs (it resizes the window) and the icon turns black.]]></description>
   </item>
   <item>
      <title>CMD+W</title>
      <link>http://www.red-sweater.com/forums/discussion/1341/cmd-w</link>
      <pubDate>Wed, 13 Jan 2010 09:15:40 -0500</pubDate>
      <dc:creator></dc:creator>
      <guid isPermaLink="false">1341@/forums/discussions</guid>
      <description><![CDATA[Hi There, <br /><br />I'm not quite sure what I've done, and therefore not quite sure how to fix the situation. <br /><br />For some reason, my CMD+W keyboard shortcut has been re-routed from closing windows to opening my FastScripts' menu. Where do I look to change it back? <br /><br />Thanks!<br /><br />Pat Dryburgh]]></description>
   </item>
   <item>
      <title>Run script on application launch</title>
      <link>http://www.red-sweater.com/forums/discussion/1329/run-script-on-application-launch</link>
      <pubDate>Sat, 19 Dec 2009 12:39:29 -0500</pubDate>
      <dc:creator></dc:creator>
      <guid isPermaLink="false">1329@/forums/discussions</guid>
      <description><![CDATA[Hi there,<br /><br />I would like FastScripts to run a script that connects a VPN connection when I launch an application and preferably disconnects the VPN when the application is closed.<br /><br />How can I achieve that?<br /><br />Thanks..]]></description>
   </item>
   <item>
      <title>Why does it take time to run a Mail applescript?</title>
      <link>http://www.red-sweater.com/forums/discussion/1261/why-does-it-take-time-to-run-a-mail-applescript</link>
      <pubDate>Wed, 16 Sep 2009 05:24:47 -0400</pubDate>
      <dc:creator></dc:creator>
      <guid isPermaLink="false">1261@/forums/discussions</guid>
      <description><![CDATA[I've noticed that every time I run a Mail applescript there is a 3-5 second delay before something actually happens in Mail. The next time I run the script everything happens at once, then if I wait for awhile I'm back to the delay. This happens on Snow Leopard and Leopard.<br /><br />I think this is Mail thing but if you have any hint/tips <br /><br /><br />The script:<br /><br />tell application "Mail" to activate<br />tell application "System Events"<br />	tell process "Mail"<br />		tell menu bar 1<br />			click menu bar item "Message"'s menu "Message"'s ¬<br />				menu item "Reply"<br />		end tell<br />		delay 0.5<br />		key code 117 -- Forward Delete<br />		key code 125 using command down -- down arrow<br />		key code 36 -- Return<br />	end tell<br />end tell]]></description>
   </item>
   <item>
      <title>Use FastScripts with Remind</title>
      <link>http://www.red-sweater.com/forums/discussion/751/use-fastscripts-with-remind</link>
      <pubDate>Fri, 18 Apr 2008 15:43:03 -0400</pubDate>
      <dc:creator></dc:creator>
      <guid isPermaLink="false">751@/forums/discussions</guid>
      <description><![CDATA[I use FastScripts to control <a rel="nofollow" target="_blank" href="http://www.43folders.com/2005/02/24/guest-mike-harris-looks-at-remind">Remind</a>, a sophisticated plaintext calendar and alarm program:<br /><br /><span style="text-decoration: underline;">Add a reminder</span>:<br /><div class="PreContainer"><pre>set f to a reference to file ((path to home folder as string) &amp; \&quot;.reminders\&quot;)<br />set remInput to text returned of (display dialog \&quot;REM 6 January 2008 MSG David's birthday.\&quot; &amp; return &amp; \&quot;REM 6 January +7 MSG David's Birthday is %b.\&quot; default answer \&quot;\&quot; buttons {\&quot;OK\&quot;, \&quot;Cancel\&quot;} default button \&quot;OK\&quot; with title \&quot;Enter reminder\&quot;)<br />open for access f with write permission<br />write (\&quot;\n\&quot; &amp; remInput as string) to f starting at eof<br />close access f</pre></div><br /><span style="text-decoration: underline;">Display today's reminders</span> with FastScripts "display message" function:<br /><div class="PreContainer"><pre>set remMessages to do shell script \&quot;/usr/local/bin/rem\&quot;<br />tell application \&quot;FastScripts\&quot;<br />    display message remMessages dismissing after delay 0<br />end tell</pre></div><br />Only Problem is that if you display too much text it doesn't fit onto the screen any more. So it would be good if FastScripts would scale the text automatically so that it fits onto the screen.]]></description>
   </item>
   <item>
      <title>Load Script</title>
      <link>http://www.red-sweater.com/forums/discussion/1276/load-script</link>
      <pubDate>Thu, 08 Oct 2009 00:35:52 -0400</pubDate>
      <dc:creator></dc:creator>
      <guid isPermaLink="false">1276@/forums/discussions</guid>
      <description><![CDATA[I have this AppleScript saved as Script:<br /><br />--some code<br />set mylib to load script (path to desktop as text) &amp; "MyScript"<br />--some code<br /><br />MyScript is also saved as Script.<br /><br />When i run first script using FastScripts, does FastScripts fetch MyScript only once or every time?]]></description>
   </item>
   <item>
      <title>Mystified by error message</title>
      <link>http://www.red-sweater.com/forums/discussion/1269/mystified-by-error-message</link>
      <pubDate>Mon, 28 Sep 2009 04:06:34 -0400</pubDate>
      <dc:creator></dc:creator>
      <guid isPermaLink="false">1269@/forums/discussions</guid>
      <description><![CDATA[I get this: <br /><br /><div class="PreContainer"><pre>Error number&#58; 1<br />Message&#58; <br /></pre></div><br /><br />... when (successfully) running this:<br /><br /><div class="PreContainer"><pre>#!/bin/sh<br />/usr/sbin/diskutil unmountDisk disk1 &gt; /dev/null</pre></div><br /><br />I added the output re-direct to /dev/null to absorb the success report from diskutil. However I get the same error from FS whether the output re-direct is included or not. The Console contains only reports from FS that the disk was successfully unmounted.<br /><br />Any ideas why FS might be throwing an error would be much appreciated. <br /><br />Peter]]></description>
   </item>
   <item>
      <title>Application script should override global shortcuts</title>
      <link>http://www.red-sweater.com/forums/discussion/1226/application-script-should-override-global-shortcuts</link>
      <pubDate>Sat, 01 Aug 2009 15:56:56 -0400</pubDate>
      <dc:creator></dc:creator>
      <guid isPermaLink="false">1226@/forums/discussions</guid>
      <description><![CDATA[If I set the same shortcut for a script within the Applications folder as for a global one, the latter is executed. Or maybe it's not defined.<br /><br />I think the more specific script should take precedence. This way I could set up a switch/case/default scenario for e.g. Cmd+M to do something I need in many applications.]]></description>
   </item>
   <item>
      <title>system events keystroke modifier gets &quot;stuck&quot;</title>
      <link>http://www.red-sweater.com/forums/discussion/1180/system-events-keystroke-modifier-gets-stuck</link>
      <pubDate>Thu, 28 May 2009 14:35:24 -0400</pubDate>
      <dc:creator></dc:creator>
      <guid isPermaLink="false">1180@/forums/discussions</guid>
      <description><![CDATA[i've got a script to select the current line in coda, and it works fine if i run it from script editor but when i run it from fastscripts menu it's acting like "command down" is still in effect for the second keystroke... iow in script editor the following selects the current line, but in fs it selects to the end of the document. is there a way to "clear" the keystroke modifier between script steps? note that i've tried this script in textwrangler too, with the same effect.<br /><br />tell application "Coda"<br />  activate<br />  tell application "System Events" to keystroke (ASCII character 28) using command down<br />  tell application "System Events" to keystroke (ASCII character 31) using shift down<br />end tell]]></description>
   </item>
   <item>
      <title>Environment resolution in shell scripts</title>
      <link>http://www.red-sweater.com/forums/discussion/1170/environment-resolution-in-shell-scripts</link>
      <pubDate>Fri, 15 May 2009 02:56:49 -0400</pubDate>
      <dc:creator></dc:creator>
      <guid isPermaLink="false">1170@/forums/discussions</guid>
      <description><![CDATA[I'm having trouble with the execution environment of ruby scripts through FastScripts.<br /><br />Here's a quick test script:<br /><br /><div class="PreContainer"><pre><br />#!/opt/local/bin/ruby<br />`echo \`/usr/bin/env ruby --version\` &gt; ~/Desktop/out.txt`<br /></pre></div><br /><br />When run from the command line the output file references my Macports installation of ruby:<br /><br /><blockquote class="Quote"><div class="QuoteText"><br />ruby 1.8.7 (2009-04-08 patchlevel 160) [i686-darwin9]<br /></div></blockquote><br /><br />When run through FastScripts I get the Leopard default interpreter:<br /><br /><blockquote class="Quote"><div class="QuoteText"><br />ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0]<br /></div></blockquote><br /><br />Anyone know what's going on here? Hard-coding the path to the Macports ruby interpreter allows me to run the script through FastScripts, but I would prefer not to do so.<br /><br />Thanks<br />Nick]]></description>
   </item>
   <item>
      <title>FastScripts quitting on script error?</title>
      <link>http://www.red-sweater.com/forums/discussion/1167/fastscripts-quitting-on-script-error</link>
      <pubDate>Fri, 08 May 2009 20:31:51 -0400</pubDate>
      <dc:creator></dc:creator>
      <guid isPermaLink="false">1167@/forums/discussions</guid>
      <description><![CDATA[I use a script to manipulate images on the clipboard that I run from a FastScripts shortcut key.<br /><br />When the script runs it checks for the existence of a TIFF image in the clipboard. If not found, the script displays a dialog and quits (because it can't do anything without an image to work on).<br /><br />But Fastscripts ALSO quits, damnit! Why? No doubt my fault but I can't figure this out. So I'd much appreciate any thoughts from the more code-literate. I attach the code of the script below. <br /><br />The offending (?) quit statement is near the top. I've tried this slightly odd formulation ('tell me to continue quit') in an attempt to avoid confusing the applescript engine about what to terminate. But it doesn't stop the termination of FastScripts.<br /><br /><div class="PreContainer"><pre><br />-- <br />-- Make a JPG image and Thumbnail on the Desktop<br />-- Input&#58; TIFF image in the clipboard<br />-- Outputs&#58; 2 JPG image files on Desktop (resized image and thumbnail)<br />-- Expects&#58; Installation of ImageMagick<br />--<br />-- www.petergallagher.com.au &#58;&#58; March 2009 &#58;&#58; No rights claimed<br />-- <br />on bailout()<br />    tell me to continue quit<br />end bailout<br /><br />on run<br />    set tp to 0<br />    repeat with i in clipboard info<br />        if TIFF picture is in i then<br />            set tp to the clipboard as TIFF picture<br />            exit repeat<br />        else<br />            display dialog \&quot;No TIFF in clipboard\&quot;<br />            bailout()<br />        end if<br />    end repeat<br />    if tp is not 0 then<br />        set dt to current date<br />        set ex to \&quot;.tiff\&quot;<br />        set dtstr to (time of dt as string)<br />        set pt to ((path to temporary items from user domain as string) &amp; dtstr &amp; ex)<br />        set tf to open for access file pt with write permission<br />        try<br />            write tp to tf<br />            close access tf<br />        on error<br />            close access tf<br />        end try<br />        try<br />            tell me to convertIt((the quoted form of the POSIX path of pt), (the quoted form of the POSIX path of ((path to desktop folder as string) &amp; dtstr &amp; \&quot;.jpg\&quot;)))<br />            tell me to makeThumb((POSIX path of (path to desktop folder as string)), dtstr)<br />        on error errMsg<br />            display dialog errMsg<br />            quit<br />        end try<br />    end if<br />end run<br /><br />on convertIt(theFilePath, theFileName)<br />    set myConvScript to ¬<br />        \&quot;/opt/local/bin/convert -filter Lanczos -strip -resize 'x600&gt;' -sigmoidal-contrast 1,50 -unsharp 0.5x0.5+0.2+0.0 -quality 75 \&quot; &amp; theFilePath &amp; \&quot; \&quot; &amp; theFileName<br />    try<br />        do shell script (myConvScript)<br />    on error errMsg<br />        display dialog errMsg<br />    end try<br />end convertIt<br /><br />on makeThumb(theFilePath, theFileName)<br />    set myThumbScript to \&quot;/opt/local/bin/convert -strip -resize 'x100&gt;' -sigmoidal-contrast 1,50 -unsharp 0.5x0.5+0.5+0.0 \&quot; &amp; theFilePath &amp; theFileName &amp; \&quot;.jpg\&quot; &amp; \&quot; \&quot; &amp; theFilePath &amp; theFileName &amp; \&quot;_tmb.jpg\&quot;<br />    try<br />        do shell script (myThumbScript)<br />    on error errMsg<br />        display dialog errMsg<br />        quit<br />    end try<br />end makeThumb<br /></pre></div>]]></description>
   </item>
   <item>
      <title>Using NUMBERS in Keyboard Shortcuts</title>
      <link>http://www.red-sweater.com/forums/discussion/1080/using-numbers-in-keyboard-shortcuts</link>
      <pubDate>Thu, 12 Feb 2009 11:43:50 -0500</pubDate>
      <dc:creator></dc:creator>
      <guid isPermaLink="false">1080@/forums/discussions</guid>
      <description><![CDATA[Dumb question, I'm sure, but I'm stumped - sorry if this has been asked/answered before.<br /><br />I've set up a few shortcuts to use when hitting cmd+1, cmd+2, etc on the number pad on the right side of the keyboard.<br /><br />I'd like to be able to also use these same shortcuts with the number keys along the top row of the keyboard, but FastScripts will only allow one or the other, not both.<br /><br />Am I missing something?]]></description>
   </item>
   </channel>
</rss>