Skip to main content
weheart
Participant
December 19, 2018
Answered

AE Startup/Shutdown Script to Mount/Unmount Volume

  • December 19, 2018
  • 1 reply
  • 588 views

I'm hoping to get some help writing a little script to mount an external USB APFS Cache Volume on start and unmount on quit. I sorted through the Terminal Shell Script command, but I get lost with Javascript.

diskutil mount D55333F4-7ABD-45FD-9F78-CD44DB7904F5

By default, the volume does not automount as I don't use AE enough to keep the drive mounted.

Normally I could throw this into an Applescript and call it a day.

Can someone give me some pointers on how to write this or even a good place to start learning? I would really appreciate it.

Thank you.

Using AE 2019 v.16 on a MacBook Pro, OS X 10.14.2.

This topic has been closed for replies.
Correct answer Dave Merchant

The AE scripting/expression engine cannot make system calls. You need to handle the mount/timeout issue outside of After Effects.

1 reply

Dave MerchantCorrect answer
Legend
December 20, 2018

The AE scripting/expression engine cannot make system calls. You need to handle the mount/timeout issue outside of After Effects.

weheart
weheartAuthor
Participant
December 20, 2018

Thanks for the clarification.

I ended up finding a workaround using a Keyboard Maestro macro. Seems to be working okay.