Applescript to Freeze certain Header Rows and Columns for open Numbers doc

Is there a way to write an AppleScript that I can run each time I open a Numbers file so that I can quickly freeze Header Row 1 and Header Column 3? I have to do this repeatedly, so I'd like a way to automate it. Thanks!

iMac (M1, 2021)

Posted on Aug 31, 2023 8:33 AM

Reply
Question marked as Best answer

You asked to freeze so these two additional commands should do the trick. I just noticed that when opening a CSV the headers are not automatically frozen.


tell application "Numbers"

tell table 1 of sheet 1 of front document

set header row count to 1

set header rows frozen to true

set header column count to 3

set header columns frozen to true

end tell

end tell

Posted on Aug 31, 2023 10:13 AM

3 replies
Question marked as Best answer

Aug 31, 2023 10:13 AM in response to Recycleur

You asked to freeze so these two additional commands should do the trick. I just noticed that when opening a CSV the headers are not automatically frozen.


tell application "Numbers"

tell table 1 of sheet 1 of front document

set header row count to 1

set header rows frozen to true

set header column count to 3

set header columns frozen to true

end tell

end tell

Applescript to Freeze certain Header Rows and Columns for open Numbers doc

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