C-Command Software Forum

More secure way to keep SpamSieve running if there’s a power failure

Hi Michael,

Loving SpamSieve now that I’ve got it up and running. Seems to be working far better than Mail.app’s Junkmail filter.

On this page you suggest using Restart automatically after a power failure coupled with automatic login to keep things ticking over after a power outage:

I like this except for the security issue it presents. But I found a way to have your cake and eat it, by automatically logging in but also going straight to login screen.

All you need to do is open this code in AppleScript Editor and save it as an App. Then go to the Login Items in System Preferences for the account that will be automatically logged in and add this new App to bottom of the list. Reboot and it should automatically log you in but also take you straight to the login screen.

--This Script shows the Login Window without Logging you out.
--Nice to lock your Mac without having to close the lid.
do shell script ¬
	"/System/Library/CoreServices/Menu\\ Extras/" & ¬
	"User.menu/Contents/Resources/CGSession -suspend"