macOS workflow and shell script to download files from public mega.nz shares using the megatools
MIT License
macOS workflow and shell script to download files from public mega.nz shares using the megatools
Minimum OS: OS X 10.8
You can reset your download folder choice by running the following command:
rm -rf $HOME/Library/Preferences/local.lcars.MEGAdl.plist
After that MEGA D/l will let you select a different MEGA download folder.
More information: megatools
brew install megatools
(or with a similar manager)Only necessary if for some reason you want to run this from the shell or another shell script. For normal use the workflow will be sufficient.
megadl.sh
to e.g. /usr/local/bin
chmod +x /usr/local/bin/megadl.sh
megadl.sh '<URL>'
(it has to be in your $PATH)More information: terminal-notifier
You need to have Spotlight enabled for mdfind
to locate the terminal-notifier.app on your volume; if you don't install terminal-notifier, or if you have deactivated Spotlight, the MEGA D/l scripts will call notifications via AppleScript instead
brew install terminal-notifier
(or with a similar manager)terminal-notifier.app
from the Homebrew Cellar to a suitable location, e.g. to /Applications
, /Applications/Utilities
, or $HOME/Applications
Remove the following files or folders:
/path/to/your/MEGADownloadFolder/MEGAdupes
$HOME/Library/Caches/local.lcars.MEGAdl
$HOME/Library/Preferences/local.lcars.MEGAdl.plist
$HOME/Library/Services/Download\ from\ MEGA.workflow
/usr/local/bin/megadl.sh