Skip to content

Commit a00c893

Browse files
committed
Pipe errors to /dev/null on cayw command.
Might prevent the hanging which one user has reported.
1 parent 0551578 commit a00c893

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

zotpick-mmd.applescript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ else if zotRunning is "No endpoint found" then
1212
end tell
1313
error number -128
1414
else if zotRunning is "ready" then
15-
set theReference to do shell script "/usr/bin/curl 'http://localhost:23119/better-bibtex/cayw?format=mmd'"
15+
set theReference to do shell script "/usr/bin/curl 'http://localhost:23119/better-bibtex/cayw?format=mmd' 2>/dev/null; exit 0"
1616
tell application "Scrivener"
1717
activate
1818
repeat until application "Scrivener" is frontmost

zotpick-pandoc.applescript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ else if zotRunning is "No endpoint found" then
1212
end tell
1313
error number -128
1414
else if zotRunning is "ready" then
15-
set theReference to do shell script "/usr/bin/curl 'http://localhost:23119/better-bibtex/cayw?format=pandoc'"
15+
set theReference to do shell script "/usr/bin/curl 'http://localhost:23119/better-bibtex/cayw?format=pandoc' 2>/dev/null; exit 0"
1616
tell application "Scrivener"
1717
activate
1818
repeat until application "Scrivener" is frontmost

zotpick-scannable-cite.applescript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ else if zotRunning is "No endpoint found" then
1212
end tell
1313
error number -128
1414
else if zotRunning is "ready" then
15-
set theReference to do shell script "/usr/bin/curl 'http://localhost:23119/better-bibtex/cayw?format=scannable-cite'"
15+
set theReference to do shell script "/usr/bin/curl 'http://localhost:23119/better-bibtex/cayw?format=scannable-cite' 2>/dev/null; exit 0"
1616
tell application "Scrivener"
1717
activate
1818
repeat until application "Scrivener" is frontmost

0 commit comments

Comments
 (0)