this repo has no description
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3<plist version="1.0">
4<dict>
5 <key>AMApplicationBuild</key>
6 <string>527</string>
7 <key>AMApplicationVersion</key>
8 <string>2.10</string>
9 <key>AMDocumentVersion</key>
10 <string>2</string>
11 <key>actions</key>
12 <array>
13 <dict>
14 <key>action</key>
15 <dict>
16 <key>AMAccepts</key>
17 <dict>
18 <key>Container</key>
19 <string>List</string>
20 <key>Optional</key>
21 <true/>
22 <key>Types</key>
23 <array>
24 <string>com.apple.mail.message-object</string>
25 <string>com.apple.mail.mailbox-object</string>
26 <string>com.apple.mail.account-object</string>
27 </array>
28 </dict>
29 <key>AMActionVersion</key>
30 <string>2.0.2</string>
31 <key>AMApplication</key>
32 <array>
33 <string>Mail</string>
34 </array>
35 <key>AMParameterProperties</key>
36 <dict>
37 <key>itemType</key>
38 <dict/>
39 </dict>
40 <key>AMProvides</key>
41 <dict>
42 <key>Container</key>
43 <string>List</string>
44 <key>Types</key>
45 <array>
46 <string>com.apple.mail.message-object</string>
47 <string>com.apple.mail.mailbox-object</string>
48 <string>com.apple.mail.account-object</string>
49 </array>
50 </dict>
51 <key>AMRequiredResources</key>
52 <array/>
53 <key>AMSelectedInputType</key>
54 <string>com.apple.mail.message-object</string>
55 <key>AMSelectedOutputType</key>
56 <string>com.apple.mail.message-object</string>
57 <key>ActionBundlePath</key>
58 <string>/System/Library/Automator/Get Selected Mail Items 2.action</string>
59 <key>ActionName</key>
60 <string>Get Selected Mail Messages</string>
61 <key>ActionParameters</key>
62 <dict>
63 <key>itemType</key>
64 <string>com.apple.mail.message-object</string>
65 </dict>
66 <key>BundleIdentifier</key>
67 <string>com.apple.Automator.GetSelectedMailItems2</string>
68 <key>CFBundleVersion</key>
69 <string>2.0.2</string>
70 <key>CanShowSelectedItemsWhenRun</key>
71 <false/>
72 <key>CanShowWhenRun</key>
73 <true/>
74 <key>Category</key>
75 <array>
76 <string>AMCategoryMail</string>
77 </array>
78 <key>Class Name</key>
79 <string>Get_Selected_Mail_Items_2</string>
80 <key>InputUUID</key>
81 <string>CCB6B7CA-4C89-498F-8F9F-A51DE1B88126</string>
82 <key>Keywords</key>
83 <array/>
84 <key>OutputUUID</key>
85 <string>39CD84E9-293C-49AB-B17E-EC8137CB5858</string>
86 <key>UUID</key>
87 <string>4700525B-4558-4EEE-AAB6-1F6AA3CAB8AB</string>
88 <key>UnlocalizedApplications</key>
89 <array>
90 <string>Mail</string>
91 </array>
92 <key>arguments</key>
93 <dict>
94 <key>0</key>
95 <dict>
96 <key>default value</key>
97 <string>com.apple.mail.message-object</string>
98 <key>name</key>
99 <string>itemType</string>
100 <key>required</key>
101 <string>0</string>
102 <key>type</key>
103 <string>0</string>
104 <key>uuid</key>
105 <string>0</string>
106 </dict>
107 </dict>
108 <key>isViewVisible</key>
109 <integer>1</integer>
110 <key>location</key>
111 <string>565.000000:225.000000</string>
112 <key>nibPath</key>
113 <string>/System/Library/Automator/Get Selected Mail Items 2.action/Contents/Resources/Base.lproj/main.nib</string>
114 </dict>
115 <key>isViewVisible</key>
116 <integer>1</integer>
117 </dict>
118 <dict>
119 <key>action</key>
120 <dict>
121 <key>AMAccepts</key>
122 <dict>
123 <key>Container</key>
124 <string>List</string>
125 <key>Optional</key>
126 <true/>
127 <key>Types</key>
128 <array>
129 <string>com.apple.applescript.object</string>
130 </array>
131 </dict>
132 <key>AMActionVersion</key>
133 <string>1.0.2</string>
134 <key>AMApplication</key>
135 <array>
136 <string>Automator</string>
137 </array>
138 <key>AMParameterProperties</key>
139 <dict>
140 <key>source</key>
141 <dict/>
142 </dict>
143 <key>AMProvides</key>
144 <dict>
145 <key>Container</key>
146 <string>List</string>
147 <key>Types</key>
148 <array>
149 <string>com.apple.applescript.object</string>
150 </array>
151 </dict>
152 <key>ActionBundlePath</key>
153 <string>/System/Library/Automator/Run AppleScript.action</string>
154 <key>ActionName</key>
155 <string>Run AppleScript</string>
156 <key>ActionParameters</key>
157 <dict>
158 <key>source</key>
159 <string>tell application "Mail"
160 set selectedMessages to selection
161 -- Ask for the save location once
162 set savePath to (choose folder) as rich text
163
164 -- Initialize counter
165 set messageCount to 0
166
167 repeat with theMessage in selectedMessages
168 set messageId to message id of theMessage
169 set messageSubject to subject of theMessage
170 -- Clean up the subject for use in a filename
171 set cleanSubject to my cleanupFileName(messageSubject)
172 set saveFile to savePath & cleanSubject & ".eml"
173 set messageContent to content of theMessage
174 my saveTextToFile(messageContent, saveFile)
175
176 -- Delete the message after saving
177 delete theMessage
178
179 -- Increment counter
180 set messageCount to messageCount + 1
181 end repeat
182
183 -- Return the count for use in the notification
184 return messageCount
185end tell
186
187on cleanupFileName(theText)
188 -- Replace characters not allowed in filenames
189 set disallowedChars to {":", "/", "\\", "*", "?", "\"", "<", ">", "|"}
190 repeat with badChar in disallowedChars
191 set theText to my replaceText(theText, badChar, "-")
192 end repeat
193 return theText
194end cleanupFileName
195
196on replaceText(theText, oldItem, newItem)
197 set AppleScript's text item delimiters to oldItem
198 set tempText to text items of theText
199 set AppleScript's text item delimiters to newItem
200 set theText to tempText as text
201 set AppleScript's text item delimiters to ""
202 return theText
203end replaceText
204
205on saveTextToFile(theText, filePath)
206 set fileRef to open for access filePath with write permission
207 write theText to fileRef
208 close access fileRef
209end saveTextToFile</string>
210 </dict>
211 <key>BundleIdentifier</key>
212 <string>com.apple.Automator.RunScript</string>
213 <key>CFBundleVersion</key>
214 <string>1.0.2</string>
215 <key>CanShowSelectedItemsWhenRun</key>
216 <false/>
217 <key>CanShowWhenRun</key>
218 <true/>
219 <key>Category</key>
220 <array>
221 <string>AMCategoryUtilities</string>
222 </array>
223 <key>Class Name</key>
224 <string>RunScriptAction</string>
225 <key>InputUUID</key>
226 <string>183F4AB1-A26C-4B59-813F-2ABF3669FB67</string>
227 <key>Keywords</key>
228 <array>
229 <string>Run</string>
230 </array>
231 <key>OutputUUID</key>
232 <string>A39F2355-3FC6-4DBC-8E97-2E5FD14119CD</string>
233 <key>UUID</key>
234 <string>BCAB5567-33BB-40E5-A2E3-0649FF5985A1</string>
235 <key>UnlocalizedApplications</key>
236 <array>
237 <string>Automator</string>
238 </array>
239 <key>arguments</key>
240 <dict>
241 <key>0</key>
242 <dict>
243 <key>default value</key>
244 <string>on run {input, parameters}
245
246 (* Your script goes here *)
247
248 return input
249end run</string>
250 <key>name</key>
251 <string>source</string>
252 <key>required</key>
253 <string>0</string>
254 <key>type</key>
255 <string>0</string>
256 <key>uuid</key>
257 <string>0</string>
258 </dict>
259 </dict>
260 <key>isViewVisible</key>
261 <integer>1</integer>
262 <key>location</key>
263 <string>565.000000:470.000000</string>
264 <key>nibPath</key>
265 <string>/System/Library/Automator/Run AppleScript.action/Contents/Resources/Base.lproj/main.nib</string>
266 </dict>
267 <key>isViewVisible</key>
268 <integer>1</integer>
269 </dict>
270 <dict>
271 <key>action</key>
272 <dict>
273 <key>AMAccepts</key>
274 <dict>
275 <key>Container</key>
276 <string>List</string>
277 <key>Optional</key>
278 <true/>
279 <key>Types</key>
280 <array/>
281 </dict>
282 <key>AMActionVersion</key>
283 <string>1.0</string>
284 <key>AMApplication</key>
285 <array>
286 <string>Automator</string>
287 </array>
288 <key>AMParameterProperties</key>
289 <dict>
290 <key>message</key>
291 <dict>
292 <key>tokenizedValue</key>
293 <array/>
294 </dict>
295 <key>subtitle</key>
296 <dict>
297 <key>tokenizedValue</key>
298 <array>
299 <string>Operation Complete</string>
300 </array>
301 </dict>
302 <key>title</key>
303 <dict>
304 <key>tokenizedValue</key>
305 <array>
306 <string>Email Workflow Finished!</string>
307 </array>
308 </dict>
309 </dict>
310 <key>AMProvides</key>
311 <dict>
312 <key>Container</key>
313 <string>List</string>
314 <key>Types</key>
315 <array/>
316 </dict>
317 <key>ActionBundlePath</key>
318 <string>/System/Library/Automator/Display Notification.action</string>
319 <key>ActionName</key>
320 <string>Display Notification</string>
321 <key>ActionParameters</key>
322 <dict>
323 <key>message</key>
324 <string></string>
325 <key>subtitle</key>
326 <string>Operation Complete</string>
327 <key>title</key>
328 <string>Email Workflow Finished!</string>
329 </dict>
330 <key>BundleIdentifier</key>
331 <string>com.apple.Automator.Display-Notification</string>
332 <key>CFBundleVersion</key>
333 <string>1.0</string>
334 <key>CanShowSelectedItemsWhenRun</key>
335 <true/>
336 <key>CanShowWhenRun</key>
337 <false/>
338 <key>Category</key>
339 <array>
340 <string>AMCategoryUtilities</string>
341 </array>
342 <key>Class Name</key>
343 <string>AMDisplayNotificationAction</string>
344 <key>InputUUID</key>
345 <string>6CAADB58-8B65-4F02-B14F-3AAC1B915D86</string>
346 <key>Keywords</key>
347 <array/>
348 <key>OutputUUID</key>
349 <string>EB893C3D-3F0F-4578-97A3-0F608B8AD4A7</string>
350 <key>UUID</key>
351 <string>696BEC53-BED6-4EB2-81BF-EAC6FAC9D2B0</string>
352 <key>UnlocalizedApplications</key>
353 <array>
354 <string>Automator</string>
355 </array>
356 <key>arguments</key>
357 <dict>
358 <key>0</key>
359 <dict>
360 <key>default value</key>
361 <string></string>
362 <key>name</key>
363 <string>message</string>
364 <key>required</key>
365 <string>0</string>
366 <key>type</key>
367 <string>0</string>
368 <key>uuid</key>
369 <string>0</string>
370 </dict>
371 <key>1</key>
372 <dict>
373 <key>default value</key>
374 <string></string>
375 <key>name</key>
376 <string>subtitle</string>
377 <key>required</key>
378 <string>0</string>
379 <key>type</key>
380 <string>0</string>
381 <key>uuid</key>
382 <string>1</string>
383 </dict>
384 <key>2</key>
385 <dict>
386 <key>default value</key>
387 <string></string>
388 <key>name</key>
389 <string>title</string>
390 <key>required</key>
391 <string>0</string>
392 <key>type</key>
393 <string>0</string>
394 <key>uuid</key>
395 <string>2</string>
396 </dict>
397 </dict>
398 <key>isViewVisible</key>
399 <integer>1</integer>
400 <key>location</key>
401 <string>565.000000:659.000000</string>
402 <key>nibPath</key>
403 <string>/System/Library/Automator/Display Notification.action/Contents/Resources/Base.lproj/main.nib</string>
404 </dict>
405 <key>isViewVisible</key>
406 <integer>1</integer>
407 </dict>
408 </array>
409 <key>connectors</key>
410 <dict>
411 <key>6905121F-34E7-40C8-B5B5-2F10D6B54A16</key>
412 <dict>
413 <key>from</key>
414 <string>4700525B-4558-4EEE-AAB6-1F6AA3CAB8AB - 4700525B-4558-4EEE-AAB6-1F6AA3CAB8AB</string>
415 <key>to</key>
416 <string>BCAB5567-33BB-40E5-A2E3-0649FF5985A1 - BCAB5567-33BB-40E5-A2E3-0649FF5985A1</string>
417 </dict>
418 <key>B9A4ABA7-7A9F-4F9E-AB52-97BD171DF4D0</key>
419 <dict>
420 <key>from</key>
421 <string>BCAB5567-33BB-40E5-A2E3-0649FF5985A1 - BCAB5567-33BB-40E5-A2E3-0649FF5985A1</string>
422 <key>to</key>
423 <string>696BEC53-BED6-4EB2-81BF-EAC6FAC9D2B0 - 696BEC53-BED6-4EB2-81BF-EAC6FAC9D2B0</string>
424 </dict>
425 </dict>
426 <key>workflowMetaData</key>
427 <dict>
428 <key>applicationBundleID</key>
429 <string>com.apple.mail</string>
430 <key>applicationBundleIDsByPath</key>
431 <dict>
432 <key>/System/Applications/Mail.app</key>
433 <string>com.apple.mail</string>
434 </dict>
435 <key>applicationPath</key>
436 <string>/System/Applications/Mail.app</string>
437 <key>applicationPaths</key>
438 <array>
439 <string>/System/Applications/Mail.app</string>
440 </array>
441 <key>inputTypeIdentifier</key>
442 <string>com.apple.Automator.nothing</string>
443 <key>outputTypeIdentifier</key>
444 <string>com.apple.Automator.nothing</string>
445 <key>presentationMode</key>
446 <integer>11</integer>
447 <key>processesInput</key>
448 <false/>
449 <key>serviceApplicationBundleID</key>
450 <string>com.apple.mail</string>
451 <key>serviceApplicationPath</key>
452 <string>/System/Applications/Mail.app</string>
453 <key>serviceInputTypeIdentifier</key>
454 <string>com.apple.Automator.nothing</string>
455 <key>serviceOutputTypeIdentifier</key>
456 <string>com.apple.Automator.nothing</string>
457 <key>serviceProcessesInput</key>
458 <false/>
459 <key>systemImageName</key>
460 <string>NSTouchBarMail</string>
461 <key>useAutomaticInputType</key>
462 <true/>
463 <key>workflowTypeIdentifier</key>
464 <string>com.apple.Automator.servicesMenu</string>
465 </dict>
466</dict>
467</plist>