Re: gaining control
Re: gaining control
- Subject: Re: gaining control
- From: Rob Jorgensen <email@hidden>
- Date: Sun, 26 Oct 2003 15:52:00 -0500
At 2:01 PM -0600 10/26/03, Christopher Stone wrote:
At 09:46 -0500 10/26/2003, Rob Jorgensen wrought:
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.
I considered making this change but I have a vague recollection that
"as alias list" sometimes fails. Since the original code worked for
Jim (it's his code, not mine), I didn't want to push it. :-)
-- Rob
_______________________________________________
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.