powermail-discuss Digest #2617 - Tuesday, April 24, 2007 Re: Applescript not triggering, WAS Attachment link failing by "Rick Lecoat" <[EMAIL PROTECTED]> Re: Applescript not triggering, WAS Attachment link failing by "Bruce Barrett" <[EMAIL PROTECTED]> Re: Applescript not triggering, WAS Attachment link failing by "Rick Lecoat" <[EMAIL PROTECTED]> Re: Applescript not triggering, WAS Attachment link failing by "Rick Lecoat" <[EMAIL PROTECTED]>
---------------------------------------------------------------------- Subject: Re: Applescript not triggering, WAS Attachment link failing From: "Rick Lecoat" <[EMAIL PROTECTED]> Date: Mon, 23 Apr 2007 22:06:55 +0100 Original message: Received from cheshirekat on 23/4/07 at 13:49 >Is your filter at the end of your list of filters, or where is it >located? To act on all attachments received, it would need to be at or >near the top of your list of filters. Or, at least should not follow any >scripts that move the attachments. The filter in question is pretty high in my filter list (no. 15-ish out of about 90+) and does not follow any filters that move attachments. > >Does the script run properly if you manually run that filter on your >messages that have attachments? Yes, it does. Sorry, should have mentioned that in my original post. I guess that this rules out any incompatibility between the script and PM's applescript library/dictionary. >Have you tried copying the entire >contents of the script into a new script file and saving? (Don't delete >the original too quickly, but the AppleScript Editor would probably tell >you if there was a syntax error with the script you have been using, or >trying to use.) I've not tried rebuilding the script in this way, but the fact that thefilter works when manually applied (see above) implies to me that it is unlikely to have any affect. But I might try it anyway when I have a spare few minutes. Thanks for the alternative script. >/snip/ >If you don't get a lot of attachments, >you can manually run your script, or the above script on individual >messages, or several messages at once, or even an entire folder of >messages if the script works for you outside a filter. I know I'd never remember to do it, and I get enough attachments that it would become a problem. Also, the filter needs to be run on the message, not the attachment per se, and my mail is nearly all auto-filtered into hundred of different folders, making manual application of the filter or script time consuming. > >Good luck! Thanks! Rick -- G5 2GHz x2 :: 2GB RAM :: 10.4.7 :: PM 5.5.2 :: 3 pane mode -- ---------------------------------------------------------------------- Subject: Re: Applescript not triggering, WAS Attachment link failing From: "Bruce Barrett" <[EMAIL PROTECTED]> Date: Mon, 23 Apr 2007 14:28:27 -0700 Hi, Of course it should not follow any filters that get triggered that include "[x] Don't apply subsequent filters to this message" I assume you've checked for that, but just in case. Sometimes it is the simple things. :-) Bruce -- Bruce Barrett See my website at: http://www.brucebarrett.com As Rick Lecoat wrote... >Original message: >Received from cheshirekat on 23/4/07 at 13:49 > >>Is your filter at the end of your list of filters, or where is it >>located? To act on all attachments received, it would need to be at or >>near the top of your list of filters. Or, at least should not follow any >>scripts that move the attachments. > >The filter in question is pretty high in my filter list (no. 15-ish out >of about 90+) and does not follow any filters that move attachments. > >> ---------------------------------------------------------------------- Subject: Re: Applescript not triggering, WAS Attachment link failing From: "Rick Lecoat" <[EMAIL PROTECTED]> Date: Tue, 24 Apr 2007 09:29:16 +0100 There are a few earlier-placed filters that have that box checked, but they are all for highly specific conditions (specific account PLUS specific subject line, etc) and would not be cause for the complete failure to trigger that I'm seeing with this Applescript. But I think I've nailed the problem. I have some filters that move attachments into certain folders, depending upon whether the sender is known or unknown to me, and also for certain clients. I assumed that if they came *after* the 'Tag Attachments' script in the filter list then they would not be a problem. It would appear that even if these filters are way down the filter list, far below the 'Tag Attachments' one in order of activation, they still prevent it from working. I had assumed that the Applescript would run before moving to the next filter, but this appears to be incorrect -- presumably because Applescript is a 3rd party thing and not part of PM itself. Not sure what the workaround it yet, but I'll try adding the 'Tag Attachments' script to any filters that move attachments into specific folders, and see if it helps. Rick -- G5 2GHz x2 :: 2GB RAM :: 10.4.7 :: PM 5.5.2 :: 3 pane mode -- Original message: Received from Bruce Barrett on 23/4/07 at 22:28 >Hi, >Of course it should not follow any filters that get triggered >that include "[x] Don't apply subsequent filters to this message" > >I assume you've checked for that, but just in case. >Sometimes it is the simple things. :-) ---------------------------------------------------------------------- Subject: Re: Applescript not triggering, WAS Attachment link failing From: "Rick Lecoat" <[EMAIL PROTECTED]> Date: Tue, 24 Apr 2007 09:45:39 +0100 Follow up: Looks like anything that moves the attachment prevents the script from working. If the attachment is moved *after* the script is called (but as part of the same filter pass, eg at incoming mail) then the script just fails silently -- presumably it starts to work but the attachment gets moved half way through the tagging process. If the attachment is moved *before* the tagging script is called (eg as part of a single filter where the Action is to move the attachment then tag it) then I get the report "The attachment has been moved since download". It looks like this is part of the script though, not PM. Maybe the script needs updating to accommodate filter-moved attachments; I don't think that functionality was available to PM's filters when the script was written! That's beyond my abilities right now tho. Anyone want to have a go? (NB I've not tried Cheshirekat's script yet. Does that take account of filter-moved attachments?) Rick -- G5 2GHz x2 :: 2GB RAM :: 10.4.7 :: PM 5.5.2 :: 3 pane mode -- Original message: Received from Rick Lecoat on 24/4/07 at 09:29 >Not sure what the workaround it yet, but I'll try adding the 'Tag >Attachments' script to any filters that move attachments into specific >folders, and see if it helps. ---------------------------------------------------------------------- End of powermail-discuss Digest