This content has been marked as final.
Show 5 replies
-
1. Re: [CS2/CS3 JS] How to set Default Font for multiple documents
Kasyan Servetsky Feb 11, 2009 8:32 AM (in response to Skempy)for existing documents:
app.activeDocument.textDefaults.appliedFont = myDoc.fonts.itemByName ('Arial\tBold');
for newly created ones:
app.textDefaults.appliedFont = myDoc.fonts.itemByName ('Arial\tBold'); -
2. Re: [CS2/CS3 JS] How to set Default Font for multiple documents
Skempy Feb 11, 2009 8:59 AM (in response to Skempy)Thanks for the reply Kasyan,
Does this work for CS2 documents?
Simon Kemp -
3. Re: [CS2/CS3 JS] How to set Default Font for multiple documents
Kasyan Servetsky Feb 11, 2009 9:14 AM (in response to Skempy)>Does this work for CS2 documents?
No,CS2 doesn't support fonts.itemByName method.
I can't check it in CS2, because don't have CS2 version properly working any more. -
4. Re: [CS2/CS3 JS] How to set Default Font for multiple documents
Skempy Feb 11, 2009 9:27 AM (in response to Skempy)Thanks,
This works in CS2:
app.activeDocument.textDefaults.appliedFont = "Helvetica LT Com";
Simon -
5. Re: [CS2/CS3 JS] How to set Default Font for multiple documents
Kasyan Servetsky Feb 11, 2009 9:29 AM (in response to Skempy)I made a mistake in the previous post: to set default font for application I should have used application's font collection.
app.textDefaults.appliedFont = app.fonts.itemByName ('Arial\tBold');

