Skip to content

JayBrown/MEGA-D-l

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MEGAdl-platform-macos MEGAdl-code-shell MEGAdl-depend-megatools MEGAdl-depend-tnote MEGAdl-license

MEGA D/l

macOS workflow and shell script to download files from public mega.nz shares using the megatools

Minimum OS: OS X 10.8

  • click on a MEGA URL (or select a bunch of MEGA URLs), and select Download from MEGA from Services in the contextual menu
  • on first run, MEGA D/l will ask you to select the location of your MEGA download folder

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.

Installations

megatools [prerequisite]

More information: megatools

  • install using Homebrew with brew install megatools (or with a similar manager)

Main installation

Workflow

  • Double-click on the workflow file to install
  • If you encounter problems, open it with Automator and save/install from there

Main shell script [optional]

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.

  • Move the script megadl.sh to e.g. /usr/local/bin
  • In your shell enter chmod +x /usr/local/bin/megadl.sh
  • Run the script with megadl.sh '<URL>' (it has to be in your $PATH)

terminal-notifier [optional, recommended]

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

  • install using Homebrew with brew install terminal-notifier (or with a similar manager)
  • move or copy terminal-notifier.app from the Homebrew Cellar to a suitable location, e.g. to /Applications, /Applications/Utilities, or $HOME/Applications

Uninstall

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