1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-23 05:38:01 +00:00
prezto/modules/osx/functions/pfs

20 lines
353 B
Plaintext
Raw Normal View History

2012-02-01 04:37:51 +00:00
#
# Displays the current Finder.app selection.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# function pfs {
2014-02-02 19:44:22 +00:00
osascript 2>&1 <<EOF
2011-10-12 03:13:58 +00:00
tell application "Finder" to set the_selection to selection
2014-02-02 19:44:22 +00: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 03:13:58 +00:00
EOF
# }