# Cannot run scripts on Mac OS

**URL:** <https://swi-prolog.discourse.group/t/cannot-run-scripts-on-mac-os/5799>\
**Category:** Help!\
**Created:** [September 23, 2022, 7:12pm UTC](https://swi-prolog.discourse.group/t/cannot-run-scripts-on-mac-os/5799 "2022-09-23T19:12:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anuwatpe](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/anuwatpe/32/4867_2.png) [@anuwatpe](https://swi-prolog.discourse.group/u/anuwatpe)\
**Post date:** [September 23, 2022, 7:12pm UTC](https://swi-prolog.discourse.group/t/cannot-run-scripts-on-mac-os/5799/1 "2022-09-23T19:12:01Z")

</div>

Dear All,

I’m using: SWI-Prolog version 8.4.3 on Mac OS 12.6 (M1)

I want to run the scripts (parser and logic reasoner) on prolog, but I cannot run it on my MacBook

But what I’m getting is:

Thread 3 (\_\_gui): foreign predicate system:ground/1 did not clear exception:  
error(existence\_error(procedure,prolog:file\_open\_event/1),context(system: $c\_call\_prolog/0,\_84))

Anyway, the scripts work successfully on Windows OS.

Please let me know if you all know how to fix it

Thank you

---

<div class="post-metadata">

**Author:** ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)\
**Post date:** [September 24, 2022, 2:10pm UTC](https://swi-prolog.discourse.group/t/cannot-run-scripts-on-mac-os/5799/2 "2022-09-24T14:10:00Z")

</div>

It is hard to figure out what you are trying to do with what version. There are several versions for MacOS. Are you using the App bundle from [swi-prolog.org](http://swi-prolog.org)? Next, what exactly do you do? Trying the obvious, using the File/Consult menu to load a file works fine for me.
