Read Carefully If Read-- regarding scripts

blahblahblahbin

Registered
I need some help.

Im trying to write a apple script in script editor.(Wait!:))

Previously I used automator to do some tasks for me.

the tasks:

Get specified finder items
New mail message
Send outgoing mail

very simple huh
sorta

problem, my mail server only allows so much mb in a message to be sent at once. but i need this mail server because i need to recieve and send attachments that are executable(which gmail doesn't allow)

So this means if I get two files that I need to email in the same message

I would have to use the automator tasks as follows:

Get specified finder items
new mail message
send outgoing

Get specified finder items
new mail message
send outgoing

Heres what I need:

First off I got pretty much all of the script written except for what I need.

What I want to do is put both files in a folder then call up an applescript and tell it

Get specified finder items --/ call the folder that I specified
Get contents of folder --/ looks in the folder and says hey I have two files
Then have it say file 1 of 2 send to bob@spambob.com
send
Then say file 2 of 2 send to bob@spambob.com
send

If this helps, im seeing something like(yes i know it sorta looks like applescript, i just trying to save space)

Tell application "finder"
get folder (macintosh hd blah blah blah)
get contents

Tell application "mail"
set newMessage
get folder with item number one --/getitem 1 of 2
something here --/call the get folder command above and then call get folder with itiem number 2 and send..

Im really sorry if this is long, im really interested and applescript and am trying to learn. Like I said I don;t need someone to write the whole script I just need the part where Applescript can call file 1 of 2 in folder and send mail then call item 2 of 2 in folder and send mail.

Thank YOU
 
Back
Top