Reading the user's First Day of Week setting

There are probably more Maestronic ways of doing this, but FWIW, a JavaScript for Automation snippet:

function run() {
    
    return ['Sat', 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri'][
		parseInt($.NSCalendar.currentCalendar.firstWeekday, 10)
	];

};
2 Likes