From cfafdeccf089ca793a652b6607f133fb840d79d5 Mon Sep 17 00:00:00 2001 From: Chris Grieser <73286100+chrisgrieser@users.noreply.github.com> Date: Sun, 27 Jun 2021 01:55:11 +0200 Subject: [PATCH] Add files via upload --- info.plist | 220 ++++++++++++++++++++++++++++------------------------- 1 file changed, 115 insertions(+), 105 deletions(-) diff --git a/info.plist b/info.plist index 7f527fc..77a834a 100644 --- a/info.plist +++ b/info.plist @@ -506,31 +506,6 @@ - 38C21D9E-DF0C-408D-8376-6D78BD3486FC - - - destinationuid - 5335BA38-FC76-4B47-8D08-462A1AC06CC4 - modifiers - 0 - modifiersubtext - - sourceoutputuid - C4023B39-2525-4472-9AA8-9A01509C40E1 - vitoclose - - - - destinationuid - 4636F2C5-20F7-41CE-AB2B-5CEB248DF292 - modifiers - 0 - modifiersubtext - - vitoclose - - - 38D8D3B7-5FBE-4AD1-AD38-FB76FFEE2519 @@ -586,7 +561,7 @@ destinationuid - FE874084-CB56-4BDF-9FF0-A3B1920C26F2 + C56AF146-03E0-448E-8592-491D12F5534A modifiers 0 modifiersubtext @@ -621,19 +596,6 @@ - 4636F2C5-20F7-41CE-AB2B-5CEB248DF292 - - - destinationuid - 5335BA38-FC76-4B47-8D08-462A1AC06CC4 - modifiers - 0 - modifiersubtext - - vitoclose - - - 48CFAE2D-926B-4B05-A586-48A7A9D395CE @@ -1064,6 +1026,31 @@ + 8BDFC290-8E56-42A6-91F5-91266806DB1C + + + destinationuid + 5335BA38-FC76-4B47-8D08-462A1AC06CC4 + modifiers + 0 + modifiersubtext + + sourceoutputuid + 4F6B18B4-5071-4DD9-8558-A68B97E733FA + vitoclose + + + + destinationuid + FE874084-CB56-4BDF-9FF0-A3B1920C26F2 + modifiers + 0 + modifiersubtext + + vitoclose + + + 91000D05-4397-43D7-81D8-0FB992A27938 @@ -1310,6 +1297,19 @@ + C56AF146-03E0-448E-8592-491D12F5534A + + + destinationuid + 8BDFC290-8E56-42A6-91F5-91266806DB1C + modifiers + 0 + modifiersubtext + + vitoclose + + + C5CD1FB8-8FE5-4F75-BCE0-0D7F03887989 @@ -1576,7 +1576,7 @@ destinationuid - 38C21D9E-DF0C-408D-8376-6D78BD3486FC + 5335BA38-FC76-4B47-8D08-462A1AC06CC4 modifiers 0 modifiersubtext @@ -1633,12 +1633,13 @@ applescript on alfred_script(q) - if application "Zotero" is not running then - display notification "" with title "âŗ Starting Zotero..." subtitle "" - tell application "Zotero" to activate - delay 2.5 - return "started Zotero" - end if + +if application "Zotero" is running then + return true +else + return false +end if + end alfred_script cachescript @@ -1646,7 +1647,7 @@ end alfred_script type alfred.workflow.action.applescript uid - FE874084-CB56-4BDF-9FF0-A3B1920C26F2 + C56AF146-03E0-448E-8592-491D12F5534A version 1 @@ -1754,23 +1755,41 @@ end run matchmode 1 matchstring - started Zotero + outputlabel - Zotero was running + Output not empty uid C4023B39-2525-4472-9AA8-9A01509C40E1 elselabel - Zotero started + type alfred.workflow.utility.conditional uid - 38C21D9E-DF0C-408D-8376-6D78BD3486FC + 2D59F287-3F5D-4A64-9151-E43716142751 version 1 + + config + + matchmode + 0 + matchstring + + + replacestring + + + type + alfred.workflow.utility.replace + uid + 4CD979CC-3ADB-4C54-92FA-F2A9B569E75C + version + 2 + config @@ -1782,43 +1801,25 @@ end run matchcasesensitive matchmode - 1 + 0 matchstring - + true outputlabel - Output not empty + Zotero running uid - C4023B39-2525-4472-9AA8-9A01509C40E1 + 4F6B18B4-5071-4DD9-8558-A68B97E733FA elselabel - + not running type alfred.workflow.utility.conditional uid - 2D59F287-3F5D-4A64-9151-E43716142751 + 8BDFC290-8E56-42A6-91F5-91266806DB1C version 1 - - config - - matchmode - 0 - matchstring - - - replacestring - - - type - alfred.workflow.utility.replace - uid - 4CD979CC-3ADB-4C54-92FA-F2A9B569E75C - version - 2 - config @@ -1827,10 +1828,14 @@ end run escaping 68 script - on run + -- for whatever reason this Applescript does not work properly when combined with the previous one into one script. -set focusedapp_id to (system attribute "focusedapp") -tell application id focusedapp_id to activate --note: alfreds focused-app-variable passes not an app name, but the app-id, therefore they keyword "id" has to be added here. +on run + display notification "Citation Picker will appear in a moment" with title "âŗ Starting Zotero..." tell application "Zotero" to activate + set focusedapp_id to (system attribute "focusedapp") +tell application id focusedapp_id to activate + +delay 1 end run scriptargtype @@ -1843,7 +1848,7 @@ end run type alfred.workflow.action.script uid - 4636F2C5-20F7-41CE-AB2B-5CEB248DF292 + FE874084-CB56-4BDF-9FF0-A3B1920C26F2 version 2 @@ -1939,8 +1944,12 @@ Triggering Pandoc has been simplified, please consult the usage guide that has j modsmode 0 + relatedApps + + com.literatureandlatte.scrivener3 + relatedAppsMode - 0 + 2 type alfred.workflow.trigger.hotkey @@ -3083,7 +3092,7 @@ echo -n | {query} fixedorder items - [{"title":"đŸšĒ Exit this Configuration","arg":"exit"},{"title":"ℹī¸ Documentation & Guide for the Pandoc Suite","arg":"workflow_documentation","subtitle":"visit for troubleshooting and further information"},{"title":"📚 BibTeX Library","arg":"bibtex_lib","subtitle":"currently: {var:bibtex_library_path}"},{"title":"✍ī¸ Citation Style","arg":"set_csl","subtitle":"currently: {var:csl_file}"},{"title":"⌨ī¸ Hotkey Output Format","arg":"hotkey_format","subtitle":"currently: {var:hotkey_output_format}"},{"title":"âŦ‡ī¸ Install New Citation Style","arg":"install_csl","subtitle":"via Zotero's Style Repository"},{"title":"📄 Word Reference Document","arg":"reference_docx","subtitle":"currently: {var:reference_docx_path}"},{"title":"🏎 PDF-Engine","arg":"pdf_engine","subtitle":"currently: {var:pdf_engine}"},{"title":"🧑‍đŸĢ Powerpoint Reference Presentation","arg":"reference_pptx","subtitle":"currently: {var:reference_pptx_path}"},{"title":"📊 Slide Level for Presentations","arg":"slide_level","subtitle":"currently: {var:slide_level}"},{"title":"❗ī¸ Further Arguments","arg":"further_args","subtitle":"currently: {var:further_pandoc_args}"}] + [{"title":"đŸšĒ Exit this Configuration","arg":"exit"},{"title":"ℹī¸ Documentation & Guide for the Pandoc Suite","arg":"workflow_documentation","subtitle":"visit for troubleshooting and further information"},{"title":"📚 BibTeX Library","arg":"bibtex_lib","subtitle":"currently: {var:bibtex_library_path}"},{"title":"✍ī¸ Set Citation Style","arg":"set_csl","subtitle":"currently: {var:csl_file}"},{"title":"⌨ī¸ Hotkey Output Format","arg":"hotkey_format","subtitle":"currently: {var:hotkey_output_format}"},{"title":"âŦ‡ī¸ Install New Citation Style","arg":"install_csl","subtitle":"via Zotero's Style Repository"},{"title":"📄 Word Reference Document","arg":"reference_docx","subtitle":"currently: {var:reference_docx_path}"},{"title":"🏎 PDF-Engine","arg":"pdf_engine","subtitle":"currently: {var:pdf_engine}"},{"title":"🧑‍đŸĢ Powerpoint Reference Presentation","arg":"reference_pptx","subtitle":"currently: {var:reference_pptx_path}"},{"title":"📊 Slide Level for Presentations","arg":"slide_level","subtitle":"currently: {var:slide_level}"},{"title":"❗ī¸ Further Arguments","arg":"further_args","subtitle":"currently: {var:further_pandoc_args}"}] keyword pconf runningsubtext @@ -4668,6 +4677,9 @@ https://chris-grieser.de/pandoc_alfred Release Notes ============= +2.10 +- fix with the startup of Zotero when calling the Citaiton Picker + 2.9 - speed up of the Citation Picker @@ -4989,15 +5001,6 @@ Triggers Pandoc Conversion ypos 530 - 38C21D9E-DF0C-408D-8376-6D78BD3486FC - - colorindex - 3 - xpos - 415 - ypos - 45 - 38D8D3B7-5FBE-4AD1-AD38-FB76FFEE2519 colorindex @@ -5060,17 +5063,6 @@ Citation Picker ypos 865 - 4636F2C5-20F7-41CE-AB2B-5CEB248DF292 - - colorindex - 3 - note - switch back before picker appears - xpos - 575 - ypos - 85 - 48CFAE2D-926B-4B05-A586-48A7A9D395CE colorindex @@ -5365,6 +5357,15 @@ Citation Picker ypos 2405 + 8BDFC290-8E56-42A6-91F5-91266806DB1C + + colorindex + 3 + xpos + 435 + ypos + 60 + 91000D05-4397-43D7-81D8-0FB992A27938 colorindex @@ -5567,6 +5568,15 @@ Citation Picker ypos 1895 + C56AF146-03E0-448E-8592-491D12F5534A + + colorindex + 3 + xpos + 280 + ypos + 25 + C5CD1FB8-8FE5-4F75-BCE0-0D7F03887989 colorindex @@ -5762,9 +5772,9 @@ Citation Picker note if Zotero is not running, start it xpos - 275 + 575 ypos - 25 + 90 FFFA61F1-50F0-423F-A9DA-95C7E7D76086 @@ -5781,7 +5791,7 @@ Citation Picker bibtex_library_path ~/Google Drive/Academia/Zotero Library.bib csl_file - apa.csl + social-studies-of-science.csl further_pandoc_args --number-sections hotkey_output_format @@ -5803,7 +5813,7 @@ Citation Picker reference_docx_path version - 2.9 + 2.10 webaddress https://chris-grieser.de/