• 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
send attachment via entourage (has this working prior to script corruption)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

send attachment via entourage (has this working prior to script corruption)


  • Subject: send attachment via entourage (has this working prior to script corruption)
  • From: Tim Piper <email@hidden>
  • Date: Thu, 21 Feb 2008 15:02:03 +0000

Hi folks,

still working my way back since loosing my work

:(

I had this working last night and I'm sure I'm not doing anything different, but AS complains it can't make 'fileattach' in to an alias

I've had to work it this way (its seems) as if I use:

set toattach to "Macintosh HD:Users:" & shortname & ":Desktop:foo.txt" as alias

then Entourage complains with its "some script is trying to send a message" dialogue

last nights version of this worked:

tell application "System Events"
set shortname to name of current user
set fullName to full name of current user
end tell

set igetit to "fooo"

set toattach to "Macintosh HD:Users:" & shortname & ":Desktop:foo.txt"
set fileattach to alias of toattach
set email_subject to "foo sub"
set email_body to "foo body"
set itemail to "email@hidden"
set emailAddress to "email@hidden"

tell application "Microsoft Entourage"
make new outgoing message with properties {recipient:emailAddress, BCC recipients:itemail, subject:email_subject, content:"You have been moved from Apple Mail to Entourage, Please only use Entourage for all your email and calendaring. You answered:" & igetit, attachment:toattach, has html:true}
set messID to the result
send messID
end tell



AS returns: can't get alias of "Macintosh HD:Users:tp3766:Desktop:foo.txt

Event Log shows:

"Can't get alias of \"Macintosh HD:Users:tp3766:Desktop:foo.txt\"."

File foo.txt does exist on the desktop at the path specified.




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: sips question
  • Next by Date: Re: Help script corruption..
  • Previous by thread: Re: Help script corruption..
  • Next by thread: Re: AppleScript-Users Digest, Vol 5, Issue 123
  • Index(es):
    • Date
    • Thread