I'll try that. thanks. sorry for all of my lack of know how on this. I'm not 
used to this language. lol! and I am by no means the best programer in the 
world. I used to script for something else that's not to be disgussed on this 
list. lol!

S
On Jan 6, 2011, at 6:42 PM, Jon Cohn wrote:

> 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 macvisionar...@googlegroups.com.
> To unsubscribe from this group, send email to 
> macvisionaries+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/macvisionaries?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"MacVisionaries" group.
To post to this group, send email to macvisionar...@googlegroups.com.
To unsubscribe from this group, send email to 
macvisionaries+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/macvisionaries?hl=en.

Reply via email to