0

I'm just getting started with automator. So far, i've created an application that runs at user login that gathers all the items from trash and from a folder that I use for ARD installs and securely deletes them.

I'd love to make this task run at logout and would like to know how to set that up. Logout hook?

Next, on my OSX server, I have a folder where PDFs are sent to from my iPads. I need to take those PDFs, watermark them, and move them to another folder. I have an automator action that will do this, but i'm having trouble getting it setup to run in the background WITHOUT anyone logged in to the server. I've currently got this configured as an application, but it seems like it should be a folder action, but I can't figure out where to specify the folder action for the folder action automator type. Also, how to get it to run on the server w/o anyone logged in?

2 Answers 2

1

Automator requires a graphical user session to run within. Regrettably, Automator can not run without a user session; this is because it is an application rather than a command line process.

Because of this requirement, running an Automator workflow at log-out is difficult. You need to run the workflow and delay the requested log-out until the workflow finishes.

If the tasks could be performed from a shell script, then this would be easier to hook into the log in and out steps.

0

How about this?

  1. setup automatic login so that automator get it's required graphical user session
  2. create an application workflow to launch the screensaver or force jump back to the login screen (effectively locking the screen and allowing others to use the computer).
  3. Add your application workflow to the automatic user's login items.

See here for command line to start the screen saver, or lock the session by going back to the login window as shown here.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .