I got the following to compile and run with no error on my computer.. THe code you used had 3 basic differences
1. wrapped the entire script in a try block. Try blocks are used so that if any part of the script fails it does not abort, but handles it. Since you didn't catch any errors in the code, this would just cause any errors to be silently ignored. 2. I switched around the quit statement it should work the same either way, but there is a slight chance that your way would start Mail if it was not running and then immediately quit. I don't think my way would but I don't have a way to confirm. 3. I used "do shell script" instead of tell terminal. THe tell terminal should have significantly more overhead. Also, AppleScript kept giving errors about unknown symbol until I doubled the backslash. So here is my tested results: quit the application "Mail" set a to do shell script "sqlite3 ~/Library/Mail/Envelope\\ Index vacuum;" -- The below is commented out since A is blank when there are no errors --say "The result is " & a tell application "Mail" to activate -- You received this message because you are subscribed to the Google Groups "MacVisionaries" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/macvisionaries?hl=en.
