How do I unhide columns in Numbers using AppleScript? I created a custom shortcut so that ⌘+U unhides all columns, so I have tried this so far:
tell application "Numbers"
open POSIX file "/path/to/file"
tell document "file"
set active sheet to sheet "sheet"
tell table "table" of sheet "sheet"
set selection range to range "A1"
tell application "System Events" to keystroke "U" using command down
end tell
end tell
end tell
I get no error message, but the columns are still hidden.
I am using the latest version of MacOS, AppleScript, and Numbers.
keystroke
with System Events and a modifier key use the lower case of the letter, e.g.:tell application "System Events" to keystroke "u" using command down
That said, if you assigned ⌘U to the Unhide All Columns command on the Table menu and not changed the shortcut for the Underline command under the Format > Font menu, you may still have an issue.