Path Finder by Cocoatech

The file browser with moxie.

Using AppleScript with Path Finder

Path Finder only

Access or reference browser windows

tell application "Path Finder"
   set windows_list to every finder window
   get name of finder window 1
   get bounds of front finder window
end tell

Open a new browser window

tell application "Path Finder"
   PFOpen "/Users/<username>/Desktop" -- passing it a POSIX path
   open (choose folder) -- passing it an alias
   reveal (choose file) -- passing it an alias
end tell

TextMate

Create TextMate Project with current selection

Original post: http://blog.circlesixdesign.com/2007/01/18/textmate-in-pathfinder/

tell application “Path Finder”
    set selection_list to selection
    set ThePath to ””
    if the (count of selection_list) = 1 then
        set theItem to the first item of selection_list
        set ThePath to quoted form of (POSIX path of the theItem as string)
    else
        set file_list to ””
        repeat with one_item in selection_list
            set file_list to file_list & (POSIX path of one_item as string) & ” “
        end repeat
        set ThePath to file_list
    end if
    set TheCommand toopen -a TextMate  “ & ThePath
    do shell script TheCommand
end tell
pf/applescript.txt · Last modified: 2009/03/08 21:05 by binary
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki