<?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>groupInfo</key>
	<dict>
		<key>expandAfterMode</key>
		<integer>0</integer>
		<key>groupName</key>
		<string>Power User Productivity Tips Webinar</string>
		<key>notes</key>
		<string>These are the snippets David Sparks and Jeff Gamet used in the TextExpander Power User Productivity Tips Webinar. They include fill-in form, date math, AppleScript, and JavaScript examples.</string>
	</dict>
	<key>snippetsTE2</key>
	<array>
		<dict>
			<key>abbreviation</key>
			<string>xhi</string>
			<key>abbreviationMode</key>
			<integer>0</integer>
			<key>creationDate</key>
			<date>2022-09-15T05:03:00Z</date>
			<key>label</key>
			<string></string>
			<key>modificationDate</key>
			<date>2022-09-15T05:03:00Z</date>
			<key>plainText</key>
			<string>Hi %snippet:xnm%,

</string>
			<key>snippetType</key>
			<integer>0</integer>
			<key>uuidString</key>
			<string>88C95263-8BB6-4674-B8B9-6E2622181D2E</string>
		</dict>
		<dict>
			<key>abbreviation</key>
			<string>xhats</string>
			<key>abbreviationMode</key>
			<integer>0</integer>
			<key>creationDate</key>
			<date>2022-09-15T05:03:00Z</date>
			<key>label</key>
			<string>Hats Fill In</string>
			<key>modificationDate</key>
			<date>2022-09-15T05:03:00Z</date>
			<key>plainText</key>
			<string>Dear %filltext:name=name:width=20%

Thank you for your email inquiry. We at Hats, Hats, Hats, Hats, Hats, Ltd. are obsessed with just one thing and that's hats. It sounds like you love hats too with your request for a shiny new %fillpopup:name=hat type:Wide Brimmed Ostrich Feather:Bejeweled 12-Gallon:default=Black Top (with built-in rabbit cage):Technicolor Fez:Diamond Edged Bowler% hat in size %fillpopup:name=popup 3:Tiny:Small:default=Medium:Large:Big Fella'%.

 %fillpart:name=In Stock:default=yes%We are pleased to report we have your hat in stock and set aside just for you.%fillpartend% 

%fillpart:name=Out of Stock%Unfortunately, we are currently out of stock. We have placed you on a waiting list and we expect to have your hat ready to go shortly. We will email you for payment as soon as it arrives.%fillpartend%

%fillpart:name=optional part 6%We accept payment in all of the usual forms. You can send cash, check, or charge card. We also accept payment in trade including chickens, 10 gallon drums of lard, licorice, and (of course) goats.%fillpartend%

%fillpart:name=Paid%Our records reflect you have sufficient credit on your account already for this purchase. A short-tailed Albatross (Phoebastria albatrus) was dispatched this morning and should deliver your hat in two or three weeks.%fillpartend%

%fillarea:name=Additional Comments:width=20:height=5%

Thank you. Hats, Hats, Hats, Hats, Hats, Ltd. appreciates your business.

With warm regards,

Nigel Baldman</string>
			<key>snippetType</key>
			<integer>0</integer>
			<key>uuidString</key>
			<string>A2059266-84B0-48C6-8F39-1FD88D66E4A1</string>
		</dict>
		<dict>
			<key>abbreviation</key>
			<string>xmse</string>
			<key>abbreviationMode</key>
			<integer>1</integer>
			<key>creationDate</key>
			<date>2022-09-15T05:03:00Z</date>
			<key>label</key>
			<string>Work Expense</string>
			<key>modificationDate</key>
			<date>2022-09-15T05:03:00Z</date>
			<key>plainText</key>
			<string>%Y-%m-%d %H-%M - %filltext:name=Description:width=20% - macsparky expense.pdf</string>
			<key>snippetType</key>
			<integer>0</integer>
			<key>uuidString</key>
			<string>A36CA86D-E2FE-44DD-ABF9-23AD641C4470</string>
		</dict>
		<dict>
			<key>abbreviation</key>
			<string>;sdatemath</string>
			<key>abbreviationMode</key>
			<integer>0</integer>
			<key>creationDate</key>
			<date>2022-09-15T05:03:00Z</date>
			<key>label</key>
			<string>Date Math with JavaScript</string>
			<key>modificationDate</key>
			<date>2022-09-15T05:03:00Z</date>
			<key>plainText</key>
			<string>%B %e, %Y

Hi %filltext:name=name:width=20%,

It was great meeting with you today! Let's schedule our follow up for %snippet:;4days%%A, %B %e, %Y at %1I%p.

Thanks,
Jeff</string>
			<key>snippetType</key>
			<integer>0</integer>
			<key>uuidString</key>
			<string>E3F0F52C-8853-401C-8DD3-514F0A5E7B5A</string>
		</dict>
		<dict>
			<key>abbreviation</key>
			<string>;datemath</string>
			<key>abbreviationMode</key>
			<integer>0</integer>
			<key>creationDate</key>
			<date>2022-09-15T05:03:00Z</date>
			<key>label</key>
			<string>Date Math Sample</string>
			<key>modificationDate</key>
			<date>2022-09-15T05:03:00Z</date>
			<key>plainText</key>
			<string>%B %e, %Y

Hi %filltext:name=name:width=20%,

It was great meeting with you today! Let's schedule our follow up for %@+4D%A at %1I%p.

Thanks,
Jeff</string>
			<key>snippetType</key>
			<integer>0</integer>
			<key>uuidString</key>
			<string>540D1105-2077-47C9-A068-3F5C60D431F9</string>
		</dict>
		<dict>
			<key>abbreviation</key>
			<string>;form</string>
			<key>abbreviationMode</key>
			<integer>0</integer>
			<key>creationDate</key>
			<date>2022-09-15T05:03:00Z</date>
			<key>label</key>
			<string>Web Form Sample</string>
			<key>modificationDate</key>
			<date>2022-09-15T05:03:00Z</date>
			<key>plainText</key>
			<string>Jeff%key:tab%Gamet%key:tab%%snippet:jtext%%key:tab%%key:tab%%fillarea:name=Inquiry:width=30:height=5%</string>
			<key>snippetType</key>
			<integer>0</integer>
			<key>uuidString</key>
			<string>C233824C-815F-4CFB-8036-08F443098FA2</string>
		</dict>
		<dict>
			<key>abbreviation</key>
			<string>xrog</string>
			<key>abbreviationMode</key>
			<integer>0</integer>
			<key>creationDate</key>
			<date>2022-09-15T05:03:00Z</date>
			<key>htmlText</key>
			<string>Special Interrogatory Number &lt;br /&gt;State every FACT which supports, directly or indirectly, the allegations in paragraph %filltext:name=Number:width=20% of the complaint that "%pasteboard".&lt;br /&gt;    &lt;br /&gt;Special Interrogatory Number &lt;br /&gt;Identify every WRITING that supports, reflects, mentions or refers to any fact which supports, directly or indirectly, the allegations in paragraph %filltext:name=Number:width=20% of the complaint that "%pasteboard".&lt;br /&gt;&lt;br /&gt;Special Interrogatory Number &lt;br /&gt;State the name, address and phone number or every PERSON who you believe has knowledge of any fact which supports, directly or indirectly, the allegations in paragraph %filltext:name=Number:width=20% of the complaint that "%pasteboard".</string>
			<key>label</key>
			<string>Defendant Contention Rogs</string>
			<key>modificationDate</key>
			<date>2022-09-15T05:03:00Z</date>
			<key>plainText</key>
			<string>Special Interrogatory Number 
State every FACT which supports, directly or indirectly, the allegations in paragraph %filltext:name=Number:width=20% of the complaint that "%pasteboard".
    
Special Interrogatory Number 
Identify every WRITING that supports, reflects, mentions or refers to any fact which supports, directly or indirectly, the allegations in paragraph %filltext:name=Number:width=20% of the complaint that "%pasteboard".

Special Interrogatory Number 
State the name, address and phone number or every PERSON who you believe has knowledge of any fact which supports, directly or indirectly, the allegations in paragraph %filltext:name=Number:width=20% of the complaint that "%pasteboard".</string>
			<key>snippetType</key>
			<integer>5</integer>
			<key>uuidString</key>
			<string>3B01F0CA-46D0-4AD6-975B-841A8CF38228</string>
		</dict>
		<dict>
			<key>abbreviation</key>
			<string>xnm</string>
			<key>abbreviationMode</key>
			<integer>0</integer>
			<key>creationDate</key>
			<date>2022-09-15T05:03:00Z</date>
			<key>label</key>
			<string>Mail Recipient’s First Name AppleScript</string>
			<key>modificationDate</key>
			<date>2022-09-15T05:03:00Z</date>
			<key>plainText</key>
			<string>tell application "System Events"
	tell process "Mail"
		tell text field "To:" of window 1
			if UI element 1 exists then
				set theToRecipient to (value of UI element 1)
				if ((count words of theToRecipient) is greater than 0) and (theToRecipient does not contain ",") then
					return word 1 of theToRecipient
				else if ((count words of theToRecipient) is greater than 0) and (theToRecipient contains ",") then
					return word 2 of theToRecipient
				end if
			end if
		end tell
	end tell
end tell</string>
			<key>snippetType</key>
			<integer>2</integer>
			<key>uuidString</key>
			<string>21385274-D482-458F-B0FB-BDACB12AD6F2</string>
		</dict>
		<dict>
			<key>abbreviation</key>
			<string>;4days</string>
			<key>abbreviationMode</key>
			<integer>0</integer>
			<key>creationDate</key>
			<date>2022-09-15T05:03:00Z</date>
			<key>label</key>
			<string>Date in 4 days, no weekends</string>
			<key>modificationDate</key>
			<date>2022-09-15T05:03:00Z</date>
			<key>plainText</key>
			<string>// Find the first non-weekend day four days from now
var p4bd = new Date();
p4bd.setDate(TextExpander.baseDate.getDate() + 4); // add 4 days to current
// skip Saturdays and Sundays
while (p4bd.getDay() == 6 || p4bd.getDay() == 0) {
    p4bd.setDate(p4bd.getDate() + 1);
}
TextExpander.adjustedDate = p4bd; // adjust for all snippets in this expansion
TextExpander.ignoreOutput = true;</string>
			<key>snippetType</key>
			<integer>4</integer>
			<key>uuidString</key>
			<string>493C335E-B19E-4002-A053-2AD6A0D589B6</string>
		</dict>
		<dict>
			<key>abbreviation</key>
			<string>;strip</string>
			<key>abbreviationMode</key>
			<integer>0</integer>
			<key>creationDate</key>
			<date>2022-09-15T05:03:00Z</date>
			<key>label</key>
			<string>Strip URL Tracking</string>
			<key>modificationDate</key>
			<date>2022-09-15T05:03:00Z</date>
			<key>plainText</key>
			<string>// Start with the clipboard content
var result = TextExpander.pasteboardText;

// Strip the HTML query; everything after the ? up to
// any closing quotation mark
result = result.replace(/\?[^\"]+/, "");

// If we've got HTML (&lt;a href…), strip that too
var hrefRegex = /&lt;\s*a\s+href\s*=\s*\"([^\"]+)\"\s*&gt;[^&lt;]+&lt;\s*\/a\s*&gt;/i;
var matches = hrefRegex.exec(result);
if (matches &amp;&amp; matches.length &gt; 0) {
	result = matches[1];
}

// Return the result
TextExpander.appendOutput(result);</string>
			<key>snippetType</key>
			<integer>4</integer>
			<key>uuidString</key>
			<string>6E890B93-6842-408F-B27F-59B5D12C6198</string>
		</dict>
		<dict>
			<key>abbreviation</key>
			<string>;dark</string>
			<key>abbreviationMode</key>
			<integer>0</integer>
			<key>creationDate</key>
			<date>2022-09-15T05:03:00Z</date>
			<key>label</key>
			<string>Dark Mode Toggle</string>
			<key>modificationDate</key>
			<date>2022-09-15T05:03:00Z</date>
			<key>plainText</key>
			<string>tell application "System Events"
	tell appearance preferences
		get properties
		set currentValue to dark mode
		if currentValue is false then
			set properties to {dark mode:true}
		else if currentValue is true then
			set properties to {dark mode:false}
		end if
	end tell
end tell</string>
			<key>snippetType</key>
			<integer>2</integer>
			<key>uuidString</key>
			<string>EB611345-DE4B-4CCB-A9DB-23E10827C320</string>
		</dict>
	</array>
</dict>
</plist>
