so the code would do something like this:

try
tell application "Mail" to quit
tell application terminal: type sqlite3 ~/Library/Mail/Envelope\ Index vacuum;
tell application "Mail" to run
end try

Sorry. I'm just learning. I've coded in other languages so cannot figure out 
why I cannot grasp this. lol!  think i'm close but yeah.

S

On Jan 5, 2011, at 7:47 AM, Jonathan Cohn wrote:

> Well, the automation is doing three things, and one could write it in apple 
> script just as easily.
> 
> For a one time use...
> 
> 1. quit mail
> 2. start terminal
> 3. Enter the following command at the terminal prompt 
> sqlite3 ~/Library/Mail/Envelope\ Index vacuum;
>        
> On 3 January 2011 17:44, Sarah Alawami <marri...@gmail.com> wrote:
> I came acroos this and tried to follow these steps except I can't get past 
> the first one. They might have been using an older automater app. I have to 
> do it from the command line every month but I really don't know if tht's 
> efficent and if I'll remember. lol.
> 
> anyway here are the directions.
> 
> Speed Up Apple Mail (Mail.app) Instantly
> User-Submitted Article
> You may have noticed your Apple Mail slowing down. It takes forever to open, 
> load email, and even gives you the spinning pinwheel beach ball of doom. You 
> maybe have tried deleting and pruning your email with no luck. Fear not! 
> There's a little known way to optimize your Mail.app database so that Mail 
> will run much faster. You don't even have to delete anything! This article 
> will show you how to automate the process so your Mail database is 
> automatically optimized every month - keeping your email client as fast as 
> possible.
> Difficulty: Moderate
> Instructions
>        .       1 Open Automator. If you've never used it before, it can look 
> intimidating. Don't worry though, we're going to be using really basic 
> functions. If it asks you to select a starting point for a new workflow, just 
> select "Custom". Under the actions pane on the left hand side of the app, 
> click "Utilities". Find the "Run AppleScript" function and drag it into the 
> workflow (right hand side of the window). Delete any text that pops in there, 
> and replace it with: tell application "Mail" to quit
>        .       2 Find the "Run Shell Script" function and drag it below the 
> AppleScript you just added. This is where we're putting the function to 
> actually vacuum the database. In the script window, delete any default text 
> and instead type: sqlite3 ~/Library/Mail/Envelope\ Index vacuum;
>        .       3 Find the "Launch Application" function and drag it below the 
> Shell Script you just added. This is the final function for our workflow. 
> From the drop down box, select the application "Mail". Go ahead and click the 
> "Run" button in the upper right hand corner to make sure everything works.
>        .       4 Go to "File" in the menubar and select "Save as Plug-In". 
> Give you plug-in a name, and then set it as an iCal Alarm. When you hit the 
> Save button, iCal should open.
>        .       5 Set the day and time for your plugin to run. More 
> importantly, change "repeat" to "Every month" and "end" to "Never". Click the 
> "Done" button and quit iCal. Your Mail client will now be vacuumed monthly.
> 
> 
> Thanks all
> 
> 
> Sarah Alawami
> 
> MSN: marri...@gmail.com
> 
> Website: http://music.marrie.org
> youtube: http://youtube.com/marrie125
> podcast: http://marrie.podbean.com
> podcast mobile http://marrie.podbean.com/mobile
> 
> --
> 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.

-- 
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