-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathinfo.plist
871 lines (791 loc) · 23.3 KB
/
info.plist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
<?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>bundleid</key>
<string>com.stephancasas.Clockify</string>
<key>connections</key>
<dict>
<key>48B7B2A7-399C-4114-85B9-D89B08E8E27B</key>
<array>
<dict>
<key>destinationuid</key>
<string>86275DEB-9881-46D9-8BB9-5D48C404F80F</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
</array>
<key>4DB423FF-D11A-45B7-AF47-8075153B6ED6</key>
<array>
<dict>
<key>destinationuid</key>
<string>C7631B59-59C5-48D7-BDCD-CE281244A310</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
</array>
<key>86275DEB-9881-46D9-8BB9-5D48C404F80F</key>
<array>
<dict>
<key>destinationuid</key>
<string>C7631B59-59C5-48D7-BDCD-CE281244A310</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
</array>
<key>C7631B59-59C5-48D7-BDCD-CE281244A310</key>
<array>
<dict>
<key>destinationuid</key>
<string>7126AC35-6A8B-4814-9C32-C4B62778DBFD</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
</array>
<key>F01458AD-724F-400B-870E-C150BEF7A65B</key>
<array>
<dict>
<key>destinationuid</key>
<string>1BFA983B-0DAA-48E8-B7FC-4D6F31ACC952</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
</array>
</dict>
<key>createdby</key>
<string>Stephan Casas</string>
<key>description</key>
<string>Start and stop/categorize Clockify time entries.</string>
<key>disabled</key>
<false/>
<key>name</key>
<string>Clockify</string>
<key>objects</key>
<array>
<dict>
<key>config</key>
<dict>
<key>alfredfiltersresults</key>
<true/>
<key>alfredfiltersresultsmatchmode</key>
<integer>0</integer>
<key>argumenttreatemptyqueryasnil</key>
<true/>
<key>argumenttrimmode</key>
<integer>0</integer>
<key>argumenttype</key>
<integer>1</integer>
<key>escaping</key>
<integer>68</integer>
<key>keyword</key>
<string>.clockify</string>
<key>queuedelaycustom</key>
<integer>3</integer>
<key>queuedelayimmediatelyinitially</key>
<true/>
<key>queuedelaymode</key>
<integer>0</integer>
<key>queuemode</key>
<integer>1</integer>
<key>runningsubtext</key>
<string></string>
<key>script</key>
<string>function run(argv) {
const app = Application.currentApplication();
app.includeStandardAdditions = true;
const env = (key) => app.systemAttribute(`${key}`) || '';
const makeActivityItem = (title, subtitle, arg, valid = true) => ({
title,
subtitle,
arg,
valid
});
const items = (items) => JSON.stringify({ items });
const DEFAULT_ITEMS = [
makeActivityItem(
'Start',
'Start a new Clockify time entry.',
'create_time_entry'
),
makeActivityItem(
'Stop',
'End the currently-ongoing clockify time entry.',
'pick_client'
),
makeActivityItem(
'Discard',
'Discard the currently-ongoing clockify time entry.',
'discard_timer'
)
];
const SETUP_API_KEY_ITEMS = [
makeActivityItem(
'Set API Key to Continue',
'Define the Clockify API key environment variable to continue.',
'install_api_key',
false
)
];
const SETUP_USER_ID_ITEMS = [
makeActivityItem(
'Setup User Account',
'End the currently-ongoing clockify time entry.',
'install_user_id'
)
];
const SETUP_WORKSPACE_ID_ITEMS = [
makeActivityItem(
'Choose Workspace',
'Define the Clockify workspace ID to use',
'install_workspace_id'
)
];
if (!env('clockify_api_key')) return items(SETUP_API_KEY_ITEMS);
if (!env('clockify_user_id')) return items(SETUP_USER_ID_ITEMS);
if (!env('clockify_workspace_id')) return items(SETUP_WORKSPACE_ID_ITEMS);
return items(DEFAULT_ITEMS);
}
</string>
<key>scriptargtype</key>
<integer>1</integer>
<key>scriptfile</key>
<string></string>
<key>subtext</key>
<string></string>
<key>title</key>
<string>Clockify</string>
<key>type</key>
<integer>7</integer>
<key>withspace</key>
<true/>
</dict>
<key>type</key>
<string>alfred.workflow.input.scriptfilter</string>
<key>uid</key>
<string>48B7B2A7-399C-4114-85B9-D89B08E8E27B</string>
<key>version</key>
<integer>3</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>alfredfiltersresults</key>
<false/>
<key>alfredfiltersresultsmatchmode</key>
<integer>0</integer>
<key>argumenttreatemptyqueryasnil</key>
<false/>
<key>argumenttrimmode</key>
<integer>0</integer>
<key>argumenttype</key>
<integer>1</integer>
<key>escaping</key>
<integer>68</integer>
<key>queuedelaycustom</key>
<integer>3</integer>
<key>queuedelayimmediatelyinitially</key>
<true/>
<key>queuedelaymode</key>
<integer>1</integer>
<key>queuemode</key>
<integer>1</integer>
<key>runningsubtext</key>
<string></string>
<key>script</key>
<string>function run(argv) {
const QUERY = argv[0];
const app = Application.currentApplication();
app.includeStandardAdditions = true;
// api vars and secrets
const CLOCKIFY_BASE_URL = 'https://api.clockify.me/api/v1';
const CLOCKIFY_API_KEY = app.systemAttribute('clockify_api_key');
const CLOCKIFY_WORKSPACE_ID = app.systemAttribute('clockify_workspace_id');
const CLOCKIFY_USER_ID = app.systemAttribute('clockify_user_id');
// cache setup
const CACHE_DIR = app.systemAttribute('alfred_workflow_cache');
const CACHE_EXTEN = 'alfredcache';
const Util = {
shellEncode: (data) => {
if (typeof data === 'object') data = JSON.stringify(data);
return [...data].map((char) => char.charCodeAt(0)).join(' ');
},
shellDecode: (data) => {
data = String.fromCharCode(...data.split(/\s/g));
try {
data = JSON.parse(data);
} catch (ex) {}
return data;
},
readCache: (key) => {
try {
const data = app.doShellScript(`\
curl --location \
--request GET 'file://${CACHE_DIR}/${key}.${CACHE_EXTEN}'`);
return Util.shellDecode(data);
} catch (ex) {
return '';
}
},
writeCache: (key, value) => {
app.doShellScript(
`mkdir -p "${CACHE_DIR}"; \
printf "${Util.shellEncode(
value,
)}" > "${CACHE_DIR}/${key}.${CACHE_EXTEN}";`,
);
return value;
},
};
const Clockify = () => {
const getUser = () => {
const res =
app.doShellScript(`curl --location --request GET '${CLOCKIFY_BASE_URL}/user' \
--header 'Cache-Control: no-cache' \
--header 'Accept: application/json' \
--header 'X-Api-Key: ${CLOCKIFY_API_KEY}'`);
return JSON.parse(res);
};
const getWorkspaces = (refresh = false) => {
let res = Util.readCache('workspaces');
if (refresh || !res) {
res =
app.doShellScript(`curl --location --request GET '${CLOCKIFY_BASE_URL}/workspaces' \
--header 'Cache-Control: no-cache' \
--header 'Accept: application/json' \
--header 'X-Api-Key: ${CLOCKIFY_API_KEY}'`);
Util.writeCache('workspaces', res);
}
return JSON.parse(res);
};
const getEntries = () => {
const res =
app.doShellScript(`curl --location --request GET '${CLOCKIFY_BASE_URL}/workspaces/${CLOCKIFY_WORKSPACE_ID}/user/${CLOCKIFY_USER_ID}/time-entries' \
--header 'Cache-Control: no-cache' \
--header 'Accept: application/json' \
--header 'X-Api-Key: ${CLOCKIFY_API_KEY}'`);
return JSON.parse(res);
};
const startTimer = () => {
const res =
app.doShellScript(`curl --location --request POST '${CLOCKIFY_BASE_URL}/workspaces/${CLOCKIFY_WORKSPACE_ID}/time-entries' \
--header 'Cache-Control: no-cache' \
--header 'Accept: application/json' \
--header 'X-Api-Key: ${CLOCKIFY_API_KEY}' \
--header 'Content-Type: application/json' \
--data-raw '{
"start": "${new Date().toISOString()}"
}'`);
return JSON.parse(res);
};
const stopTimer = (projectId = null, description = null) => {
// get ongoing entry
const ongoing = getEntries()[0];
// timer already stopped
if (!!ongoing.timeInterval.end) return {};
// update entry details before stopping -- cannot do in one request
let res =
app.doShellScript(`curl --location --request PUT '${CLOCKIFY_BASE_URL}/workspaces/${CLOCKIFY_WORKSPACE_ID}/time-entries/${
ongoing.id
}' \
--header 'Cache-Control: no-cache' \
--header 'Accept: application/json' \
--header 'X-Api-Key: ${CLOCKIFY_API_KEY}' \
--header 'Content-Type: application/json' \
--data-raw '{
"start": "${ongoing.timeInterval.start}",
"projectId": ${projectId ? `"${projectId}"` : 'null'},
"description": ${
description ? `"${description.replace("'", "\\'")}"` : 'null'
}
}'`);
// end timer/entry
res =
app.doShellScript(`curl --location --request PATCH '${CLOCKIFY_BASE_URL}/workspaces/${CLOCKIFY_WORKSPACE_ID}/user/${CLOCKIFY_USER_ID}/time-entries' \
--header 'Cache-Control: no-cache' \
--header 'Accept: application/json' \
--header 'X-Api-Key: ${CLOCKIFY_API_KEY}' \
--header 'Content-Type: application/json' \
--data-raw '{
"end": "${new Date().toISOString()}"
}'`);
return JSON.parse(res);
};
const discardTimer = () => {
const ongoing = getEntries()[0];
if (!!ongoing.timeInterval.end) return false;
app.doShellScript(`curl --location --request DELETE '${CLOCKIFY_BASE_URL}/workspaces/${CLOCKIFY_WORKSPACE_ID}/time-entries/${ongoing.id}' \
--header 'Cache-Control: no-cache' \
--header 'Accept: application/json' \
--header 'X-Api-Key: ${CLOCKIFY_API_KEY}' \
--header 'Content-Type: application/json'`);
return true;
};
const getClients = (refresh = false) => {
let res = Util.readCache('clients');
if (refresh || !res) {
res =
app.doShellScript(`curl --location --request GET '${CLOCKIFY_BASE_URL}/workspaces/${CLOCKIFY_WORKSPACE_ID}/clients' \
--header 'Cache-Control: no-cache' \
--header 'Accept: application/json' \
--header 'X-Api-Key: ${CLOCKIFY_API_KEY}'`);
Util.writeCache('clients', res);
}
return typeof res === 'object' ? res : JSON.parse(res);
};
const getClientProjects = (clientId, refresh = false) => {
const cacheKey = `projects-${clientId}`;
let res = Util.readCache(cacheKey);
if (refresh || !res) {
res =
app.doShellScript(`curl --location --request GET '${CLOCKIFY_BASE_URL}/workspaces/${CLOCKIFY_WORKSPACE_ID}/projects?clients=${clientId}' \
--header 'Cache-Control: no-cache' \
--header 'Accept: application/json' \
--header 'X-Api-Key: ${CLOCKIFY_API_KEY}'`);
Util.writeCache(cacheKey, res);
}
return typeof res === 'object' ? res : JSON.parse(res);
};
return {
getUser,
getWorkspaces,
getEntries,
startTimer,
stopTimer,
discardTimer,
getClients,
getClientProjects,
};
};
const Alfred = {
setEnv: (key, value) => {
const prefs = Alfred.var('preferences');
const workflowUid = Alfred.var('workflow_uid');
const workflowDir = `${prefs}/workflows/${workflowUid}`;
return Application('System Events')
.propertyListFiles.byName(`${workflowDir}/info.plist`)
.propertyListItems.byName('variables')
.propertyListItems.byName(key)
.value.set(value);
},
error: (message) =>
app.displayNotification(message, {
soundName: 'Pop',
withTitle: 'Clockify',
}),
info: (message) =>
app.displayNotification(message, {
soundName: 'Hero',
withTitle: 'Clockify',
}),
invoke: (trigger, arg = '') => {
Application('Alfred').runTrigger(trigger, {
inWorkflow: Alfred.var('workflow_bundleid'),
withArgument: typeof arg === 'string' ? arg : JSON.stringify(arg),
});
},
dismiss: () => Alfred.invoke('dismiss'),
var: (name) => app.systemAttribute(`alfred_${name}`) || '',
getActivity: () => {
return Alfred.var('activity');
},
/**
* Use the current query to search through items using a fuzzy algorithm.
* @param {Array} items The items to be searched/filtered.
* @param {string} QUERY The ongoing query.
* @param {string|Array<string>} keys For Array<Object> in `items`, the object query when searching.
* @returns Array
*/
fuzzySearch: (items, keys = []) =>
items.filter((item) =>
QUERY.split(/\s/g).every(
(word) =>
!!(
typeof item === 'object'
? [keys]
.flat()
.map((key) => item[key])
.join(' ')
: item
).match(new RegExp(`${word}`, 'gi')),
),
),
/**
* Make an array of objects for Alfred's filter mechanism.
* @param {Array} arr The array of items to use.
* @param {string} varNameToSet The variable to persist on commit.
* @param {string} nextActivity The next activity to run on commit.
* @param {string} titleKey For Array<Object>, the key to use for `title`.
* @param {string} valueKey For Array<Object>, the key to use for variable values.
* @param {string} subtitleKey For Array<Object>, the key to use for `subtitle`.
* @returns Array
*/
makeFilterItems: (
arr,
varNameToSet,
nextActivity,
titleKey = '',
valueKey = '',
subtitleKey = null,
) => {
if (!arr.length) return [];
const make = (what) =>
typeof arr[0] === 'object'
? (item) => item[eval(`${what}Key;`)]
: (item) => item;
return arr.map((item) =>
Object.assign(
{
title: make('title')(item),
variables: {
[`alfred_${varNameToSet}`]: make('value')(item),
alfred_activity: nextActivity,
},
},
subtitleKey ? { subtitle: make('subtitle')(item) } : {},
),
);
},
/**
* Create an instructions/prompt list item.
* @param {string} title The instruction title.
* @param {string} subtitle The instruction subtitle
* @returns Object
*/
makeInstructions: (title, subtitle = '') => ({
title,
subtitle,
valid: false,
}),
/**
* Prompt the user for text input.
* @param {*} QUERY The ongoing query object.
* @param {*} varNameToSet The variable to persist.
* @param {*} nextActivity The next activity to run on commit.
* @param {*} title The prompt title.
* @param {*} subtitle The prompt subtitle.
* @returns Object
*/
makeTextPrompt: (varNameToSet, nextActivity, title, subtitle = '') =>
Object.assign(Alfred.makeInstructions(title, subtitle), {
match: QUERY,
variables: {
[`alfred_${varNameToSet}`]: QUERY,
alfred_activity: nextActivity,
},
valid: !!QUERY,
}),
};
const Activities = {
install_user_id: () => {
const user = Clockify().getUser();
if ('id' in user)
Alfred.info(
'Clockify user environment variable has been set successfully.',
);
else return Alfred.error('Could not retrieve user using current API key');
// clear workspaces cache
Util.writeCache('workspaces', '');
Alfred.setEnv('clockify_user_id', user.id);
Alfred.dismiss();
},
install_workspace_id: () => {
const workspaces = Clockify().getWorkspaces();
let items = Alfred.fuzzySearch(workspaces, 'name');
items = [
Alfred.makeInstructions(
'Select Workspace',
'Choose the workspace to use with alfred-clockify.',
),
...Alfred.makeFilterItems(
items,
'workspace_id',
'define_workspace_id',
'name',
'id',
),
];
return { items };
},
define_workspace_id: () => {
Alfred.setEnv('clockify_workspace_id', Alfred.var('workspace_id'));
Alfred.info(
'Clockify workspace environment variable has been set successfully.',
);
Alfred.dismiss();
},
create_time_entry: () => {
Alfred.dismiss();
const start = Clockify().startTimer();
if ('id' in start) Alfred.info('New Clockify timer started.');
else Alfred.error('New Clockify timer failed to start.');
},
pick_client: () => {
let clients = Clockify().getClients();
let items = Alfred.fuzzySearch(clients, 'name');
items = [
Alfred.makeInstructions(
'Assign Client',
'Choose the client to which the time entry belongs.',
),
...Alfred.makeFilterItems(
items,
'client_id',
'pick_project',
'name',
'id',
),
];
return { items };
},
pick_project: () => {
let projects = Clockify().getClientProjects(Alfred.var('client_id'));
let items = Alfred.fuzzySearch(projects, 'name');
items = [
Alfred.makeInstructions(
'Assign Project',
'Choose the project to which the time entry belongs.',
),
...Alfred.makeFilterItems(
items,
'project_id',
'set_time_entry_description',
'name',
'id',
),
];
return { items };
},
set_time_entry_description: () => {
let items = [
Alfred.makeTextPrompt(
'time_entry_description',
'end_ongoing_timer',
'Assign Description',
'Enter the description of the time entry.',
),
];
return { items };
},
end_ongoing_timer: () => {
Alfred.dismiss();
const stop = Clockify().stopTimer(
Alfred.var('project_id'),
Alfred.var('time_entry_description'),
);
if ('id' in stop) Alfred.info('Ongoing Clockify timer ended.');
else Alfred.error('Ongoing Clockify timer failed to end.');
},
discard_timer: () => {
Alfred.dismiss();
const discard = Clockify().discardTimer();
if (!discard)
return Alfred.error('No ongoing Clockify timer available for discard.');
Alfred.info('Ongoing Clockify timer has been deleted.');
},
};
return JSON.stringify(Activities[Alfred.getActivity()]());
}
</string>
<key>scriptargtype</key>
<integer>1</integer>
<key>scriptfile</key>
<string></string>
<key>subtext</key>
<string></string>
<key>title</key>
<string></string>
<key>type</key>
<integer>7</integer>
<key>withspace</key>
<true/>
</dict>
<key>type</key>
<string>alfred.workflow.input.scriptfilter</string>
<key>uid</key>
<string>C7631B59-59C5-48D7-BDCD-CE281244A310</string>
<key>version</key>
<integer>3</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>externaltriggerid</key>
<string>main</string>
<key>passinputasargument</key>
<false/>
<key>passvariables</key>
<true/>
<key>workflowbundleid</key>
<string>self</string>
</dict>
<key>type</key>
<string>alfred.workflow.output.callexternaltrigger</string>
<key>uid</key>
<string>7126AC35-6A8B-4814-9C32-C4B62778DBFD</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>argument</key>
<string></string>
<key>passthroughargument</key>
<false/>
<key>variables</key>
<dict>
<key>alfred_activity</key>
<string>{query}</string>
</dict>
</dict>
<key>type</key>
<string>alfred.workflow.utility.argument</string>
<key>uid</key>
<string>86275DEB-9881-46D9-8BB9-5D48C404F80F</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>triggerid</key>
<string>main</string>
</dict>
<key>type</key>
<string>alfred.workflow.trigger.external</string>
<key>uid</key>
<string>4DB423FF-D11A-45B7-AF47-8075153B6ED6</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>triggerid</key>
<string>dismiss</string>
</dict>
<key>type</key>
<string>alfred.workflow.trigger.external</string>
<key>uid</key>
<string>F01458AD-724F-400B-870E-C150BEF7A65B</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>type</key>
<string>alfred.workflow.utility.hidealfred</string>
<key>uid</key>
<string>1BFA983B-0DAA-48E8-B7FC-4D6F31ACC952</string>
<key>version</key>
<integer>1</integer>
</dict>
</array>
<key>readme</key>
<string>Quickly start and stop your Clockify timers from Alfred.</string>
<key>uidata</key>
<dict>
<key>1BFA983B-0DAA-48E8-B7FC-4D6F31ACC952</key>
<dict>
<key>note</key>
<string>Hide</string>
<key>xpos</key>
<integer>245</integer>
<key>ypos</key>
<integer>350</integer>
</dict>
<key>48B7B2A7-399C-4114-85B9-D89B08E8E27B</key>
<dict>
<key>note</key>
<string>Primary Entrypoint</string>
<key>xpos</key>
<integer>25</integer>
<key>ypos</key>
<integer>30</integer>
</dict>
<key>4DB423FF-D11A-45B7-AF47-8075153B6ED6</key>
<dict>
<key>note</key>
<string>Loop Re-entry</string>
<key>xpos</key>
<integer>25</integer>
<key>ypos</key>
<integer>175</integer>
</dict>
<key>7126AC35-6A8B-4814-9C32-C4B62778DBFD</key>
<dict>
<key>note</key>
<string>Recursion</string>
<key>xpos</key>
<integer>620</integer>
<key>ypos</key>
<integer>30</integer>
</dict>
<key>86275DEB-9881-46D9-8BB9-5D48C404F80F</key>
<dict>
<key>note</key>
<string>Set Activity</string>
<key>xpos</key>
<integer>245</integer>
<key>ypos</key>
<integer>60</integer>
</dict>
<key>C7631B59-59C5-48D7-BDCD-CE281244A310</key>
<dict>
<key>note</key>
<string>Activities Loop</string>
<key>xpos</key>
<integer>445</integer>
<key>ypos</key>
<integer>30</integer>
</dict>
<key>F01458AD-724F-400B-870E-C150BEF7A65B</key>
<dict>
<key>note</key>
<string>Exit Workflow</string>
<key>xpos</key>
<integer>25</integer>
<key>ypos</key>
<integer>320</integer>
</dict>
</dict>
<key>variables</key>
<dict>
<key>clockify_api_key</key>
<string></string>
<key>clockify_user_id</key>
<string></string>
<key>clockify_workspace_id</key>
<string></string>
</dict>
<key>variablesdontexport</key>
<array>
<string>clockify_user_id</string>
<string>clockify_api_key</string>
<string>clockify_workspace_id</string>
</array>
<key>version</key>
<string>1.0.0</string>
<key>webaddress</key>
<string>https://github.com/stephancasas/alfred-clockify</string>
</dict>
</plist>