Thursday, July 27, 2017

#1 2017-07-17 01:30:57 pm

Jeffkr
Member
Registered: 2005-11-05
Posts: 458

Illustrator CC text font of insertion point

This code works fine to change the font of selected text. But let's assume there is nothing on the document except a single text insertion point. Is there a way to set that insertion point text font?

Thanks in advance,
-Jeff

Applescript:

tell application "Adobe Illustrator"
set sel to selection
set myFont to text font "MyriadPro-Semibold"
set text font of sel to myFont
end tell

Offline

 

#2 2017-07-21 04:55:24 am

EricLipton
Member
Registered: 2012-12-02
Posts: 17

Re: Illustrator CC text font of insertion point

Hi,

this works:

tell application "Adobe Illustrator"
    set the text font of text of (text frame 1 of document 1) to text font "Times-Italic"
end tell



Kind regards,

Eric

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)