• 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: gaining control
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: gaining control
      • From: Rob Jorgensen <email@hidden>
References: 
 >RE: gaining control (From: Jim Brandt <email@hidden>)
 >RE: gaining control (From: Rob Jorgensen <email@hidden>)

  • Prev by Date: Re: Eudora AppleScript Question...
  • Next by Date: "Run Applescript" rule
  • Previous by thread: RE: gaining control
  • Next by thread: Re: gaining control
  • Index(es):
    • Date
    • Thread