View Single Post
Quote:
Originally Posted by RobTrew View Post
In reponse to a query in another post, I have drafted an edit to jharrison's excellent script for opening project folders.

The edited version allows for the opening of context folders as well as project folders.
A further edit will now open the project or context folder in Cocoatech's Path Finder if it is running on your system (defaulting otherwise to the OS X Finder).

The amended code is simply:
Code:
if application id "com.cocoatech.PathFinder" is running then
	tell application id "com.cocoatech.PathFinder"
		open aliasFolder
		activate
	end tell
else
	tell application id "com.apple.finder"
		open aliasFolder
		activate
	end tell
end if
This opens a new Path Finder window.
You may prefer to select the Project/Context folder in the existing front window of Path Finder:

Code:
tell application id "com.cocoatech.PathFinder"
	select aliasFolder
	activate
end tell

Last edited by RobTrew; 2009-06-29 at 11:30 PM..