mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
17 lines
336 B
Plaintext
17 lines
336 B
Plaintext
|
#!/usr/bin/osascript
|
||
|
|
||
|
# Description: Copy the hovered file to MacOS clipboard.
|
||
|
#
|
||
|
# Note: Supports only MacOS
|
||
|
#
|
||
|
# Shell: POSIX compliant
|
||
|
# Author: Syed Umar Anis
|
||
|
|
||
|
|
||
|
on run args
|
||
|
set filePath to (second item of args & "/" & first item of args)
|
||
|
tell application "Finder"
|
||
|
set the clipboard to (filePath as POSIX file)
|
||
|
end tell
|
||
|
end
|