How do I use AirDrop from the Terminal?
Is there a way to share a file over AirDrop via Terminal on Mountain Lion? How so?
Solution 1:
I have not (yet) figured out a way to send files via Airdrop using the Terminal, but you can set your computer to receive files via Airdrop using the following shell script:
#!/usr/bin/osascript
tell application "Finder"
activate
tell application "System Events" to keystroke "R" using {command down, shift down}
end tell
Solution 2:
There is a tool on Github called terminal-share that claims to offer this functionality:
terminal-share -service airdrop -image path/to/image.jpg
But it's not clear to me how you specify a destination..
Solution 3:
No - the functionality is programmed into the core OS and lacks official hooks supplied by Apple via the command line.