Skip to content

Instantly share code, notes, and snippets.

@talkingmoose
talkingmoose / Create Event from Task\cmE.scpt
Created April 1, 2012 18:30
Outlook for Mac AppleScript to create an event from a task
(*
Create Event from Task
Copyright (c) Microsoft Corporation. All rights reserved.
Modified by William Smith.
*)
tell application "Microsoft Outlook"
@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 / com.talkingmoose.addipfwrule.plist
Created January 17, 2013 18:23
Launchd item to add a firewall rule via ipfw.
<?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>com.318.ipfwadditions</string>
<key>ProgramArguments</key>
<array>
<string>ipfw</string>
<string>add</string>
@talkingmoose
talkingmoose / com.talkingmoose.OfficeAutoUpdate.plist
Created November 11, 2013 03:42
Launchd Launch Agent to set Microsoft AutoUpdate preferences for Office for Mac 2011 to manually check for updates rather than automatically checking.
<?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>com.talkingmoose.OfficeAutoUpdate</string>
<key>ProgramArguments</key>
<array>
<string>/bin/bash</string>
<string>-c</string>
@talkingmoose
talkingmoose / GetAssetTagViaSerialNumber.sh
Last active August 29, 2015 14:20
Retrieve JSS asset tags for list of serial numbers
#!/bin/bash
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
# Written by: William Smith
#
# Last updated: May 7, 2015
#
# Purpose: Retrieves list of asset tags from list of iOS serial numbers.
# Serial numbers should be in a serialnumbers.txt file in the same
@talkingmoose
talkingmoose / PopulateMobileDeviceAssetTags.sh
Last active August 29, 2015 14:20
Find all JSS mobile devices without asset tags and populate the Asset Tag field from a list
#!/bin/bash
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
# Written by: William Smith
#
# Last updated: April 21, 2015
#
# Purpose: Searches a Casper JSS for mobile device assets
# with empty Asset Tag fields and populates those fields from lists
<?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>HowToCheck</key>
<string>Manual</string>
<key>LastUpdate</key>
<date>2015-08-09T01:04:03Z</date>
</dict>
</plist>
<?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>kSubUIAppCompletedFirstRunSetup1507</key>
<true/>
</dict>
</plist>
<?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>kSubUIAppCompletedFirstRunSetup1507</key>
<true/>
</dict>
</plist>
<?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>kSubUIAppCompletedFirstRunSetup1507</key>
<true/>
</dict>
</plist>