AppleScript to change default font type

Hello,


Using AppleScript it's possible to set or change the font type of cells in Numbers, it takes the script quite some time to change the font in - for example - 1000 cells.

Would anybody know the code to change the font type before creation of a table or cells?

Or even the code to change the default font of a Numbers-document (without using a template by preference)?


Kind regards.

MacBook Pro (17-inch 2.4 GHz), OS X Mavericks (10.9.4)

Posted on Sep 3, 2014 1:53 AM

Reply
2 replies

Sep 3, 2014 6:38 AM in response to DeSignature

Hi,


You can use cell range of table x to change the font, it takes less than 1 second to change the font of 1000 cells


Example:

tell application "Numbers"
    tell active sheet of document 1 to set newTable to make new table with properties {name:"test", row count:100, column count:10, header row count:0, header column count:0}
    set font name of cell range of newTable to "MarkerFelt-Wide"
end tell

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

AppleScript to change default font type

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.