Archive pour la catégorie 'Applications'

Path Finder: Script to Avoid Warning when Closing a Window with Tabs

Vendredi 5 janvier 2007

With Path Finder 4.6.1, when you close a window with tabs, you get an alert that’s asking if you really want to close all the tabs. This is very annoying. On the Path Finder forum, there is a mention of that, its supposed to be on the todo list for the developpers. Mainwhile, you can use this AppleScript if you want to get rid of the warning. Just put the script in your AppleScript Menu, or better, in your FastScripts menu, set a shortcut (mine is control-w) and there you go. Its not ideal, and I rather attach this script to the File menu of Path Finder, but for that, you need PreFab UI Actions because Path Finder is not « AppleScript attachable ». Well, that’s another reason tempting me to buy this app, and also PreFab UI Browser.

tell application "Path Finder"
  activate
  try
    set allWindows to every finder window
    set mainWindow to item 1 of allWindows
    set go to true
    repeat while go
      try
        set mainWindowName to name of mainWindow as string
        if mainWindowName is equal to "" then return
        tell application "System Events"
          keystroke "w" using command down
        end tell
      on error
        return
      end try
    end repeat
  on error
    return
  end try
end tell

So the only way I have found is to ask each time for the name of the front window, and if the name doesn’t exist, then it means that there are no more windows to process. Since we took a reference to the main window with set mainWindow to item 1 of allWindows, this made sure that we won’t close a Path Finder window that is behind the main Path Finder window.

Typinator 50% off only today

Mardi 12 décembre 2006

I’m not affiliated with Ergonis Software, just a happy user of their Typinator. You can get it for US $9.99 today, a 50% rebate off the regular price. The offer is only available for December 12 2006. If you don’t know what is Typinator here’s the official blurb:

Typinator is an automatic text software that boosts your productivity and eliminates errors by automating the process of inserting frequently used text and graphics.

There’s a number of competitors in this market, but from my experience, Typinator is one of the best.