Applescript – Quit or Launch Application script.. ( Revised )

In my  previouse  post :  Applescript – Quit or Launch Application if another is or is not running

The script was limited to one master app. The one that if running or not  determines if the slave app launches or quits.

This new script allows you to add as many apps to the master app list and also to the slave list.

Applescript to Close Duplicate Finder windows

Close Duplicate finder windows

Macosxhints Posted  a Applescript  hint on Macosxhints to close duplicate finder windows.

The idea of the script is sometimes you may find you have multiple finder windows open. Many of them leading to the same target (folder). And want a quick way of closing all the duplicate windows.

But I couldn’t understand why it was so long and complicated. So as an excise for myself wrote one that did a similar job

Complexity

The complexity of the script I think comes from the Poster trying to compare open windows by name and creating two lists and then comparing them.

Update. ( The poster has explained that the complexity is in fact due to their script only closing windows in the current space and to trying to get the most speed when the script runs.

Continue reading “Applescript to Close Duplicate Finder windows”

My very first Automator Action

Get Finder window Path.

I had already  wrote some code for an application that could get the path of open Finder windows.

So when I saw a member on  Apple Stack Exchange wanted to get the top level finder window’s path.

I thought it would be simple to throw together something using part of the code in writing a new Automator Action.

It was..

The Action Get first Finder Window Path. Will return the Posix path of the front most open Finder window.

getFinderPath

It is a beta, But is working ok.

First download the Action

 versions

This is for 10.9.x   v103- Action is now placed in Files & Folders in the Automator library


Download “Get first Finder Window Path_10.9 BETA” Get-first-Finder-Window-Path.action_BETA_10.9_103.zip – Downloaded 674 times – 8 KB

This is for System : 10.8


Download “Get first Finder Window Path 10.8” GFFWPath_Action_1.0.2b10.8build.zip%22 – Downloaded 644 times –

This is for System : 10.6


Download “Get first Finder Window Path_10.6” GFFWPath_Action_1.0.2b10.6build.zip – Downloaded 363 times – 8 KB

Then

1, Open the zip and install it by double clicking on the action.

It will go into the Utilities Actions name ‘Get first Finder Window Path’

2, drag it as normal to the workflow area and add for example the ‘Copy to Clipboard’ action below it

Image gallery: