generated from chrisgrieser/alfred-workflow-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinfo.plist
342 lines (331 loc) · 8.36 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
<?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>de.chris-grieser.pdf-summarizer</string>
<key>connections</key>
<dict>
<key>2521CCD5-BF7A-401F-84A7-7EBD1562E94C</key>
<array>
<dict>
<key>destinationuid</key>
<string>D361B88F-34F2-4AA4-8855-EF65D1040682</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
</array>
<key>5CC96E33-CF43-44D2-8FC0-3EB4D7101FFD</key>
<array>
<dict>
<key>destinationuid</key>
<string>2521CCD5-BF7A-401F-84A7-7EBD1562E94C</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
</array>
<key>AFC82776-97B5-46CE-9205-DF67E1780996</key>
<array>
<dict>
<key>destinationuid</key>
<string>2521CCD5-BF7A-401F-84A7-7EBD1562E94C</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
</array>
</dict>
<key>createdby</key>
<string>Chris Grieser</string>
<key>description</key>
<string>Get summaries of your PDFs via ChatPDF with just one hotkey.</string>
<key>disabled</key>
<false/>
<key>name</key>
<string>PDF Summarizer</string>
<key>objects</key>
<array>
<dict>
<key>config</key>
<dict>
<key>concurrently</key>
<false/>
<key>escaping</key>
<integer>0</integer>
<key>script</key>
<string></string>
<key>scriptargtype</key>
<integer>1</integer>
<key>scriptfile</key>
<string>./scripts/chat-pdf-summary.sh</string>
<key>type</key>
<integer>8</integer>
</dict>
<key>type</key>
<string>alfred.workflow.action.script</string>
<key>uid</key>
<string>2521CCD5-BF7A-401F-84A7-7EBD1562E94C</string>
<key>version</key>
<integer>2</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>alignment</key>
<integer>0</integer>
<key>backgroundcolor</key>
<string></string>
<key>fadespeed</key>
<integer>0</integer>
<key>fillmode</key>
<integer>0</integer>
<key>font</key>
<string></string>
<key>ignoredynamicplaceholders</key>
<false/>
<key>largetypetext</key>
<string>{query}</string>
<key>textcolor</key>
<string></string>
<key>wrapat</key>
<integer>50</integer>
</dict>
<key>type</key>
<string>alfred.workflow.output.largetype</string>
<key>uid</key>
<string>D361B88F-34F2-4AA4-8855-EF65D1040682</string>
<key>version</key>
<integer>3</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>acceptsmulti</key>
<integer>0</integer>
<key>filetypes</key>
<array>
<string>com.adobe.pdf</string>
</array>
<key>name</key>
<string>Summary of PDF</string>
</dict>
<key>type</key>
<string>alfred.workflow.trigger.action</string>
<key>uid</key>
<string>AFC82776-97B5-46CE-9205-DF67E1780996</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>action</key>
<integer>0</integer>
<key>argument</key>
<integer>1</integer>
<key>focusedappvariable</key>
<false/>
<key>focusedappvariablename</key>
<string></string>
<key>hotkey</key>
<integer>0</integer>
<key>hotmod</key>
<integer>0</integer>
<key>leftcursor</key>
<false/>
<key>modsmode</key>
<integer>0</integer>
<key>relatedApps</key>
<array>
<string>com.apple.finder</string>
</array>
<key>relatedAppsMode</key>
<integer>1</integer>
</dict>
<key>type</key>
<string>alfred.workflow.trigger.hotkey</string>
<key>uid</key>
<string>5CC96E33-CF43-44D2-8FC0-3EB4D7101FFD</string>
<key>version</key>
<integer>2</integer>
</dict>
</array>
<key>readme</key>
<string>## Get ChatPDF API key
The ChatPDF API key is (currently) free for 5000 PDF pages / 500 requests per month.
1. Go to https://www.chatpdf.com/
2. Scroll to the very bottom of the page.
3. In the footer, click `My Account`. You will be prompted to create an account if you do not have one yet.
4. In `My Account`, expand the `Developer` settings. You will find your API key there:
![how to find the API key](./how-to-get-api-key.png)
---
**Advanced Users**
Instead of entering the API key directly, you can also enter ".zshenv" into the API key field. The workflow will then use the key exported as `CHATPDF_API_KEY` in your " `.zshenv`.
---
## Cite this software project
If you want to mention this software project in an academic publication, please cite it as:
`Grieser, C. (2023). PDF summarizer for Alfred [Computer software]. https://github.com/chrisgrieser/pdf-summarizer-alfred`
For other citation styles, use the following metadata:
- [Citation File Format](https://github.com/chrisgrieser/pdf-summarizer-alfred/blob/main/CITATION.cff)
- [BibTeX](https://github.com/chrisgrieser/pdf-summarizer-alfred/blob/main/CITATION.cff)
## Created by
[Chris Grieser](https://chris-grieser.de/).</string>
<key>uidata</key>
<dict>
<key>2521CCD5-BF7A-401F-84A7-7EBD1562E94C</key>
<dict>
<key>colorindex</key>
<integer>11</integer>
<key>xpos</key>
<real>200</real>
<key>ypos</key>
<real>40</real>
</dict>
<key>5CC96E33-CF43-44D2-8FC0-3EB4D7101FFD</key>
<dict>
<key>colorindex</key>
<integer>11</integer>
<key>xpos</key>
<real>30</real>
<key>ypos</key>
<real>170</real>
</dict>
<key>AFC82776-97B5-46CE-9205-DF67E1780996</key>
<dict>
<key>colorindex</key>
<integer>11</integer>
<key>xpos</key>
<real>30</real>
<key>ypos</key>
<real>40</real>
</dict>
<key>D361B88F-34F2-4AA4-8855-EF65D1040682</key>
<dict>
<key>colorindex</key>
<integer>11</integer>
<key>xpos</key>
<real>375</real>
<key>ypos</key>
<real>40</real>
</dict>
</dict>
<key>userconfigurationconfig</key>
<array>
<dict>
<key>config</key>
<dict>
<key>default</key>
<string></string>
<key>placeholder</key>
<string></string>
<key>required</key>
<true/>
<key>trim</key>
<true/>
</dict>
<key>description</key>
<string></string>
<key>label</key>
<string>ChatPDF API Key</string>
<key>type</key>
<string>textfield</string>
<key>variable</key>
<string>CHATPDF_API_KEY</string>
</dict>
<dict>
<key>config</key>
<dict>
<key>default</key>
<false/>
<key>required</key>
<false/>
<key>text</key>
<string>Copy to Clipboard</string>
</dict>
<key>description</key>
<string></string>
<key>label</key>
<string>Output</string>
<key>type</key>
<string>checkbox</string>
<key>variable</key>
<string>copy_to_clipboard</string>
</dict>
<dict>
<key>config</key>
<dict>
<key>default</key>
<false/>
<key>required</key>
<false/>
<key>text</key>
<string>Show Large Type</string>
</dict>
<key>description</key>
<string></string>
<key>label</key>
<string></string>
<key>type</key>
<string>checkbox</string>
<key>variable</key>
<string>alfred_large_type</string>
</dict>
<dict>
<key>config</key>
<dict>
<key>default</key>
<false/>
<key>required</key>
<false/>
<key>text</key>
<string>Save as file</string>
</dict>
<key>description</key>
<string>The file will be saved in the same directory as the input PDF.</string>
<key>label</key>
<string></string>
<key>type</key>
<string>checkbox</string>
<key>variable</key>
<string>save_as_file</string>
</dict>
<dict>
<key>config</key>
<dict>
<key>default</key>
<string>Summarize the PDF in 5 bullet points. Strive for variety. Ground your summary in the facts of the paper, and include references to specific pages in the paper.
Immediately start the summary, do not write anything else.</string>
<key>required</key>
<true/>
<key>trim</key>
<true/>
<key>verticalsize</key>
<integer>9</integer>
</dict>
<key>description</key>
<string></string>
<key>label</key>
<string>Prompt</string>
<key>type</key>
<string>textarea</string>
<key>variable</key>
<string>the_prompt</string>
</dict>
</array>
<key>version</key>
<string>1.1.1</string>
<key>webaddress</key>
<string>https://chris-grieser.de/</string>
</dict>
</plist>