mirror of
https://github.com/jarun/nnn.git
synced 2024-09-11 04:55:25 +03: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
|