pfs 353 B

1234567891011121314151617181920
  1. #
  2. # Displays the current Finder.app selection.
  3. #
  4. # Authors:
  5. # Sorin Ionescu <sorin.ionescu@gmail.com>
  6. #
  7. # function pfs {
  8. osascript 2>&1 <<EOF
  9. tell application "Finder" to set the_selection to selection
  10. if the_selection is not {}
  11. repeat with an_item in the_selection
  12. log POSIX path of (an_item as text)
  13. end repeat
  14. end if
  15. EOF
  16. # }