prezto_config/modules/osx/functions/pfs

16 lines
330 B
Plaintext
Raw Permalink Normal View History

2012-02-01 05:37:51 +01:00
#
# Displays the current Finder.app selection.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
2014-02-02 20:44:22 +01:00
osascript 2>&1 <<EOF
2011-10-12 05:13:58 +02:00
tell application "Finder" to set the_selection to selection
2014-02-02 20:44:22 +01:00
if the_selection is not {}
repeat with an_item in the_selection
log POSIX path of (an_item as text)
end repeat
end if
2011-10-12 05:13:58 +02:00
EOF