तुम भी उपयोग कर सकते हैं AppleScript:
tell application "Mail"
tell (make new outgoing message)
set subject to "subject"
set content to "content"
-- set visible to true
make new to recipient at end of to recipients with properties {address:"[email protected]", name:"Name"}
make new attachment with properties {file name:(POSIX file "/tmp/test.txt")} at after the last paragraph
send
end tell
end tell
आप एक खोल से तर्क पारित करने के लिए एक स्पष्ट रन हैंडलर का उपयोग कर सकते हैं:
osascript -e 'on run {a}
set text item delimiters to ";"
repeat with l in paragraphs of a
set {contact, address} to text items of l
end repeat
end run' "Name1;[email protected]
Name2;[email protected]"
कहाँ हो " सभी संपर्क "आपके लिए संग्रहीत? क्या यह आपके पता पुस्तिका आवेदन में संपर्क है? क्या आपने इसके लिए सेब स्क्रिप्ट का उपयोग करने पर विचार किया है? – Floris