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


Click here to return to the 'Compilation error' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Compilation error
Authored by: hamarkus on Jan 31, '07 08:08:06AM

I get the following error on compilation/save:
"Syntax Error
A unknown token can't go after this "}". "
The curled bracket is the one on the first line.



[ Reply to This | # ]
Compilation error
Authored by: Fritz865 on Jan 31, '07 09:17:07AM

I get the same syntax error noted in the first comment.



[ Reply to This | # ]
Compilation error
Authored by: joostjodel on Jan 31, '07 10:03:14AM

Yes, Im having the exact same error in Script editor 2.1.1 on 10.4.8.

Any suggestions for correction?



[ Reply to This | # ]
Compilation error - solution
Authored by: joostjodel on Jan 31, '07 10:32:09AM
Although I really know nothing at all about Apple Scripting, I made it work...
1) Apparently the file up for download has some wrong end of line marks which look like ¨ but should be ¬. So change all end of line errors you encounter in compiling the Applescript with this sign.
2) Then follow the hint someone else posted here before about changing ? into is not. Then you're ready to go!
And I want to add I find this an extremely useful script! Thanks!! I'll rate it a 5 anyway :)

[ Reply to This | # ]
Got it working
Authored by: hamarkus on Jan 31, '07 10:37:55AM

To fix the error on the first line, do not download the file but open the link to it in a browser window and copy the content from there (works at least with Camino). The problem was a strange return/new line character at the end of the first line which the browser shows correctly but the neither of my text editors does.

The second error (line 60) is fixed as noted below by replacing the ? with 'is not' (probably the unequal sign works as well). Somewhere between the OP and posting the script on the website, file/character encodings got probably messed up.



[ Reply to This | # ]