New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

OS 10.4 - automator and folderactions question


Post Reply New Thread Subscribe

 
Thread Tools
ndlaham
Guest
 
Posts: n/a

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.
QUOTE Thanks
novicew

 
novicew's Avatar
 
Member Since: Jan 04, 2006
Location: Hamburg, Germany
Posts: 1,385
novicew is a name known to allnovicew is a name known to allnovicew is a name known to allnovicew is a name known to allnovicew is a name known to allnovicew is a name known to allnovicew is a name known to all
Mac Specs: MacBook Pro | iMac(2.1 G5) | MacBook(2.16 C2D) | MacMini (1.67 CD) | iPhone 4 | iPad (3rd Gen)

novicew is offline
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.
QUOTE Thanks

Post Reply New Thread Subscribe


« Dock Problem | OS Upgrade question: For when Leopard does come out »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
The question game! Sydrocentric Schweb's Lounge 28 06-13-2009 05:21 AM
Alright, question time! PFerrara Switcher Hangout 5 03-18-2006 04:38 PM
Windows XP Question PowerBookG4 Schweb's Lounge 7 02-12-2006 07:45 PM
Could be the dumbest question of all time.... donnation25 Switcher Hangout 12 05-10-2005 10:27 AM
Postscript question battleangel444 OS X - Operating System 2 07-09-2004 01:45 PM

All times are GMT -4. The time now is 06:36 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?