Help with Macintosh programming

macintosh programming, mac programming, mac os programming, mac os x programming, mac programming language, mac programing

path of the selected item in the frontmost Finder window ?

How to get the path of the selected item in the frontmost Finder window
(Objective-C, C, shell script or AppleScript script) ?

Same question for selected item in the Desktop.

.
posted by admin in Uncategorized and have Comment (1)

One Response to “path of the selected item in the frontmost Finder window ?”

  1. admin says:

    In article <abz-2212030651420…@192.168.1.100>,
     a…@videotron.ca (Alain Birtz) wrote:

    > How to get the path of the selected item in the frontmost Finder window
    > (Objective-C, C, shell script or AppleScript script) ?
    > Same question for selected item in the Desktop.

    tell application "Finder"
       set theSelection to (selection as string)
       quoted form of POSIX path of theSelection
    end tell

    comes close.

    Reinder