Applescript:更改Photoshop文本对象的字体 – 导致文本被截断

我正在使用Microsoft Excel for Mac 2016和Photoshop CC 2017中的值自动创build一个人的姓名+他们的ID号以及在Photoshop中的相关照片的文本。 当我去改变文字:

tell application "photoshop cc 2017" --some code set font of text object of art layer 1 to "GothamRounded-Bold" 

值的一部分,具体来说,姓氏被切断。 我的问题是:这是一个已知的错误? 或者我做错了什么? 这里是来自Excel的单元格的源代码:

 tell application "Microsoft Excel" --this gets the full name of a person from a cell set fullname to value of column 1 of row u of sheet 1 of active workbook as text --this gets the person's id number set personid to value of column 2 of row u of sheet 1 of active workbook as text --this removes the .0 from the excel value set num to first character of personid --this combines the two to make the caption set idfullname to num & space & fullname 

例如,

应该是什么“3将莫里斯”,被重新格式化为“3将”。 但是,如果我把它留在默认字体:Myriad Pro,完整的名称和号码来源完美。 我也尝试过使用一些延迟,无济于事。 任何build议将不胜感激。