#!/bin/bash

/usr/bin/osascript -e 'tell application "System Events" to make new login item with properties { path: "/Applications/DentalDiary/DentalDiary.app", hidden:false } at end'

chmod 777 /Applications/DentalDiary

chmod 777 /Applications/DentalDiary/*

open -a DentalDiary
