Skip to content

Instantly share code, notes, and snippets.

View stuartshapiro's full-sized avatar

stuartshapiro

View GitHub Profile
@stuartshapiro
stuartshapiro / 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
@stuartshapiro
stuartshapiro / 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
@stuartshapiro
stuartshapiro / 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
@stuartshapiro
stuartshapiro / import.scpt
Last active January 5, 2025 02:58 — 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