https://github.com/jaybrown/mega-d-l
macOS workflow and shell script to download files from public mega.nz shares using the megatools
https://github.com/jaybrown/mega-d-l
cyberlocker download download-helper download-manager downloader downloadhelper downloadmanager filehoster filesharing macos mega mega-co-nz mega-nz megatools os-x osx service shell-script shellscript workflow
Last synced: 6 months ago
JSON representation
macOS workflow and shell script to download files from public mega.nz shares using the megatools
- Host: GitHub
- URL: https://github.com/jaybrown/mega-d-l
- Owner: JayBrown
- License: mit
- Created: 2017-02-20T12:11:41.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-21T14:40:42.000Z (over 8 years ago)
- Last Synced: 2025-03-28T18:51:58.264Z (6 months ago)
- Topics: cyberlocker, download, download-helper, download-manager, downloader, downloadhelper, downloadmanager, filehoster, filesharing, macos, mega, mega-co-nz, mega-nz, megatools, os-x, osx, service, shell-script, shellscript, workflow
- Language: Shell
- Homepage:
- Size: 15.6 KB
- Stars: 13
- Watchers: 6
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.md
Awesome Lists containing this project
README


[](https://github.com/megous/megatools)
[](https://github.com/alloy/terminal-notifier)
[](https://github.com/JayBrown/MEGA-D-l/blob/master/license.md)# 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 folderYou 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](https://github.com/megous/megatools)* install using [Homebrew](http://brew.sh) with `brew install megatools` (or with a similar manager)
### Main installation
* [Download the latest DMG](https://github.com/JayBrown/MEGA-D-l/releases) and open#### 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 ''` (it has to be in your $PATH)### terminal-notifier [optional, recommended]
More information: [terminal-notifier](https://github.com/alloy/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](http://brew.sh) 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
```