Page 1 of 1

Change font

Posted: 05 Sep 2014, 10:47
by LittleIron
Hi all, I'm not a developer.
Is it possible, using AppleScript, change font of all character in all story is using specific font?
Best Regards
LittleIron

Re: Change font

Posted: 16 Sep 2014, 02:57
by LittleIron
I have some Chinese word in Occident story and I need to change font only to these word. I tried as follows but it didn't run.
Someone know how to do it?

tell application "QuarkXPress"
tell document 1
try
set (every text of every story where font is "华文黑体") to "HYCuHeiJ"
end try
end tell
end tell

It is not a Chinese font problem, it is not running using Arial or Times.
Best Regards

Re: Change font

Posted: 16 Sep 2014, 03:54
by Jean-Marie Schwartz
Try this:

Code: Select all

tell application "QuarkXPress"
	tell document 1
		set font of (every text style range of every story whose font is "华文黑体") to "HYCuHeiJ"
	end tell
end tell

Re: Change font

Posted: 16 Sep 2014, 05:11
by LittleIron
ok,it is running :D
Thank you very much
LittleIron