Copy link to clipboard
Copied
i has this two line of script,
can i combine into just one line? Thanks.
app.selection[0].texts.item(0).contents = markTransport_array[0]; app.selection[0].texts.item(-1).parentStory.appliedFont = "abud4hsym";
Copy link to clipboard
Copied
Do these text elements point to different objects? What are you trying to do? Can you give some screenshots for reference?
-Manan
Copy link to clipboard
Copied
HI,
Similar to above, why are you wanting it in one line? What are you trying to achieve by doing that?
Regards
Malcolm
Copy link to clipboard
Copied
i think you can use item(0) only, somthing like this:
app.selection[0].texts.item(0).parentStory.properties = {
contents:'text',
appliedFont: app.fonts[0],
}