+ Post New Thread
Results 1 to 7 of 7
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 ...
  1. #1

    Join Date
    May 2010
    Location
    Stoke
    Posts
    7
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Unhappy 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.

  2. #2

    Join Date
    Apr 2010
    Location
    Sittingbourne
    Posts
    12
    Thank Post
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Do you have a mac server in place?

  3. #3

    Join Date
    May 2010
    Location
    Stoke
    Posts
    7
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Hi there no we don't have a mac server.

  4. #4

    Join Date
    Apr 2010
    Location
    Sittingbourne
    Posts
    12
    Thank Post
    2
    Thanked 0 Times in 0 Posts
    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.

  5. #5

    Join Date
    May 2010
    Location
    Stoke
    Posts
    7
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    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.

  6. #6
    Carter's Avatar
    Join Date
    Sep 2010
    Location
    Canada
    Posts
    264
    Thank Post
    10
    Thanked 64 Times in 41 Posts
    Rep Power
    18
    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


  7. #7

    Join Date
    May 2010
    Location
    Stoke
    Posts
    7
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    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:
+ Post New Thread

Similar Threads

  1. Logs not running in Moodle
    By beeswax in forum Virtual Learning Platforms
    Replies: 9
    Last Post: 4th January 2010, 04:06 PM
  2. Script that logs in a user
    By techie08 in forum Windows
    Replies: 10
    Last Post: 16th July 2009, 01:27 PM
  3. Individual Smoothwall User Logs
    By farquea in forum Windows
    Replies: 1
    Last Post: 13th July 2009, 12:19 PM
  4. Office installs when a new user logs on
    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
  •