# xcall in n Execute Shell script Action hangs

**URL:** <https://community.folivora.ai/t/xcall-in-n-execute-shell-script-action-hangs/36164>\
**Category:** Configuration Help & General Discussion\
**Created:** [March 11, 2024, 1:49pm UTC](https://community.folivora.ai/t/xcall-in-n-execute-shell-script-action-hangs/36164 "2024-03-11T13:49:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kimaldis](https://community.folivora.ai/user_avatar/community.folivora.ai/kimaldis/32/2041_2.png) [@kimaldis](https://community.folivora.ai/u/kimaldis)\
**Post date:** [March 11, 2024, 1:49pm UTC](https://community.folivora.ai/t/xcall-in-n-execute-shell-script-action-hangs/36164/1 "2024-03-11T13:49:47Z")

</div>

I'm using bettertouch tool to work with Bear using Bears x-callback-url api. With xcall.app because it seems to be the easiest way to get x-success return values back. I have the following in a Execute Shell Script action:

`/Applications/xcall.app/Contents/MacOS/xcall -url 'bear://x-callback-url/open-note?title=Scratch'`

and xcall hangs untill I kill it in the Activity Monitor. At which point the returned data appears twice in the result pane (using 'run script')

the same command runs fine in a terminal window.

Any thoughts as to why?

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [March 11, 2024, 1:57pm UTC](https://community.folivora.ai/t/xcall-in-n-execute-shell-script-action-hangs/36164/2 "2024-03-11T13:57:00Z")

</div>

unfortunately I'm not sure what could cause this.  
Can you describe the exact thing you try to do? Then I can try to reproduce it here

Just executing it seems to work ok here:

 ![image](https://community.folivora.ai/uploads/default/original/3X/c/8/c83125981d38db5f1c79fc722b2fb64b8ec99017.jpeg)

 ![image](https://community.folivora.ai/uploads/default/original/3X/2/b/2b49a488edbf373ef3ba5ab95dd5eacf90a479c4.jpeg)

But I didn't know these urls can return data, that is very interesting for BTT's scripting functions as well. I think I should also be able to quickly add a new scripting function to call such urls and get the result.

---

<div class="post-metadata">

**Author:** ![kimaldis](https://community.folivora.ai/user_avatar/community.folivora.ai/kimaldis/32/2041_2.png) [@kimaldis](https://community.folivora.ai/u/kimaldis)\
**Post date:** [March 11, 2024, 4:12pm UTC](https://community.folivora.ai/t/xcall-in-n-execute-shell-script-action-hangs/36164/3 "2024-03-11T16:12:08Z")

</div>

That's interesting. I was using the Execute Shell Script action but I just tried it using Javascript and it's still not working for me. Obviously I have somethiing odd going on here.

Are you using a version of xcall.app from Martin Finke's github page?

I did a video, if it's any help [ScreenFlow.mp4 - Google Drive](https://drive.google.com/file/d/1H8tl2Cqhtvv5O8W7_cNONRQmdJTqsAWo/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [March 11, 2024, 4:15pm UTC](https://community.folivora.ai/t/xcall-in-n-execute-shell-script-action-hangs/36164/4 "2024-03-11T16:15:20Z")

</div>

Yes, I just downloaded it from github today. You probably also use the latest version of that?

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [March 11, 2024, 4:19pm UTC](https://community.folivora.ai/t/xcall-in-n-execute-shell-script-action-hangs/36164/5 "2024-03-11T16:19:53Z")

</div>

It sounds like it is this issue:

> <https://github.com/martinfinke/xcall/pull/6>
>
> This is potential fix for \[No return value #4\](https://github.com/martinfinke/xc…all/issues/4).
> 
> With this fix in place, I'm able to make Bear.app to respond using x-success.
> 
> Changes that actually address the issue are in AppDelegate.m, the rest changes I made to be able to build project with latest XCode, so they might be unnecessary.

Unfortunately he hasn't provided a new build with the fix for that yet. Let me build one...

//edit: here is a notarized build that includes the fix. You might need to start it once by double-clicking it before being able to use it via terminal  
[xcall.zip](https://community.folivora.ai/uploads/short-url/bSUWklcAWWZaM5BxGTt9p1YzPRY.zip) (32.4 KB)

---

<div class="post-metadata">

**Author:** ![kimaldis](https://community.folivora.ai/user_avatar/community.folivora.ai/kimaldis/32/2041_2.png) [@kimaldis](https://community.folivora.ai/u/kimaldis)\
**Post date:** [March 11, 2024, 5:00pm UTC](https://community.folivora.ai/t/xcall-in-n-execute-shell-script-action-hangs/36164/6 "2024-03-11T17:00:19Z")

</div>

I was using a version I built here. Previously it didn't seem to be working at all. Rebuilding for a later version of MacOS seemed to fix it and I didn't look any further.

This appears to have Fixed it. Many thanks Andreas.
