diff options
| author | Teddy Wing | 2012-07-25 20:21:45 -0400 |
|---|---|---|
| committer | Teddy Wing | 2012-07-25 20:21:45 -0400 |
| commit | 5369ecb053c16ecaefca26421551bdccc87aebe3 (patch) | |
| tree | 4e498c9d1b2ae5dcefdf8ebf3f980c518ca826df | |
| parent | 69822bc5213362828eb978bc903c2e397b89dd24 (diff) | |
| download | On-Task-5369ecb053c16ecaefca26421551bdccc87aebe3.tar.bz2 | |
* Turned the shell script into a Terminal .command file (so that it can be launched and run by double-click).
* Added some echo statements so you know what just happened after launching the scripts.
| -rwxr-xr-x | OnTask toggle on-off copy.command (renamed from OnTask toggle on-off.sh) | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OnTask toggle on-off.sh b/OnTask toggle on-off copy.command index 1d0128b..82669e5 100755 --- a/OnTask toggle on-off.sh +++ b/OnTask toggle on-off copy.command @@ -50,6 +50,8 @@ if [ -a ~/Library/LaunchAgents/com.teddywing.OnTask.plist ]; then launchctl unload ~/Library/LaunchAgents/com.teddywing.OnTask.plist mv ~/Library/LaunchAgents/com.teddywing.OnTask.plist ~/Library/Application\ Support/On\ Task/ + + echo "On Task DEACTIVATED" elif [ -a ~/Library/Application\ Support/On\ Task/com.teddywing.OnTask.plist ]; then # otherwise, if we find the plist in the On Task Application Support directory # then move it to the user's LaunchAgents directory @@ -57,10 +59,14 @@ elif [ -a ~/Library/Application\ Support/On\ Task/com.teddywing.OnTask.plist ]; # and load it into launchd launchctl load ~/Library/LaunchAgents/com.teddywing.OnTask.plist + + echo "On Task ACTIVATED" else # if neither of those, create a new LaunchAgent plist file with default text echo "$ON_TASK_PLIST_TEXT" > ~/Library/LaunchAgents/com.teddywing.OnTask.plist # and load it into launchd launchctl load ~/Library/LaunchAgents/com.teddywing.OnTask.plist + + echo "On Task INSTALLED & ACTIVATED" fi |
