# Xojo IDE Communication

**URL:** <https://ifnotnil.com/t/xojo-ide-communication/1478>\
**Category:** General Programming\
**Created:** [13 January 2021 05:59 UTC](https://ifnotnil.com/t/xojo-ide-communication/1478 "2021-01-13T05:59:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Meestor\_X](https://ifnotnil.com/user_avatar/ifnotnil.com/meestor_x/32/567_2.png) [@Meestor\_X](https://ifnotnil.com/u/Meestor_X)\
**Post date:** [13 January 2021 05:59 UTC](https://ifnotnil.com/t/xojo-ide-communication/1478/1 "2021-01-13T05:59:32Z")

</div>

So, in an IDE script, this works fine:  
`ConstantValue("Globals.kUser") = "Andy"`

In the IDE Communicator, it gives a script error. (The test Script works fine)  
Does the communicator need a different format for Script commands or something?

---

<div class="post-metadata">

**Author:** ![beatrixwillius](https://ifnotnil.com/user_avatar/ifnotnil.com/beatrixwillius/32/24_2.png) [@beatrixwillius](https://ifnotnil.com/u/beatrixwillius)\
**Post date:** [13 January 2021 11:47 UTC](https://ifnotnil.com/t/xojo-ide-communication/1478/2 "2021-01-13T11:47:38Z")

</div>

I’m using

`ConstantValue("App.kMaxVersion") = MaxVersion`

in an IDE Communicator script. What error do you get?

---

<div class="post-metadata">

**Author:** ![Meestor\_X](https://ifnotnil.com/user_avatar/ifnotnil.com/meestor_x/32/567_2.png) [@Meestor\_X](https://ifnotnil.com/u/Meestor_X)\
**Post date:** [13 January 2021 17:58 UTC](https://ifnotnil.com/t/xojo-ide-communication/1478/3 "2021-01-13T17:58:12Z")

</div>

Thank you for your reply.

Ok, bizarre “bug” in the IDE Communicator app. (Really an issue with the “smart quotes” function in MacOS, I guess). As soon as you change any text in the Script window at the top, you’ll get a “this item does not exist” error.

[https://dl.dropboxusercontent.com/s/ceegn5gisd0x4tu/IDE%20Communicator%20Bug.mov?dl=0](https://dl.dropboxusercontent.com/s/ceegn5gisd0x4tu/IDE%20Communicator%20Bug.mov?dl=0)

Turns out the cause is the text area is changing the `"` to a different kind of double quote that the script compiler doesn’t like. Hard to see because the 2 quote types look the same!

How do I get a text area to stop “auto correcting”? Turning off spell check doesn’t change that.

---

<div class="post-metadata">

**Author:** ![Meestor\_X](https://ifnotnil.com/user_avatar/ifnotnil.com/meestor_x/32/567_2.png) [@Meestor\_X](https://ifnotnil.com/u/Meestor_X)\
**Post date:** [13 January 2021 18:05 UTC](https://ifnotnil.com/t/xojo-ide-communication/1478/4 "2021-01-13T18:05:08Z")

</div>

What a PITA to fix!

> **[How to prevent smart quotes from being entered into a TextArea](https://forum.xojo.com/t/how-to-prevent-smart-quotes-from-being-entered-into-a-textarea/21111/16)**
>
> For those that still need this, Joe Ranieri posted a solution in Feedback back in 2013 that uses a different set of declares (from AppKit instead of Cocoa): feedback://showreport?report\_id=25702. Don’t exactly know what the difference is, but it...

---

<div class="post-metadata">

**Author:** ![npalardy](https://ifnotnil.com/user_avatar/ifnotnil.com/npalardy/32/10_2.png) [@npalardy](https://ifnotnil.com/u/npalardy)\
**Post date:** [13 January 2021 18:37 UTC](https://ifnotnil.com/t/xojo-ide-communication/1478/5 "2021-01-13T18:37:06Z")

</div>

or just disable smart quotes system wide  
Preferences \> KeyBoard \> Text \> Use Smart quotes & dashes
