Skip to content
Snippets Groups Projects
Select Git revision
  • b25245f42cd7e339d21f48286361cd8b22b39406
  • master default protected
2 results

views.py

Blame
  • mac_shortcut.sh 428 B
    #!/usr/bin/env bash
    
    CMD='/usr/bin/osascript -e'
    if [[ -f "{{ home }}/{{ user }}/Desktop/{{ app }}" ]] && [[ "${1}" -eq "remove" ]]
    then
        ${CMD} "tell application \"Finder\" to delete file \"{{home}}/{{user}}/Desktop/{{ app }}\""
    elif [[ -d "{{ dir }}/{{ app }}" ]] && [[ "${1}" -eq "add" ]]
    then
        ${CMD} "tell application \"Finder\" to make new Alias at (path to desktop folder) to POSIX file \"{{ dir }}/{{ app }}\""
    fi