Most literate Muslims in Morocco would write, not in vernacular Arabic, but in Standard Arabic, but Moroccan Jews, who typically did not learn Standard Arabic as it was taught in Islamic religious contexts, wrote in Darija using Hebrew script.
In Morocco, most literate Muslims preferred to compose in Standard Arabic rather than the local dialect, whereas Moroccan Jews, who usually didn't study Standard Arabic within an Islamic framework, utilized Darija written with Hebrew characters.