mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
17 lines
336 B
AppleScript
Executable file
17 lines
336 B
AppleScript
Executable file
#!/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
|