# Script to read BARCODE

**URL:** <https://forum.inductiveautomation.com/t/script-to-read-barcode/44254>\
**Category:** Ignition\
**Created:** [March 9, 2021, 8:56am UTC](https://forum.inductiveautomation.com/t/script-to-read-barcode/44254 "2021-03-09T08:56:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dominique.louis1](https://avatars.discourse-cdn.com/v4/letter/d/ce7236/32.png) [@Dominique.louis1](https://forum.inductiveautomation.com/u/Dominique.louis1)\
**Post date:** [March 9, 2021, 8:56am UTC](https://forum.inductiveautomation.com/t/script-to-read-barcode/44254/1 "2021-03-09T08:56:55Z")

</div>

hello, I would like to read a barcode in a cell.  
the reading works well, but at the end of the reading I would like the scripts to face the equivalent of enter so that the value is sent to a tag, I try with  
if event.propertyName == ‘text’:  
but i have a mistake  
“object has no attribute ‘PropertyName’”  
could someone help me.  
thank you in advance

---

<div class="post-metadata">

**Author:** ![Matrix\_Engineering](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matrix_engineering/32/19781_2.png) [@Matrix\_Engineering](https://forum.inductiveautomation.com/u/Matrix_Engineering)\
**Post date:** [March 9, 2021, 10:36am UTC](https://forum.inductiveautomation.com/t/script-to-read-barcode/44254/2 "2021-03-09T10:36:40Z")

</div>

Post your code and describe how you are firing the event action.

Also list Ignition version, 7.9.x, 8.0.x, 8.1.x, Vision or Perspective?
