GithubHelp home page GithubHelp logo

jaybrown / mega-d-l Goto Github PK

View Code? Open in Web Editor NEW
11.0 7.0 6.0 16 KB

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

License: MIT License

Shell 100.00%
mega mega-co-nz mega-nz megatools macos osx os-x downloader service workflow

mega-d-l's Introduction

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

mega-d-l's People

Contributors

jaybrown avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.