Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'script would not compile' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
script would not compile
Authored by: caesurae on May 04, '06 02:57:57PM
The script would not compile on my system; OS X 10.3.9 build 7W98, AppleScript 1.9.3, Mail 1.3.11, Script Editor 2.0 v43.1

Two different lines stopped the compiler with the error "Syntax Error Expected class name but found identifier."

line #1 set attachName to the name of the first mail attachment of thisMail
line #2 save first mail attachment of thisMail in theBody & attachName

I was able to get the script to compile by changing both instances of "first mail attachment of thisMail" to "first attachment of thisMail".

line #1 set attachName to the name of the first attachment of thisMail
line #2 save first attachment of thisMail in theBody & attachName



[ Reply to This | # ]

text item delimiters unneeded
Authored by: caesurae on May 04, '06 03:09:18PM
also, the getFirstLine() handler's method of setting AppleScript's text item delimiters is unnecessary as it is functionally the same as the following statement:

set theBody to first paragraph of (the content of thisMail) as text



[ Reply to This | # ]

text item delimiters unneeded
Authored by: mwncimelyn on May 08, '06 09:32:48AM

I had planned to include some way of removing an automatic signature that the works mail server adds to all emails, but never got around to this.

I have also removed the function and have included the same line as yours.



[ Reply to This | # ]
script would not compile
Authored by: mwncimelyn on May 08, '06 09:34:35AM

That's interesting. Perhaps it is something to do with the fact that I'm running Tiger.

Thanks for posting your fix.



[ Reply to This | # ]