V6EYDVXBGUY6LP23ND7NE54ZDIKWOVO3BSI62MC667RHHJASR7AQC SBJULR7PI7E5OU6MQ4D7CL4S3O43TWVZDMQUXAOYRG3GBLBI4MLAC 7WGMLTP7YUCNAIGPGLSHPK2BMXF37HCFLYCQTP7KBW5JJVXYPGEQC 5FLTMCXWFLP6MI36R73NDC5ZZGKRB66IXOWY7ZTESTLC7M357H2QC QFS6XFBVEOZU5XHI6DKTKGS7CVQ54FJVVOUH6TU3VNAFWFI22MZAC P2YDA76NPADZYSL7LLWTD3OU72QMLDAAZDJMHMZFQXRONMAT423AC YESXNDC2MNA5N2XKC2WI5HUYNLPG6V3EYYF6XEA5RAPHZPMVFGUAC HDJSNPNPSXXA36CDB4LKXRQFK4SAVHCIBGWJPGLRPKQU4WFKXQJQC H63AATIV5DJHU7G2LGRBK2IJKIOPORAJ52BUDC3B5SW57XYG4NYQC import copy# import datetimeimport xml.etree.ElementTree as ETimport osimport reimport uuiddef get_snippet_content(filepath):with open(filepath) as file:return file.read()tree = ET.parse("./eventbrite/build/template.xml")snippet_nodes = tree.getroot()[0][3]template_node = snippet_nodes[0]# is the parent node which contains a <dict> node relevant nodes are# abbreviation string: [1]# label string: [7]# content string [11]# uuid string [15]uuids = []for k, v in dict_of_snippets.iteritems():unique_id = uuid.uuid1().__str__().upper()uuids.append(unique_id)new_node = copy.deepcopy(template_node)new_node[1].text = knew_node[7].text = knew_node[11].text = vnew_node[15].text = unique_idsnippet_nodes.append(new_node)snippet_nodes.remove(template_node)template_node = uuids_array_node[0]for u in uuids:new_node = copy.deepcopy(template_node)new_node.text = uuuids_array_node.append(new_node)uuids_array_node.remove(template_node)def main():if "snippet.js" in f]abbreviation_content_dict = {}for snippet in snippets:if name:name = "$" + name.group(0)abbreviation_content_dict[name] = get_snippet_content(snippet)add_snippet_to_te_xml(abbreviation_content_dict)if __name__ == "__main__":main()name = re.search(r"\w+(\s\w+)?(?=_snippet\.js)", snippet)path_to_snippets = "./eventbrite/"snippets = [path_to_snippets + f for f in os.listdir(path_to_snippets)tree.write(os.path.expanduser("~/Desktop/efficiency_js_snippets.xml"))uuids_array_node = tree.getroot()[0][5]def add_snippet_to_te_xml(dict_of_snippets):
var ENV = "eventbrite";var PATTERN = /\b[0-9]{11}\b/g;var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Add Attendees Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/attendees-add?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;var app = Application.currentApplication();var INPUT = app.theClipboard();app.includeStandardAdditions = true;
var ENV = "eventbrite";var PATTERN = /\b[0-9]{11}\b/g;var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Affiliate Program Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/affiliates?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;var app = Application.currentApplication();var INPUT = app.theClipboard();app.includeStandardAdditions = true;
var ENV = "eventbrite";var PATTERN = /\b[0-9]{11}\b/g;var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Analytics Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/myevent/" + ID + "/analytics/sales/";var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;var app = Application.currentApplication();var INPUT = app.theClipboard();app.includeStandardAdditions = true;
var ENV = "eventbrite";var PATTERN = /\b[0-9]{11}\b/g;var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Attendee Summary Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/myevent/" + ID + "/reports/attendee/";var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;var app = Application.currentApplication();var INPUT = app.theClipboard();app.includeStandardAdditions = true;
var ENV = "evbqa";var PATTERN = /\b[0-9]{11}\b/g;var app = Application.currentApplication();var INPUT = app.theClipboard();var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Add Attendees Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/attendees-add?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;app.includeStandardAdditions = true;
var ENV = "evbqa";var PATTERN = /\b[0-9]{11}\b/g;var app = Application.currentApplication();var INPUT = app.theClipboard();var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Affiliate Program Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/affiliates?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;app.includeStandardAdditions = true;
var ENV = "evbqa";var PATTERN = /\b[0-9]{11}\b/g;var app = Application.currentApplication();var INPUT = app.theClipboard();var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Analytics Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/myevent/" + ID + "/analytics/sales/";var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;app.includeStandardAdditions = true;
var ENV = "evbqa";var PATTERN = /\b[0-9]{11}\b/g;var app = Application.currentApplication();var INPUT = app.theClipboard();var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Attendee Summary Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/myevent/" + ID + "/reports/attendee/";var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;app.includeStandardAdditions = true;
var ENV = "evbqa";var PATTERN = /\b[0-9]{11}\b/g;var app = Application.currentApplication();var INPUT = app.theClipboard();var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Charts Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/charts?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;app.includeStandardAdditions = true;
var ENV = "evbqa";var PATTERN = /\b[0-9]{11}\b/g;var app = Application.currentApplication();var INPUT = app.theClipboard();var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Checkin Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/checkin?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;app.includeStandardAdditions = true;
var ENV = "evbqa";var PATTERN = /\b[0-9]{11}\b/g;var app = Application.currentApplication();var INPUT = app.theClipboard();var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Create Invite Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/createinvite?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;app.includeStandardAdditions = true;
var ENV = "eventbrite";var PATTERN = /\b[0-9]{11}\b/g;var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Charts Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/charts?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;var app = Application.currentApplication();var INPUT = app.theClipboard();app.includeStandardAdditions = true;
var ENV = "evbqa";var PATTERN = /\b[0-9]{11}\b/g;var app = Application.currentApplication();var INPUT = app.theClipboard();var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Design Page Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/edit?eid=" + ID + "&preview=1#preview";var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;app.includeStandardAdditions = true;
var ENV = "eventbrite";var PATTERN = /\b[0-9]{11}\b/g;var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Checkin Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/checkin?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;var app = Application.currentApplication();var INPUT = app.theClipboard();app.includeStandardAdditions = true;
var ENV = "evbqa";var PATTERN = /\b[0-9]{11}\b/g;var app = Application.currentApplication();var INPUT = app.theClipboard();var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Discounts Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/myevent/" + ID + "/multi_event_discounts/";var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;app.includeStandardAdditions = true;
var ENV = "eventbrite";var PATTERN = /\b[0-9]{11}\b/g;var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Create Invite Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/createinvite?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;var app = Application.currentApplication();var INPUT = app.theClipboard();app.includeStandardAdditions = true;
var ENV = "evbqa";var PATTERN = /\b[0-9]{11}\b/g;var app = Application.currentApplication();var INPUT = app.theClipboard();var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Event Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://www." + ENV + ".com/edit?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;app.includeStandardAdditions = true;
var ENV = "eventbrite";var PATTERN = /\b[0-9]{11}\b/g;var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Design Page Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/edit?eid=" + ID + "&preview=1#preview";var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;var app = Application.currentApplication();var INPUT = app.theClipboard();app.includeStandardAdditions = true;
var ENV = "evbqa";var PATTERN = /\b[0-9]{11}\b/g;var app = Application.currentApplication();var INPUT = app.theClipboard();var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Emails to Attendees Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/attendees-email?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;app.includeStandardAdditions = true;
var ENV = "eventbrite";var PATTERN = /\b[0-9]{11}\b/g;var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Discounts Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/myevent/" + ID + "/multi_event_discounts/";var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;var app = Application.currentApplication();var INPUT = app.theClipboard();app.includeStandardAdditions = true;
var ENV = "evbqa";var PATTERN = /\b[0-9]{11}\b/g;var app = Application.currentApplication();var INPUT = app.theClipboard();var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Manage Facebook Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/facebook-publish?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;app.includeStandardAdditions = true;
var ENV = "eventbrite";var PATTERN = /\b[0-9]{11}\b/g;var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Emails to Attendees Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/attendees-email?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;var app = Application.currentApplication();var INPUT = app.theClipboard();app.includeStandardAdditions = true;
var ENV = "evbqa";var PATTERN = /\b[0-9]{11}\b/g;var app = Application.currentApplication();var INPUT = app.theClipboard();var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Guest List Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/attendees-list?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;app.includeStandardAdditions = true;
var ENV = "eventbrite";var PATTERN = /\b[0-9]{11}\b/g;var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Manage Facebook Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/facebook-publish?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;var app = Application.currentApplication();var INPUT = app.theClipboard();app.includeStandardAdditions = true;
var ENV = "evbqa";var PATTERN = /\b[0-9]{11}\b/g;var app = Application.currentApplication();var INPUT = app.theClipboard();var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Email Invitations Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/invites?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;app.includeStandardAdditions = true;
var ENV = "eventbrite";var PATTERN = /\b[0-9]{11}\b/g;var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Guest List Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/attendees-list?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;var app = Application.currentApplication();var INPUT = app.theClipboard();app.includeStandardAdditions = true;
var ENV = "evbqa";var PATTERN = /\b[0-9]{11}\b/g;var app = Application.currentApplication();var INPUT = app.theClipboard();var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Language Settings Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/language?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;app.includeStandardAdditions = true;
var ENV = "eventbrite";var PATTERN = /\b[0-9]{11}\b/g;var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Email Invitations Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/invites?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;var app = Application.currentApplication();var INPUT = app.theClipboard();app.includeStandardAdditions = true;
var ENV = "evbqa";var PATTERN = /\b[0-9]{11}\b/g;var app = Application.currentApplication();var INPUT = app.theClipboard();var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Event Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://www." + ENV + ".com/myevent?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;app.includeStandardAdditions = true;
var ENV = "eventbrite";var PATTERN = /\b[0-9]{11}\b/g;var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Language Settings Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/language?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;var app = Application.currentApplication();var INPUT = app.theClipboard();app.includeStandardAdditions = true;
var ENV = "evbqa";var PATTERN = /\b[0-9]{11}\b/g;var app = Application.currentApplication();var INPUT = app.theClipboard();var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Name Badges Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/attendees-badges?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;app.includeStandardAdditions = true;
var ENV = "eventbrite";var PATTERN = /\b[0-9]{11}\b/g;var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Name Badges Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/attendees-badges?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;var app = Application.currentApplication();var INPUT = app.theClipboard();app.includeStandardAdditions = true;
var ENV = "evbqa";var PATTERN = /\b[0-9]{11}\b/g;var app = Application.currentApplication();var INPUT = app.theClipboard();var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Order Confirmation Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/myevent/" + ID + "/order-confirmation/";var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;app.includeStandardAdditions = true;
var ENV = "eventbrite";var PATTERN = /\b[0-9]{11}\b/g;var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Order Confirmation Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/myevent/" + ID + "/order-confirmation/";var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;var app = Application.currentApplication();var INPUT = app.theClipboard();app.includeStandardAdditions = true;
var ENV = "evbqa";var PATTERN = /\b[0-9]{11}\b/g;var app = Application.currentApplication();var INPUT = app.theClipboard();var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Order Form Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/questions?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;app.includeStandardAdditions = true;
var ENV = "eventbrite";var PATTERN = /\b[0-9]{11}\b/g;var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Order Form Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/questions?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;var app = Application.currentApplication();var INPUT = app.theClipboard();app.includeStandardAdditions = true;
var ENV = "evbqa";var PATTERN = /\b[0-9]{9}\b/g;var app = Application.currentApplication();var INPUT = app.theClipboard();var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an order ID and try again.";app.displayNotification(message, {withTitle: "Order Lookup",subtitle: "Not an Order ID",soundName: "text"});} else {ID = ID[0];var URL = "https://admin." + ENV + ".com/admin/orderinfo/?order_id=" + ID;var chrome = Application("Google Chrome");var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;app.includeStandardAdditions = true;
var ENV = "eventbrite";var PATTERN = /\b[0-9]{11}\b/g;var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Orders Report Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/reports?eid=" + ID + "&rid=h&filterby=attending,all";var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;var app = Application.currentApplication();var INPUT = app.theClipboard();app.includeStandardAdditions = true;
var ENV = "evbqa";var PATTERN = /\b[0-9]{11}\b/g;var app = Application.currentApplication();var INPUT = app.theClipboard();var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Orders Report Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/reports?eid=" + ID + "&rid=h&filterby=attending,all";var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;app.includeStandardAdditions = true;
var ENV = "eventbrite";var PATTERN = /\b[0-9]{11}\b/g;var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Payment Options Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/payment-options?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;var app = Application.currentApplication();var INPUT = app.theClipboard();app.includeStandardAdditions = true;
var ENV = "evbqa";var PATTERN = /\b[0-9]{11}\b/g;var app = Application.currentApplication();var INPUT = app.theClipboard();var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Payment Options Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/payment-options?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;app.includeStandardAdditions = true;
var ENV = "eventbrite";var PATTERN = /\b[0-9]{11}\b/g;var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Reports Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/myevent/" + ID + "/reports/";var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;var app = Application.currentApplication();var INPUT = app.theClipboard();app.includeStandardAdditions = true;
var ENV = "evbqa";var PATTERN = /\b[0-9]{11}\b/g;var app = Application.currentApplication();var INPUT = app.theClipboard();var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Reports Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/myevent/" + ID + "/reports/";var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;app.includeStandardAdditions = true;
var ENV = "eventbrite";var PATTERN = /\b[0-9]{11}\b/g;var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Social Stream Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/myevent/" + ID + "/experience/";var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;var app = Application.currentApplication();var INPUT = app.theClipboard();app.includeStandardAdditions = true;
var ENV = "evbqa";var PATTERN = /\b[0-9]{11}\b/g;var app = Application.currentApplication();var INPUT = app.theClipboard();var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Social Stream Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/myevent/" + ID + "/experience/";var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;app.includeStandardAdditions = true;
var ENV = "eventbrite";var PATTERN = /\b[0-9]{11}\b/g;var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Tracking Links Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/links?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;var app = Application.currentApplication();var INPUT = app.theClipboard();app.includeStandardAdditions = true;
var ENV = "evbqa";var PATTERN = /\b[0-9]{11}\b/g;var app = Application.currentApplication();var INPUT = app.theClipboard();var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Tracking Links Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/links?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;app.includeStandardAdditions = true;
var ENV = "eventbrite";var PATTERN = /\b[0-9]{11}\b/g;var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Tracking Pixels Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/myevent/" + ID + "/tracking/";var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;var app = Application.currentApplication();var INPUT = app.theClipboard();app.includeStandardAdditions = true;
var ENV = "evbqa";var PATTERN = /\b[0-9]{11}\b/g;var app = Application.currentApplication();var INPUT = app.theClipboard();var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Tracking Pixels Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/myevent/" + ID + "/tracking/";var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;app.includeStandardAdditions = true;
<?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>expandAfterMode</key><dict><key>expandAfterMode</key><integer>0</integer><key>groupName</key><string>yoyotest</string></dict><key>snippetsTE2</key><array><dict><key>abbreviation</key><string>##example abbreviation##</string><key>abbreviationMode</key><integer>1</integer><key>creationDate</key><date>2017-01-23T00:00:00Z</date><key>label</key><string>##example label##</string><key>modificationDate</key><date>2017-01-23T00:00:00Z</date><key>plainText</key><string>##example content##</string><key>snippetType</key><integer>4</integer><key>uuidString</key><string></string></dict></array><key>snippetUUIDs</key><array><string>##example uuid string###</string></array><key>suggestAbbreviations</key><integer>1</integer><key>updateFrequency</key><integer>0</integer><key>uuidString</key><string></string><key>writable</key><integer>1</integer></dict></plist>
var ENV = "eventbrite";var PATTERN = /\b[0-9]{11}\b/g;var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Manage Waitlist Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/waitlist-view?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;var app = Application.currentApplication();var INPUT = app.theClipboard();app.includeStandardAdditions = true;
var ENV = "evbqa";var PATTERN = /\b[0-9]{11}\b/g;var app = Application.currentApplication();var INPUT = app.theClipboard();var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Manage Waitlist Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/waitlist-view?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;app.includeStandardAdditions = true;
var ENV = "eventbrite";var PATTERN = /\b[0-9]{11}\b/g;if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Event Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://www." + ENV + ".com/edit?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;var ID = INPUT.match(PATTERN);var app = Application.currentApplication();var INPUT = app.theClipboard();app.includeStandardAdditions = true;
var chrome = Application("Google Chrome"); chrome.includeStandardAdditions = true;var INPUT = "\"".concat(chrome.theClipboard()).concat("\"");var URL = "https://github.com/eventbrite/core/search?utf8=✓&q=" + encodeURIComponent(INPUT);var chrome = Application("Google Chrome");var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();ignoreOutput;
var ENV = "eventbrite";var PATTERN = /\b[0-9]{11}\b/g;var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Waitlist Settings Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/waitlist-settings?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;var app = Application.currentApplication();var INPUT = app.theClipboard();app.includeStandardAdditions = true;
var ENV = "eventbrite";var PATTERN = /\b[0-9]{11}\b/g;if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Event Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://www." + ENV + ".com/myevent?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;var ID = INPUT.match(PATTERN);var app = Application.currentApplication();var INPUT = app.theClipboard();app.includeStandardAdditions = true;
var ENV = "evbqa";var PATTERN = /\b[0-9]{11}\b/g;var app = Application.currentApplication();var INPUT = app.theClipboard();var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Waitlist Settings Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/waitlist-settings?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;app.includeStandardAdditions = true;
var ENV = "eventbrite";var PATTERN = /\b[0-9]{11}\b/g;var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Widgets Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/web-integration?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;var app = Application.currentApplication();var INPUT = app.theClipboard();app.includeStandardAdditions = true;
var ENV = "evbqa";var PATTERN = /\b[0-9]{11}\b/g;var app = Application.currentApplication();var INPUT = app.theClipboard();var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an event ID and try again.";app.displayNotification(message, {withTitle: "Widgets Lookup",subtitle: "Not an Event ID",soundName: "text"});} else {ID = ID[0];var URL = "https://" + ENV + ".com/web-integration?eid=" + ID;var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;app.includeStandardAdditions = true;
var ENV = "eventbrite";var PATTERN = /\b[0-9]{9}\b/g;var ID = INPUT.match(PATTERN);if (!ID) {var message = "Please copy an order ID and try again.";app.displayNotification(message, {withTitle: "Order Lookup",subtitle: "Not an Order ID",soundName: "text"});} else {ID = ID[0];var URL = "https://admin." + ENV + ".com/admin/orderinfo/?order_id=" + ID;var chrome = Application("Google Chrome");var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}ignoreOutput;var app = Application.currentApplication();var INPUT = app.theClipboard();app.includeStandardAdditions = true;
var ENV = "eventbrite";var PATTERN = /\b[0-9]{11}\b/g;var ID = INPUT.match(PATTERN);if (!ID) {// handle the ID not matching the needed patternvar message = "Please copy valid input";app.displayNotification(message, {withTitle: "Lookup Something",subtitle: "Not valid input",soundName: "text"});} else {ID = ID[0];var chrome = Application('Google Chrome');var tab = chrome.Tab({url: URL});chrome.windows[0].tabs.push(tab);chrome.activate();}var URL = "https://" + ENV + ".com/" + ID + "";var app = Application.currentApplication();app.includeStandardAdditions();var INPUT = app.theClipboard();