Skip to content

Instantly share code, notes, and snippets.

View michaelengel's full-sized avatar

Michael Engel michaelengel

View GitHub Profile
@michaelengel
michaelengel / SendMails.scpt
Last active December 8, 2023 22:58
AppleScript to send Email using Mail.app to multiple recipients from Contacts.app
tell application "Contacts"
repeat with i in people of group "Recipients" # Replace with name of group
tell application "Contacts" to get the value of emails of i
set addr to the value of emails of i
# Salutation is stored in the "nickname" field
set salut to the nickname of i
# Language is stored in the "note" field - E = English
set english to the note of i
tell application "Mail"
%{#include <stdio.h>
%}
%state INSOLUTION
%%
<INITIAL>@s { BEGIN(INSOLUTION); }
<INSOLUTION>@e { BEGIN(INITIAL); }
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#define BASE 48
#define STOP_BASE 35
int main(void) {
char line[128];
int factor;