Re: gaining control
Re: gaining control
- Subject: Re: gaining control
- From: Christopher Stone <email@hidden>
- Date: Sun, 26 Oct 2003 14:01:48 -0600
At 09:46 -0500 10/26/2003, Rob Jorgensen wrought:
Tell app "Eudora"
...
tell my_id
set field "to" to "me_at_work"
set field "subject" to thedate
repeat with n from 1 to the count of the theList
attach to it documents ((item n of theList) as alias)
end repeat
queue it
end tell
...
End Tell
If you grab your files as an alias list to begin with it is unnecessary
to attach them piecemeal to the referenced message - it can be done in
one line.
set fl to alias "Black Hole:Downloads:"
tell application "Finder"
try
set fileList to files of fl as alias list
on error
try
set fileList to files of fl as alias as list
on error
display dialog "Mushin"
return
end try
end try
end tell
tell application "Eudora" to attach to message 0 documents fileList
I see no utility in using the filter form of "items of", when "files of"
explicitly does the same thing and is faster.
Chris
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.