# How to write character strings directly on TextEdit

**URL:** <https://forum.xojo.com/t/how-to-write-character-strings-directly-on-textedit/74497>\
**Category:** General\
**Created:** [February 15, 2023, 8:30am UTC](https://forum.xojo.com/t/how-to-write-character-strings-directly-on-textedit/74497 "2023-02-15T08:30:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LEROY\_Daniel](https://forum.xojo.com/letter_avatar_proxy/v4/letter/l/9de0a6/32.png) [@LEROY\_Daniel](https://forum.xojo.com/u/LEROY_Daniel)\
**Post date:** [February 15, 2023, 8:30am UTC](https://forum.xojo.com/t/how-to-write-character-strings-directly-on-textedit/74497/1 "2023-02-15T08:30:18Z")

</div>

Hi,  
Is it possible to write character strings directly on TextEdit (without going through a file first)?  
thanks

---

<div class="post-metadata">

**Author:** ![Thomas\_ROBISSON](https://forum.xojo.com/user_avatar/forum.xojo.com/thomas_robisson/32/15868_2.png) [@Thomas\_ROBISSON](https://forum.xojo.com/u/Thomas_ROBISSON)\
**Post date:** [February 15, 2023, 9:24am UTC](https://forum.xojo.com/t/how-to-write-character-strings-directly-on-textedit/74497/2 "2023-02-15T09:24:07Z")

</div>

It’s possible using AppleScript but I don’t think we can do that directly from a Xojo application.

---

<div class="post-metadata">

**Author:** ![TomE1](https://forum.xojo.com/user_avatar/forum.xojo.com/tome1/32/1940_2.png) [@TomE1](https://forum.xojo.com/u/TomE1)\
**Post date:** [February 15, 2023, 9:49am UTC](https://forum.xojo.com/t/how-to-write-character-strings-directly-on-textedit/74497/3 "2023-02-15T09:49:19Z")

</div>

See [How passing a variable from Shell to AppleScript?](https://forum.xojo.com/t/how-passing-a-variable-from-shell-to-applescript/70702/6) for an example how to use AppleScript from Xojo.
