Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: test the script



Great, all sorted.

Thanks everyone, for all your help.

Rich

On 2/15/07, Andreas Kiel <email@hidden> wrote:

this is the Script

set theAccount to "kiel"
set theSubject to "test the script"
set theAddress to "email@hidden"

set fileName to "coso"
set fileExtension to ".jpg"
set theAttachment1 to fileName & fileExtension
set theAttachment to (((path to desktop) as string) & theAttachment1)
as alias


tell application "Mail" activate set newMessage to make new outgoing message with properties {account:theAccount, subject:theSubject, content:theData} tell newMessage make new to recipient at end of to recipients with properties {address:theAddress} --set visible to false tell content make new attachment with properties {file name:theAttachment} at after the last paragraph end tell end tell send newMessage end tell

this is a dog




--

_|_|_|        _|_|_|          _|_|_|
_|    _|      _|    _|      _|
_|_|_|        _|_|_|        _|
_|    _|      _|    _|      _|
_|_|_|        _|    _|        _|_|_|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.