Wenns einer braucht: Aus HTML E-Mail in Apple Mail eine HTML Datei auf dem Desktop speichen um Sie in der Chrome Dev Palette zu debuggen…

Das Skript führt eine Base64 Decodierung durch, das muss man ggf. raus nehmen.
Außerdem wird der gesamte Header entfernt um das pure HTML zu haben.
Den Code setzt man in Automator in eine Schnellaktion und hat es dann in Mail unter Mail > Dienste zur Verfügung.

Show Plain Text
  1. on run {input, parameters}
  2.   set theMessageFile to item 1 of input
  3.   set theContent to read theMessageFile
  4.  
  5.   -- Entfernen Sie den E-Mail-Header
  6.   set headerEnd to "
  7.  
  8. "
  9.   set headerEndPos to offset of headerEnd in theContent
  10.   if headerEndPos is not 0 then
  11.     set theContent to text (headerEndPos + (length of headerEnd)) thru -1 of theContent
  12.   end if
  13.  
  14.   set theFilePath to (path to desktop as text) & "email.html"
  15.  
  16.   tell application "Finder"
  17.     if exists file theFilePath then
  18.       delete file theFilePath
  19.     end if
  20.   end tell
  21.  
  22.   -- Decodieren Sie den Base64-codierten Inhalt
  23.   set theDecodedContent to do shell script "echo '" & theContent & "' | base64 --decode"
  24.  
  25.   set theFileReference to open for access file theFilePath with write permission
  26.   write theDecodedContent to theFileReference
  27.   close access theFileReference
  28. end run


Kann kein Apple Script aber die KI so einigermaßen