![]() ![]() I get the following error: launchctl: no plist was returned for: /Library/LaunchAgents/ist ![]() If I try to run the plist manually with launchctl in the terminal using: sudo launchctl load /Library/LaunchAgents/ist I have changed the owner and permissions of the file with the below: sudo chown root:wheel /Library/LaunchAgents/ist Most recently I have tried adding a plist file to /Library/LaunchAgents but it does not work- in the console I can see the error: launchctl: launchctl: no plist was returned for: /Library/LaunchAgents/ist I have tried adding it to /Library/StartupItems but that does not work. It works when in the user's login items and when run manually, but I cannot get it to work for every user that logs into the machine. Set desktop shows connected servers to true tell Finder preferences to show hard disks and connected servers on the desktop ![]() I have saved this as 'netvols.app' to the /Applications folder. So far I have created the following AppleScript to do this, and it works if dragged into the user's login items. I want every user who logs into a Mac to run something to mount 5 network volumes and change the Finder Preferences to show connected servers and hard disks on the desktop. I am a total beginner to AppleScript and launchctl so please bear with me. I have amended the code below to show this: Turned out it needed to be saved as a scpt file instead of an app. These two commands (combined with OS X or other keywords) can also provide you with Google or Bing search targets for existing examples posted around the forums and around the 'net.Thanks to Simon White I now have this working. ![]() If you've decided to research and implement this yourself, you'll probably want to review the man mount_afp and man mount_smbfs man pages for details of the mount commands used at the command line, and for example commands. (Otherwise, you'll probably be outsourcing this work and/or hiring on a consultant - that'll probably be the fastest approach, if this is a quick one-off requirement, too.) This if you're interested in learning more about OS X and will be performing these login-related modifications yourself, and not via dragging the volume into the login payload or whatever your particular MDM supports. Most of these MDM tools will typically allow bash (or will allow invoking bash via AppleScript's do shell script mechanism), so Apple's Scripting Primer will get you started with bash command line scripting on OS X. In particular, these details will determine what sort of scripts you can invoke on these Mac systems. First, have a look at your Group Policies or Mobile Device Management (MDM) tool, or whatever you're using in place of the Profile Manager tool that's incorporated into OS X Server. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |