diff --git a/setDock-addToDock.sh b/setDock-addToDock.sh index b0d1604..e2008ca 100644 --- a/setDock-addToDock.sh +++ b/setDock-addToDock.sh @@ -27,6 +27,7 @@ export PATH=/usr/bin:/bin:/usr/sbin:/sbin # $6 = View ( grid - fan - list - auto ) # $7 = Display ( folder - stack ) # $8 = Sort ( name - dateadded - datemodified - datecreated - kind ) +# $9 = Label ( Label or bundle identifier of item to add, remove, move or find ) if [[ $1 == '/' ]]; then # when $1 is /, then use the variables from Jamf @@ -35,6 +36,7 @@ if [[ $1 == '/' ]]; then view="$6" display="$7" sort="$8" + label="$9" else # default values for testing appPath="/Applications/Safari.app" @@ -42,6 +44,7 @@ else view="" display="folder" sort="" + label="" fi # COLLECT IMPORTANT USER INFORMATION @@ -107,6 +110,10 @@ if [[ ${sort} != "" ]]; then arguments+=("--sort" "${sort}") fi +if [[ ${label} != "" ]]; then + arguments+=("--label" "${label}") +fi + # Add Application our Files and Documents to the Dock if [[ -e ${appPath} ]]; then echo "Run command runAsUser ${dockutil} ${arguments} ${plist}"