Learn how to schedule your Node.js scripts (even asynchronous ones) to run automatically on your Mac, using the launchd inbuilt function on MacOS. The Install Check script assists the Workspace ONE Intelligent Hub with determining whether an install needs to happen. This script can be useful for desired state purposes and ensuring that a software install remains intact on a user's machine. If the script has an exit code of.

Edit Plist Mac

Script to generate the plist for Mac OS X 10.7 and higher to maintain a freedns dynamic dns record updated. Once installed, it will ping the freedns service daily as long as the computer can reach the net, whether or not you are logged in as a user on your mac.
freedns_plist_creator

Script To Generate The Plist For Mac Pc

#!/usr/bin/env bash
# Script to generate the plist for Mac OS X 10.7 and higher to maintain a
# freedns dynamic dns record updated. Once installed, it will ping the
# freedns service daily as long as the computer can reach the net,
# whether or not you are logged in as a user on your mac.
#
# You need to edit the variables MY_DOMAIN_NAME and MY_TOKEN with the correct
# values you get from the freedns site
#
# Since the plist is stored under /System on your Mac, you must use sudo to
# run this script
#
# It uses reverse domain name notation [2] to store a plist on your mac
# [2] http://en.wikipedia.org/wiki/Reverse_domain_name_notation
MY_DOMAIN_NAME=my.test.com
MY_TOKEN='hthnhn=ddihdt+ddh*idhih'
#------------------------------------------------------------------------------
# The MIT License (MIT)
#
# Copyright (c) 2013 Juan C. Mendez ([email protected])
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the 'Software'), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
#------------------------------------------------------------------------------
PLIST_NAME=`echo '$MY_DOMAIN_NAME' awk 'BEGIN{FS='.';ORS='.'} {for (i = NF; i > 0; i--){print $i}}'`
cat >'/System/Library/LaunchDaemons/${PLIST_NAME}updater.freedns.plist'<<DOC
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE plist PUBLIC '-//Apple//DTD PLIST 1.0//EN' 'http://www.apple.com/DTDs/PropertyList-1.0.dtd'>
<plist version='1.0'>
<dict>
<key>KeepAlive</key>
<false/>
<key>Label</key>
<string>${PLIST_NAME}updater</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/curl</string>
<string>http://freedns.afraid.org/dynamic/update.php?$MY_TOKEN</string>
<string>&gt;/dev/null</string>
<string>2&gt;&amp;1</string>
</array>
<key>StartCalendarInterval</key>
<dict>
<key>Hour</key>
<integer>3</integer>
<key>Minute</key>
<integer>0</integer>
</dict>
</dict>
</plist>
DOC
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Optimize press themes. nefrix wrote:

Plist File

Generate


I am trying to make an older software to work on yosemite, and I found a tutorial how to solve it, but i don't exactry understand the programing language. It sounds like chinese for me. Can you please help me creating this plist?

This isn't a programming language, it is a text file with XML structure to describe how a job is run, in this case it is trying to launch a kext (kernel extension).

Wondershare codes free.

If you cannot handle using vim to edit the document as described by Wayne Costello then you can consider using a GUI app…


Or use 'sudo nano /Library/LaunchDaemons/com.esp.avidMNload.plist' to use the 'nano' text editor which may be easier to use…


Whatever you decide, backup first. A 'kext' is a system wide tool, as such it can cause instability if it is not compatible & may cause your Mac to fail to boot correctly etc. You should be able to remove this file from recovery mode using Terminal if it all goes horribly wrong but a backup is essential.