Skip to content

Instantly share code, notes, and snippets.

@talkingmoose
talkingmoose / net.talkingmoose.CommunicatorSetup.plist
Created March 8, 2012 15:37
Launch agent for CommunicatorSetup-1.0.sh script
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>net.talkingmoose.CommunicatorSetup</string>
<key>ProgramArguments</key>
<array>
<string>sh</string>
<string>/Library/talkingmoose/Scripts/CommunicatorSetup-1.0.sh</string>
@talkingmoose
talkingmoose / LyncSetup-1.0.sh
Created March 9, 2012 16:49
Shell script to configure Microsoft Lync user name and email address
#!/bin/sh
########################### About this script ##########################
# #
# Purpose: Populates user name and email address settings #
# for Lync for Mac. This script resides #
# in /Library/talkingmoose/Scripts and is launched #
# by launch agent net.talkingmoose.LyncSetup.plist. #
# #
# Created by William Smith #
@talkingmoose
talkingmoose / net.talkingmoose.LyncSetup.plist
Created March 9, 2012 16:56
Launch agent for LyncSetup-1.0.sh script
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>net.talkingmoose.LyncSetup</string>
<key>ProgramArguments</key>
<array>
<string>sh</string>
<string>/Library/talkingmoose/Scripts/LyncSetup-1.0.sh</string>
@talkingmoose
talkingmoose / LyncSetup-1.2.sh
Created March 9, 2012 23:26
Shell script to configure Microsoft Lync user name and email address
#!/bin/sh
########################### About this script ##########################
# #
# Purpose: Populates user name and email address settings #
# for Lync for Mac. This script resides #
# in /Library/talkingmoose/Scripts and is launched #
# by launch agent net.talkingmoose.LyncSetup.plist. #
# #
# Created by William Smith #
@talkingmoose
talkingmoose / net.talkingmoose.LyncSetup.plist
Created March 9, 2012 23:55
Launch agent for LyncSetup-1.2.sh script
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>net.talkingmoose.LyncSetup</string>
<key>ProgramArguments</key>
<array>
<string>sh</string>
<string>/Library/talkingmoose/Scripts/LyncSetup-1.2.sh</string>
@talkingmoose
talkingmoose / Set Event to Private.scpt
Created April 22, 2012 15:14
Sets selected Exchange calendar events to Private
tell application "Microsoft Outlook"
try
set theEvents to selection
repeat with anEvent in theEvents
set is private of anEvent to true
end repeat
end try
end tell
@talkingmoose
talkingmoose / Export Outlook Contacts.scpt
Last active October 9, 2015 14:08
Export contacts from all address books in Outlook for Mac to individual .vcf files
tell application "Finder"
set tmpFolder to "Outlook Address Books"
try
set tmpLocation to make new folder with properties {name:tmpFolder} at path to desktop
on error
set tmpLocation to folder tmpFolder of folder (path to desktop)
end try
end tell
tell application "Microsoft Outlook"
@talkingmoose
talkingmoose / Remove Outlook Categories.scpt
Created November 29, 2015 01:30
Removes all categories from selected Outlook messages.
tell application "Microsoft Outlook"
set theMessages to selection
repeat with aMessage in theMessages
delete category of aMessage
end repeat
end tell
@talkingmoose
talkingmoose / Add Outlook Category.scpt
Created November 29, 2015 01:32
Add a category to an Outlook item.
tell application "Microsoft Outlook"
set theMessages to selection
repeat with aMessage in theMessages
set category of aMessage to category "Family"
end repeat
end tell
@talkingmoose
talkingmoose / Append Outlook Category.scpt
Created November 29, 2015 01:33
Add a category to an Outlook item with existing categories.
tell application "Microsoft Outlook"
set theMessages to selection
repeat with aMessage in theMessages
set theList to categories of aMessage
set end of theList to category "Team"
set category of aMessage to theList
end repeat
end tell