Previous 1 2 Next 18 Replies Latest reply: Jun 9, 2013 6:44 PM by Topher Kessler Go to original post
  • Topher Kessler Level 6 Level 6 (9,605 points)

    To tackle this problem, try creating the plist using a plain text editor. Perhaps TextEdit is showing some odd problem, so for now use a Terminal-based editor like pico/nano. Here's how to do it:

     

    1. Delete the current Launch Agent file you created.

     

    2. Open the Terminal and run the following command:

     

    pico ~/Library/LaunchAgents/com.jamesrydings.AutoBackup.plist
    

     

    3. Copy and paste the plist contents from my latest post (above this one) to the Terminal.

     

    4. Press Control-O followed by Control-X to save and exit (not Command).

     

    When done, log out and back in to activate the agent, or you can use the following commands to load, start, and unload it, respectively (for testing purposes):

     

    launchctl load ~/Library/LaunchAgents/com.jamesrydings.AutoBackup.plist
    

     

    launchctl start com.jamesrydings.AutoBackup.plist
    

     

    launchctl unload ~/Library/LaunchAgents/com.jamesrydings.AutoBackup.plist
    
  • Topher Kessler Level 6 Level 6 (9,605 points)

    Apparently bold does not show in the code there. The change was to add <string>open</string> as the first ProgramArguments entry.

  • James Rydings Level 2 Level 2 (175 points)

    Thank you Topher, its now working perfectly. I guess I need to stick to the Terminal editor, cus it wasnt working with TextEdit. The terminal editor was for some reason creating the plist files with .save at the end, but as soon as I removed that it worked fine.

  • Topher Kessler Level 6 Level 6 (9,605 points)

    Great! Glad it's helped. If you find yourself doing more of these type of edits and customizations, you might benefit from using a more robust text editor. One I recommend is the free TextWrangler: http://www.barebones.com/products/textwrangler/

Previous 1 2 Next