Mac Thread, Running an AppleScript when an AD user logs in OSX 10.6.* in Technical; Hello i was wondering if any Mac guru's could provide me with some much appreciated help.
We have added our ...
-
2nd November 2010, 02:53 PM #1
- Rep Power
- 0
Running an AppleScript when an AD user logs in OSX 10.6.*
Hello i was wondering if any Mac guru's could provide me with some much appreciated help.
We have added our new iMac to the windows domain and i've written an applescript that I want to run whenever an active directory user logs in. The problem I'm having is I cant find out how to get it to run with every user's login. There are numerous guides on the web for each inidividual user, but im having no joy finding a solution for active directory users. I've tried having a little dabble with some loginhooks but still no go.
I really want to use this script as it contains some logic to map network drives based on the type of user who is logging onto the Mac.
If anyone could point me in the right direction I'd be really grateful.
Thanks
Last edited by g110yd; 3rd November 2010 at 11:43 AM.
-
-
IDG Tech News
-
3rd November 2010, 11:14 AM #2
- Rep Power
- 0
Do you have a mac server in place?
-
-
3rd November 2010, 11:43 AM #3
- Rep Power
- 0
Hi there no we don't have a mac server.
-
-
3rd November 2010, 11:52 AM #4
- Rep Power
- 0
Im not too sure if you can or how to run the script without a mac server. We have one here and it works a treat.
How many mac's do you have at your location? It could be a good idea if you are managing 15+ mac's to put a server in place as then you can manage permissions etc.
Someone here may know the answer without the use of a server though.
-
-
3rd November 2010, 11:59 AM #5
- Rep Power
- 0
We just have the one imac here at the moment that we are messing about with the theory of what we would do if we have more.
Shame if it cant be done without need for a server as the applescript runs great if clicked on manually. Will look into server anyway Thanks.
-
-
3rd November 2010, 12:01 PM #6 If you don't have a server to push out the script you can pace it into your image. Here are two very good sources on getting your script to work at login.
Implementing Login and Logout hooks for System Management
&
Creating a login hook
-
-
3rd November 2010, 02:42 PM #7
- Rep Power
- 0
Right I have gone back and revisited LoginHooks and got it to work with an example shell script. The problem I think I have is that I am calling an applescript and referencing to the finder appilcation. At the point the shell script tries to call the applescript it falls over because I dont think finder is running yet. I've tried the sleep command, but that just delays the login. Does anyone know if there is a way to make a shell script wait until the Finder Application has launched then run the applescript. Thanks for the help so far.
-
SHARE: 
Similar Threads
-
By beeswax in forum Virtual Learning Platforms
Replies: 9
Last Post: 4th January 2010, 04:06 PM
-
By techie08 in forum Windows
Replies: 10
Last Post: 16th July 2009, 01:27 PM
-
By farquea in forum Windows
Replies: 1
Last Post: 13th July 2009, 12:19 PM
-
By Maximus in forum Wireless Networks
Replies: 7
Last Post: 11th July 2008, 10:54 AM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules