Mega WebDav auto run on macos

What is the problem you are having with rclone?

I need some help understanding how to launch megacmd webdav automatically on macos after a reboot

I am wondering if in the apple script app I created I should have it do

tell application "Megacmd"


do script "webdav /"
delay 10

above the tell application? I have only ever run one application from an apple script before so I am trying to figure out how to get webdav mega to run first then have rclone mount it as a fusemount.

Run the command 'rclone version' and share the full output of the command.


Which cloud storage system are you using? (eg Google Drive)

webdav with mega

The command you were trying to run (eg rclone copy /tmp remote:tmp)

apple script run

tell application "Terminal"


  do script "rclone mount Mega: /Users/gh0sti/Mega --vfs-cache-mode full --allow-non-empty"
  do script "exit"
  delay 15
  do script "killall Terminal"

End tell

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

Paste config here

A log from the command that you were trying to run with the -vv flag

Paste  log here

on macOS you can utilize launchd services management framework (similar to linux systemd)

Here you are full guide:

and rclone mount example:

so should I do launchd for megacmd webdav then have apple script run the rclone command?

How you do it is entirely up to you but the most natural way to run user background processes (agents) on macOS is to use launchd.

You need two launchd user agents starting after login:

  1. wait for network -> start megacmd webdav

  2. wait for megacmd webdav -> start rclone mount

Another way could be to use shortcuts - they can include apple script or shell script (whichever is easier for you):

create shortcut -> Add to dock -> Open at Login.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.