# Run On Download Complete

> run a program or script when a download completes with save location (filepath) and url of the download as available arguments

Canonical page: [https://chrome-stats.com/d/rodc](https://chrome-stats.com/d/rodc)

## Overview

- **ID:** `rodc`
- **Platform:** Firefox
- **Type:** Firefox add-on
- **Status:** Removed
- **Publisher:** igorlogius
- **Category:** other
- **Daily users:** 3
- **Rating:** 4.00 / 5 (1 ratings)
- **Version:** 0.1.6
- **Last updated:** 2021-08-14
- **First published:** 2021-08-13
- **Size:** 28 KB
- **Data as of:** 2023-01-22
- **Store listing:** [Firefox Add-ons Store](https://addons.mozilla.org/firefox/addon/rodc/)

## Description

run a custom script or programm when a download completes with url and  filepath as arguments

<b>Example usages: </b>
<ol><li>Set extended attributes (xattr) on downloaded files automatically</li><li>Keep a seperate download log</li><li>Run other programms on specific files</li></ol><b>Requires additonal configuration before usage!</b>

<b>One Time Setup (Mac) </b>
tbd. 

<b>One Time Setup (Windows) </b>
tbd. 

<b>One Time Setup (Linux) </b>
<ol><li>Install the Add-On </li><li>Download " (<a href="https://prod.outgoing.prod.webservices.mozgcp.net/v1/a6316a2985dab63eec4ad97e713e0d217a7402ee21b9c17ba0d8bc27b44f00fd/https%3A//github.com/igorlogius/rodc/raw/main/rodc.json" rel="nofollow">rodc.json</a>)"  and  " (<a href="https://prod.outgoing.prod.webservices.mozgcp.net/v1/01916f71190f556f34a3c029224c886574ab4696716a01fa4ee85e279a7309b7/https%3A//github.com/igorlogius/rodc/raw/main/rodc.py" rel="nofollow">run.py</a>)"  and save both to  "$HOME/.mozilla/native-messaging-hosts/"</li><li>Update the "path" attribute in the "run-on-download-complete.json" with the absolute path (no  variables!!!)  to where you put  the "<a href="https://prod.outgoing.prod.webservices.mozgcp.net/v1/01916f71190f556f34a3c029224c886574ab4696716a01fa4ee85e279a7309b7/https%3A//github.com/igorlogius/rodc/raw/main/rodc.py" rel="nofollow">run.py</a>" script </li></ol><b>Usage:</b>
<ol>   
<li>Just download any file with the firefox build-in download mechanism (for Example via the right click menu's &gt; "Save As ..." entry</li></ol><b>Notes: </b>
<ol>    <li>        <i>Permissions:</i>
        <ol><li>"<b>Exchange messages with programs other than Firefox</b>", used to exchange data with user defined external script</li><li>"<b>Download files and read and modify the browser’s download history</b>", used to listen on the onComplete event of a download</li>        </ol>        This add-on tries to use the minimal number of required permissions to successfully fullfill its intended purpose.
        If you think this could be improved please let me know by opening an issue (see. below) and i will try to look into it.
    </li>    <li>        <i>Cost/Payment:</i>
        This Add-on is and forever will be subscription and payment free to use for everyone however they like.
        If you are feeling generous you can send me a tip via my bitcoin address 35WK2GqZHPutywCdbHKa9BQ52GND3Pd6h4
    </li>    <li>        <i>Stars/Reviews:</i>
        If this this add-on was useful for you, please leave some stars or a review so others can find it more easily.
    </li>    <li>        <i>Bugs, Suggestions and Requests:</i>
        If you have any (e.g. a site it does not work but you think it should) or have improvement suggestions or feature request please open an issue here:  	<a href="https://prod.outgoing.prod.webservices.mozgcp.net/v1/0a45929c395a66a4ac011832086c390f9eedc970163b9fdbfdcc76488d13a880/https%3A//github.com/igorlogius/rodc/issues" rel="nofollow">https://github.com/igorlogius/rodc/issues</a>
    </li></ol>

## Permissions and access

### Permissions

- `nativeMessaging`
- `downloads`

## Safety

- **Risk impact:** Low risk impact
- **Risk likelihood:** High risk likelihood

### Analysis details

- Facilitates communication between extensions and native applications, usually low risk if managed correctly.
- This extension is not longer available in the store

> Some risk analysis details are omitted from this free response. [Upgrade to view the full analysis](https://chrome-stats.com/pricing).

## Similar extensions and apps

- [Forward Downloads](https://chrome-stats.com/d/fwdl) — 1 users
- [OpenDownload3](https://chrome-stats.com/d/opendownload3) — 9 users
- [commandrun](https://chrome-stats.com/d/commandrun) — 16 users, 3.00 / 5
- [Context command executor](https://chrome-stats.com/d/context-command-executor) — 11 users, 4.67 / 5
- [ConditionalRun](https://chrome-stats.com/d/conditionalrun) — 1 users
- [RunWith](https://chrome-stats.com/d/run-with) — 20 users, 5.00 / 5
- [Auto Shutdown (WebExtension)](https://chrome-stats.com/d/auto-shutdown-webextension) — 908 users, 2.79 / 5
- [Handle with](https://chrome-stats.com/d/handle-with) — 7 users, 3.00 / 5
- [Notify on Download Start, Complete or Failed](https://chrome-stats.com/d/notify-on-download-complete) — 7 users, 4.00 / 5
- [Shellfox](https://chrome-stats.com/d/shellfox) — 11 users
- [AutoRun Script Console](https://chrome-stats.com/d/autorun-script-console) — 2 users
- [Save all files](https://chrome-stats.com/d/save-all-files) — 124 users, 5.00 / 5

---

Source: [Chrome-Stats](https://chrome-stats.com/d/rodc)
