+ Post New Thread
Results 1 to 2 of 2
Mac Thread, Applescript :( in Technical; Hello! I've got an applescript which looks like this: Code: do shell script "chflags hidden ~/Downloads" do shell script "chflags ...
  1. #1
    ben604's Avatar
    Join Date
    Jan 2010
    Posts
    314
    Thank Post
    81
    Thanked 29 Times in 24 Posts
    Rep Power
    22

    Applescript :(

    Hello!

    I've got an applescript which looks like this:

    Code:
    do shell script "chflags hidden ~/Downloads"
    do shell script "chflags hidden ~/Movies"
    do shell script "chflags hidden ~/Pictures"
    do shell script "chflags hidden ~/Music"
    do shell script "chflags hidden ~/Public"
    do shell script "chflags hidden ~/Desktop"
    
    do shell script "chmod a-r ~/Downloads"
    do shell script "chmod a-r ~/Movies"
    do shell script "chmod a-r ~/Pictures"
    do shell script "chmod a-r ~/Music"
    do shell script "chmod a-r ~/Public"
    do shell script "chmod a-r ~/Desktop"
    
    do shell script "mount_smbfs smb://$USER@vs1/student$/$USER ~/Documents"
    It's mapped from a shared drive on our mac xserver to the dock, so when users log in, they click the script on the dock and it maps their home drive over the top of the local "documents" folder, ensuring they save to their home folder rather than the local machine. It works fine, apart from when they forget to click it.

    I tried for a bit to get it to run on startup, but had all sorts of issues. Does anyone know a method for calling the script during login?

    We're running 10.7.5 on both the workstations and server and WGM does the mapping of the script.

    Ta,
    Ben

  2. #2


    Join Date
    Dec 2005
    Location
    In the server room, with the lead pipe.
    Posts
    4,630
    Thank Post
    275
    Thanked 777 Times in 604 Posts
    Rep Power
    223
    Try a global login item.

    See here for an example: Starting Applications Automatically at Login | Macinstruct - scroll down a bit for the "multiple users" part.

  3. Thanks to pete from:

    ben604 (18th February 2013)

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 6
    Last Post: 3rd November 2010, 02:42 PM
  2. Problem with AppleScript & Restricted Applications
    By mattstevenson2005 in forum Mac
    Replies: 0
    Last Post: 16th February 2010, 01:42 PM
  3. Replies: 1
    Last Post: 9th September 2009, 07:22 PM
  4. Replies: 0
    Last Post: 25th November 2008, 03:12 PM
  5. Windows equivalent to applescript?
    By woody in forum Windows
    Replies: 5
    Last Post: 9th November 2006, 11:20 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
  •