This repository has been archived on 2022-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
prezto/modules/osx/functions/pfs

16 lines
330 B
Plaintext
Raw Permalink Normal View History

2012-01-31 23:37:51 -05:00
#
# Displays the current Finder.app selection.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
2014-02-02 14:44:22 -05:00
osascript 2>&1 <<EOF
2011-10-11 23:13:58 -04:00
tell application "Finder" to set the_selection to selection
2014-02-02 14:44:22 -05: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-11 23:13:58 -04:00
EOF