Results 1 to 2 of 2
  1. #1
    automator and folderactions question
    I was wondering if someone could help me out with this problem.

    Is it possible to use folder actions to run an automator script BEFORE a user logs in. Right now I have it set up where when a certain file is inserted into a certain folder, folder actions activates a script I made with automator and sends an email out with Mail app.

    However this only works when I am logged in. It also works when I am in the fast user switching window (which means I am still logged in technically). Is their any way I can have this work, for instance, when I start my computer, but have no yet logged in? I other words could the computer just use folder actions to check that certain folder and then run the script and send out the email before I even log into OS X.

  2. #2

    novicew's Avatar
    Member Since
    Jan 04, 2006
    Hamburg, Germany
    MacBook Pro | iMac(2.1 G5) | MacBook(2.16 C2D) | MacMini (1.67 CD) | iPhone 4 | iPad (3rd Gen)
    In theory it is possible to run a script during the startup though it could be daunting depending on your programming skills. In OS X, all the system startup scripts are stored in /Library/StartupItems as self containing *.plist files. You can add your own and let it run as the root user.

    The basic format of a StartupItem is fairly simple. Each item is contained in a folder. Inside that folder are three other items. The first is a shell script that has the same name as the folder. The second item is the XML property list called StartupParameters.plist—this tells the operating system what dependencies the item has, and a suggestion as to when it should run in the startup order among other things. The third item is a folder called Resources that contains any log messages or console messages that your script uses localized into different languages. You can also put any ancillary scripts and other resources your StartupItem might need into here.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Automator question
    By f.furter in forum Switcher Hangout
    Replies: 1
    Last Post: 06-04-2012, 05:20 PM
  2. Question on Automator
    By deserter85 in forum Switcher Hangout
    Replies: 0
    Last Post: 10-30-2008, 03:55 AM
  3. Automator Question
    By Espo in forum Switcher Hangout
    Replies: 0
    Last Post: 01-27-2007, 09:03 AM
  4. Automator question
    By Kutless217 in forum macOS - Apps and Games
    Replies: 6
    Last Post: 06-25-2006, 03:33 PM
  5. automator question
    By blackmagicxx in forum Schweb's Lounge
    Replies: 0
    Last Post: 10-31-2005, 12:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts