• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Why is this AppleScript working unreliably? Any ideas?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why is this AppleScript working unreliably? Any ideas?


  • Subject: Re: Why is this AppleScript working unreliably? Any ideas?
  • From: Brian Christmas <email@hidden>
  • Date: Tue, 12 Oct 2010 16:27:00 +1100

G'day Jeff

Why not try direct email creation instead.

A starting point would be...

set filetoget2 to ("http://www.SOMEDOMAIN.com/VALIDPATH2/VALIDFILENAME2.jpg")
set filetoget3 to ("http://www.SOMEDOMAIN.com/VALIDPATH3/VALIDFILENAME3.jpg")
set attachment1alias to filetoget1 as alias
set attachment2alias to filetoget2 as alias
set attachment3alias to filetoget3 as alias
set myAttachments to {attachment1alias, attachment2alias, attachment3alias}
set mySMTP to "00.00.00.00"
set myFrom to "RETURNADDRESSHERE"
set myTo to {"email@hidden"}
set mySubject to "subject of email to send"
set myBody to "body text of email to send"

tell application "Mail"
activate
set newMessage to make new outgoing message with properties {address:myTo, subject:mySubject, content:myBody, return:myFrom}
tell newMessage
repeat with LogoPath in myAttachments
make new attachment with properties {file name:LogoPath} at after the last paragraph
end repeat
repeat with themailitem in myTo
make new to recipient at end of to recipients with properties {address:themailitem}
end repeat
(*repeat with themailitem in ReportCCRecepients
make new cc recipient at end of cc recipients with properties {address:themailitem}
end repeat*)
send
end tell
end tell

Regards

Santa

And what, you ask, was the beginning of it all?
And it is this......
Existence that multiplied itself
For sheer delight of being
And plunged with numberless trillions of forms
So that it might
find
itself
innumerably

Sri Aurobindo





 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Re: Why is this AppleScript working unreliably? Any ideas? (From: Jeff Gold <email@hidden>)
 >Re: Why is this AppleScript working unreliably? Any ideas? (From: Brian Christmas <email@hidden>)
 >Re: Why is this AppleScript working unreliably? Any ideas? (From: Jeff Gold <email@hidden>)
 >Re: Why is this AppleScript working unreliably? Any ideas? (From: Alex Zavatone <email@hidden>)
 >Re: Why is this AppleScript working unreliably? Any ideas? (From: Jeff Gold <email@hidden>)

  • Prev by Date: Re: Why is this AppleScript working unreliably? Any ideas?
  • Next by Date: Re: Why is this AppleScript working unreliably? Any ideas?
  • Previous by thread: Re: Why is this AppleScript working unreliably? Any ideas?
  • Next by thread: Re: Why is this AppleScript working unreliably? Any ideas?
  • Index(es):
    • Date
    • Thread