Ask a Question related to Mac Applications & Software, Design and Development.
-
Sander Tekelenburg #1
Re: mail.app and applescript rule - Not workinh - help?
[Crossposted and followups set to <news:alt.comp.lang.applescript>]
In article <3F2194F7.2010204@nospam.com>,
mark hune <mark.hune@nospam.com> wrote:
I don't use Mail.app so I can't say much about that aspect. (Does it> Hi, I have been trying to get the mail.app to run a compiled applescript
> when an email arrives with a certain subject.
>
> i.e...
>
>
> RULE:
> if [any] of the following conditions are met:
>
> [subject] [contains] 'ipsender'
>
>
> perform the following actions:
>
> [Run Applescript] '~/Library/Scripts/Applications/Mail/ipsender0.scpt'
>
>
> Nothing happens when the mail arrives, but if I run the script
> externally it works a treat?
actually run compiled scripts or might it requiere applets?) But I can
imagine that the way you refer to the message works in one way, but
doesn't in the other. Hard to say when you don't post the actual code.
In general, the approach to trouble shoot code is to wrap your it in a
try handler and have it inform you of the error message and number. For
instance something like this:
try
-- do stuff
on error m number n
tell app "Finder"
activate
display dialog (n as string) & return & (m as string)
end
end
Or write the error to a log. Whichever you prefer.
You may have to do that on every line of your code before you actually
catch the problem.
[Note follow-ups]
--
Free and shareware at <http://www.euronet.nl/~tekelenb/software/>
Sander Tekelenburg Guest
-
Using CSS class together with CSS Rule
Hi, I design my web site in Dreamweaver and then use Web Developer 2005 Express for the dynamic stuff. I amalgamate all the work I have done in... -
Space before and after a Rule
I am working in InDesign CS2 and I want know of anybody has figured out a way to put a predetermined space before and after a rule within a textbox... -
Illustrator CS & applescript
hello I have a document with about 70 objects (page items) which I want to export each in a separate file (.psd). I think about copy the page... -
AppleScript
Hi, I was wondering if anybody out there can help me out here. I usually get a job from a customer. And everytime I work on this job I have to do the... -
applescript?
Hi, Barb. Thanks, but you see, the question is, does PE understand applescript? With applications that are applescript aware, you can automate a lot...



Reply With Quote

