Skip to content

Instantly share code, notes, and snippets.

@shapiro125
shapiro125 / uninstall_office_2016.sh
Created November 6, 2018 18:45 — forked from pirafrank/uninstall_office_2016.sh
Uninstall Office 2016 from OS X completely
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo -e "
ROOT PRIVILEDGES NEEDED!
You have to run this script as root.
Aborting...
"
exit 1
else
@shapiro125
shapiro125 / Convert Network Path.scpt
Last active March 9, 2019 18:38
MacOS Service to convert file path on server to Windows file path and copy to clipboard
# Using Automator -> File -> New -> Service -> Run Applescript
# setting up the basic search and replace function
on searchReplace(theText, SearchString, ReplaceString)
set OldDelims to AppleScript's text item delimiters
set AppleScript's text item delimiters to SearchString
set newText to text items of theText
set AppleScript's text item delimiters to ReplaceString
set newText to newText as text
@shapiro125
shapiro125 / Open Windows Network Links.scpt
Last active March 9, 2019 18:38 — forked from anonymous/gist:2211017
An Automator service to convert Windows network links to MacOS Finder paths
@shapiro125
shapiro125 / import.scpt
Last active March 7, 2021 12:57 — forked from bzerangue/import.scpt
Applescript: Import Apple Notes to Evernote
tell application "Notes"
set theMessages to every note
repeat with thisMessage in theMessages
# added identification of folder to create notebooks based on existing folder hierarchy
set myFolder to the container of thisMessage