# AppleScript Syntax error with Shell

**URL:** <https://forum.xojo.com/t/applescript-syntax-error-with-shell/76877>\
**Category:** General\
**Created:** [August 13, 2023, 7:56am UTC](https://forum.xojo.com/t/applescript-syntax-error-with-shell/76877 "2023-08-13T07:56:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Denis\_DUBOIS](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/e9bcb4/32.png) [@Denis\_DUBOIS](https://forum.xojo.com/u/Denis_DUBOIS)\
**Post date:** [August 13, 2023, 7:56am UTC](https://forum.xojo.com/t/applescript-syntax-error-with-shell/76877/1 "2023-08-13T07:56:32Z")

</div>

Hi,  
I can’t seem to format the syntax of this AppleScript (to clear clipboard). I have tried everything, to no avail! where does the problem come from ?  
THANKS

```auto
sh.Execute("osascript -e 'set the clipboard to \"\"'")

```

---

<div class="post-metadata">

**Author:** ![TimStreater](https://forum.xojo.com/user_avatar/forum.xojo.com/timstreater/32/586_2.png) [@TimStreater](https://forum.xojo.com/u/TimStreater)\
**Post date:** [August 13, 2023, 8:32am UTC](https://forum.xojo.com/t/applescript-syntax-error-with-shell/76877/2 "2023-08-13T08:32:20Z")

</div>

Wouldn’t it be:

`sh.Execute("osascript -e 'set the clipboard to """"'")`

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [August 13, 2023, 12:24pm UTC](https://forum.xojo.com/t/applescript-syntax-error-with-shell/76877/3 "2023-08-13T12:24:14Z")

</div>

Does using the Xojo clipboard class not work…?
