Skip to content

su-mt/tty-airdrop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tty-airdrop

tty-airdrop is a lightweight command-line tool for macOS that allows you to send files over AirDrop directly from the terminal.

Features

  • Send files to nearby Apple devices via AirDrop
  • No need to open Finder or use GUI manually
  • Easy to integrate into scripts or automation tools

Requirements

  • macOS 10.10 or later
  • AirDrop must be enabled

Build

# Compiling

swiftc main.swift -o airdrop -framework AppKit  

# Move the compiled binary to a directory in your PATH
sudo mv airdrop /usr/local/bin

# (Optional) Disable certain input methods if you encounter issues
# such as console output like:
#   2025-07-08 18:43:58.773 airdrop[28187:1118775] +[IMKClient subclass]: chose IMKClient_Legacy
echo "export IMKInputEnabled=NO" >> ~/.bashrc
source ~/.bashrc

Usage

airdrop <file>

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

macOS command-line tool that lets you send files over AirDrop directly from the terminal.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages