Duplicate IDNet.com email messages

Started by cs2008, Jul 15, 2008, 19:10:31

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Rik

Rik
--------------------

This post reflects my own views, opinions and experience, not those of IDNet.

cs2008

Quote from: leehampton on Jul 17, 2008, 22:04:35
Hi Chris,

I feel like the lone gunman here...but I am a mac freak. Do you have a .mac/me account.....

Lee

Hi Lee,

No, I don't have a .Mac or Me account.
Fortunately, the Applescript which Glenn posted a link to worked a treat.  All duplicates now removed !

Cheers,
Chris.

Glenn

Good to see that the script resolved the issue Chris
Glenn
--------------------

This post reflects my own views, opinions and experience, not those of IDNet.

LinLin

Another Mac user here. I've never used AppleScripts before but want to try this. I've been getting duplicated emails for many months and would love to install this script.

Questions:
What do I do when I open scripts? Do I click "Enable GUI Scripting"?

Click on "Universal access" or "Set Up Actions"?

I assume "Set Up Actions" -- what do I select for the left part of the split screen?
And do I just cut & paste the lines of code on the right screen?

Thanks,

LinLin

Glenn

LinLin, I think Chris would be best to answer that, I have never used a Mac
Glenn
--------------------

This post reflects my own views, opinions and experience, not those of IDNet.

Tacitus

Quote from: LinLin on Jul 19, 2008, 17:50:27
Questions:
What do I do when I open scripts? Do I click "Enable GUI Scripting"?

Click on "Universal access" or "Set Up Actions"?

I assume "Set Up Actions" -- what do I select for the left part of the split screen?
And do I just cut & paste the lines of code on the right screen?

Go to Applescript in the applications folder.

Open Script Editor and paste the text from the website in the open window.  Then use the 'compile' button to compile the script.  Go to File -> Save As -> Script -> Your name (= say trash duplicate msgs)

Now if you open Mail with the window where you have the duplicate messages at the front.  Double click on your script and it should run.

I've not tried this as I don't use Apple Mail, but I think it should work.  NB Use at your own risk.  Before you run the script go to Library -> Mail and create a duplicate folder as a safety copy. 

HTH, but I expect the experts will be along in a while.

Cheers,

Tac

LinLin

Cool -- worked like a charm.

Thanks!

:thumb:

Tacitus

Quote from: LinLin on Jul 19, 2008, 20:08:27
Cool -- worked like a charm.
Thanks!
:thumb:

No problem - glad it worked for you.   :)



Rik

I'll have to add a 'Mac Advisor' badge to your profile, Tac. ;) Thanks.
Rik
--------------------

This post reflects my own views, opinions and experience, not those of IDNet.

cs2008

The only thing I did differently to Tacitus was not to explicitly compile the code.  It seemed to do this automatically when I saved the script.  (OS X smartness again, I guess !)

I already had the script open when I opened Apple Mail, so just hit 'Run' and it did it's stuff.

It's the first time I've used Applescript too - quite impressed !

Tacitus

Quote from: cs2008 on Jul 20, 2008, 15:55:58
It's the first time I've used Applescript too - quite impressed !

As you will see you can record actions.  Set Record in the script editor and then do (more or less) what you want and it will record your actions.  Compile and then run and it should replay what you have recorded.  You will learn quite a bit just by doing this, and provided you're careful, you're unlikely to damage anything.  I'm no AScript genius since most of what little I know comes from AppleScript for Dummies and trial and error

A lot of what you can do depends on whether the application is "Applescript Aware".  If it is, it will have certain built in commands/hooks that can be used in AppleScript.  Much depends on the application - obviously Apple's own are better in that respect than some of the others.

There are some helpful AppleScript forums around if you use Google.