S
sushi-berlin
Aktives Mitglied
Thread Starter
- Dabei seit
- 11.09.2007
- Beiträge
- 177
- Reaktionspunkte
- 5
Hallo nochmal,
ich hatte m Forum bereits etwas zum Thema "Anhänge speichern" unter Mail gefunden: Entweder über "Ablage/Anhänge speichern" oder per Script möglich. Ein solches hatte jemand netterweise hochgeladen. Leider hat es bei mir nicht funktioniert:
using terms from application "Mail"
on perform mail action with messages theMessages for rule theRule
set theOutputFolder to "Macintosh HD:Users:Saschaesktop:"
tell application "Mail"
set theMessage to item 1 of theMessages
set theAttachments to every attachment of content of theMessage
repeat with a from 1 to length of theAttachments
set theAttachment to item a of theAttachments
try
set theAttachmentName to name of theAttachment
set theSavePath to theOutputFolder & theAttachmentName
save theAttachment in theSavePath
end try
end repeat
end tell
end perform mail action with messages
end using terms from
Funktioniert das script bei mir nicht, weil ich es nicht im Zusammenhang mit einer Regel anwende? Dürfte doch daran gar nicht liegen, oder?
ich hatte m Forum bereits etwas zum Thema "Anhänge speichern" unter Mail gefunden: Entweder über "Ablage/Anhänge speichern" oder per Script möglich. Ein solches hatte jemand netterweise hochgeladen. Leider hat es bei mir nicht funktioniert:
using terms from application "Mail"
on perform mail action with messages theMessages for rule theRule
set theOutputFolder to "Macintosh HD:Users:Saschaesktop:"
tell application "Mail"
set theMessage to item 1 of theMessages
set theAttachments to every attachment of content of theMessage
repeat with a from 1 to length of theAttachments
set theAttachment to item a of theAttachments
try
set theAttachmentName to name of theAttachment
set theSavePath to theOutputFolder & theAttachmentName
save theAttachment in theSavePath
end try
end repeat
end tell
end perform mail action with messages
end using terms from
Funktioniert das script bei mir nicht, weil ich es nicht im Zusammenhang mit einer Regel anwende? Dürfte doch daran gar nicht liegen, oder?