Re: Modifying incoming mail subject
Re: Modifying incoming mail subject
- Subject: Re: Modifying incoming mail subject
- From: has <email@hidden>
- Date: Fri, 28 Dec 2007 19:03:23 +0000
On 27 Dec 2007, at 17:33, Michaël Grünewald wrote:
Tip: always ensure local variable names are different to
application-defined keywords; syntax highlighting should help you
tell the difference.
Thank you for that tip, this was a quite silly error ... I regret I
did not get a sensible warning about his!
Don't worry, you're far from the first to be tripped up by
AppleScript's arbitrarily extensible grammar.
By the way, is there any facility in the script editor that can help
one to spot its mistake (e.g. a list of variables used in a script
can let one spot spelling errors)?
Syntax highlighting - as I already mentioned - is the first defence:
by default, language-defined keywords, application-defined keywords
and user-defined identifiers are red, blue and green respectively.
Thanks for these valuable information, I should pay much attention
to ruby in the following days. My bet is that Ruby is easier to
learn than Applescript
If you're familiar with other OO languages, Python or Ruby should be
easy enough to pick up. e.g. Took me about a week to get comfortable
with the basics, and I'm a slow learner.
With regard to using them to control 'AppleScriptable' applications,
that's something you still have to approach on its own terms, of
course; bugs, quirks and chronic under-documentation included. And
bear in mind that those communities don't have anything like as much
domain-specific knowledge or experience as the AppleScript community
has, so you'll still need to dip into the latter world. But at least
it'll let you avoid the more painful shortcomings of the AppleScript
language itself.
(I have basics in many computer languages, but Applescript is quite
disturbing --- or the guidebook quite unclear.)
The AppleScript language is actually rather simple at heart - the
problem is all the magic slopped on top to give it its "friendly"
appearance badly obfuscates its actual mechanics; hence its reputation
as the anti-Perl, or "read-only" language.
Back to the problem of modifying incoming emails, my script is still
not working. To get more clues I have put a few SAY orders in the
script:
Oh, tsk. Think I'll leave others more familiar with the finer details
of Mail scripting to field this one...
has
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org
_______________________________________________
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