<commit_before>#!/usr/bin/env zsh

function osxLoginItem {
  osascript -e "tell application \"System Events\" to make login item at end with properties {hidden:false, path:\"$1\", name:\"$2\" }" > /dev/null
}

osascript -e 'tell application "System Events" to delete every login items'

# OS X must have
osxLoginItem "/Applications/Mail.app" "Mail"

# Sync
osxLoginItem "/Applications/BitTorrent Sync.app" "BitTorrent Sync"

# OS X enhancements
osxLoginItem "/Applications/Flux.app" "Flux"
osxLoginItem "/Applications/Flycut.app" "Flycut"

# debug with
echo_info "OS X Login items: $(osascript -e 'tell application "System Events" to get the name of every login item')"<commit_msg>Removed: Mail.app on login<commit_after>#!/usr/bin/env zsh

function osxLoginItem {
  osascript -e "tell application \"System Events\" to make login item at end with properties {hidden:false, path:\"$1\", name:\"$2\" }" > /dev/null
}

osascript -e 'tell application "System Events" to delete every login items'

# Sync
osxLoginItem "/Applications/BitTorrent Sync.app" "BitTorrent Sync"

# OS X enhancements
osxLoginItem "/Applications/Flux.app" "Flux"
osxLoginItem "/Applications/Flycut.app" "Flycut"

# debug with
echo_info "OS X Login items: $(osascript -e 'tell application "System Events" to get the name of every login item')"
{'fraction_non_alphanumeric': 0.125, 'fraction_numerical': 0.003048780487804878, 'mean_word_length': 4.784140969162996, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7640226', 'n_tokens_mistral': 443, 'n_tokens_neox': 427, 'n_words': 147}