Antwort #17: März 28, 2006, 02:11:14
Das schreit geradezu nach Applescript, wenn man sich keine zusätzliche Programme aufbürden will:
tell application "Finder"
set thepath to ((the folder of the front window) as string) as POSIX file
end tell
set the clipboard to thepath as text
Funktioniert allerdings nur mit Ordnern. Im AppleScript-Editor als Programm speichern, das Script in das Dock legen und beim Aufruf wird der Pfad des vordersten Finder-Fensters in das Clipboard kopiert. Den Zusatz "as POSIX file" kann man weglassen, wenn man die klassische Darstellung des Pfades bevorzugt, also statt "Festplatte/Users/Username" lieber "Festplatte:Users:Username" verwenden möchte.
_______
Dr. Jones: Well I can assure you, Detective Britten, that this is not a dream. What?
Michael: That's exactly what the other shrink said. (Awake 1x01)