Want to write a custom login script..

hawkeye_a

macrumors 68000
Original poster
Jun 27, 2016
1,541
4,173
It's been ages since i've done anything with AppleScript/automator/macOS-scripting.

I'm running 10.15.3 and thinking about turning off FileVault on my Mac, and just creating encrypted disk images of specific folders. Ideally, i'd like to have these disk images mounted when I log into the machine automatically (or at most request a password once, and mount them, after logging into the machine).

Anyone know how I could accomplish something like this? Or where I could get started?

Cheers
 
Last edited:

frou

macrumors 6502a
Mar 14, 2009
790
873
I think you can simply drag the .dmg disk image files into SysPrefs > Users > Login Items.

Otherwise I would try to write a shellscript that uses the "hdiutil" terminal command, and tell "launchd" to run that script on login.
 
  • Like
Reactions: hawkeye_a

hawkeye_a

macrumors 68000
Original poster
Jun 27, 2016
1,541
4,173
I think you can simply drag the .dmg disk image files into SysPrefs > Users > Login Items.

Otherwise I would try to write a shellscript that uses the "hdiutil" terminal command, and tell "launchd" to run that script on login.
Thanks, will try it out
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.