• 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: problem with perform mail action
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with perform mail action


  • Subject: Re: problem with perform mail action
  • From: airdrummer <email@hidden>
  • Date: Tue, 02 Feb 2010 18:30:07 -0500

i discovered the handler failed error resulted from the save of attachment failing due to existing target file...the only indication was a line in the console log saying an exception was thrown:-\

> As far as I know you are not supposed to use user interaction in an Apple

yes, but only partially true...this works in my mail rule:

    display alert replyTo & " - " & cmd & ": " & tvpiName
    tell application "Mail" to save theAttachment in tvpiName -- if !exists

but then this bombs:

    tell application "tvpi2crontab.app" to
	handleEmailedTVPI(replyTo, cmd, tvpiName)

even though there is_no_user interaction (i've coded it so it can run from the cli (osascript & crontab:-)

so the work-around is:

set osa to "tell application \"tvpi2crontab.app\" to handleEmailedTVPI(\"" & replyTo & "\", \"" & cmd & "\", \"" & tvpiName & "\")"
set msg to do shell script "osascript -e " & quoted form of osa
display alert msg


ihnfi why, but it works4me;-)


_______________________________________________ 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: Send outgoing message error from Mail.app
  • Next by Date: Re: set position does not works "as is"
  • Previous by thread: Re: set position does not works "as is"
  • Next by thread: More busy work
  • Index(es):
    • Date
    • Thread