Re: problem with perform mail action
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