Edit message doesn't edit subject in 2008....

J

Jeffrey Ellis

I need to edit the subject line of some emails, especially receipts so I
know in the future what it was for, not just "Thanks for your order".

But after the last update or so, I can't seem to find a way do this. Am I
missing something here?

All My Best,
Jeffrey
 
M

Michel Bintener

A quick Google search shows quite a few discussion threads in which this
question has already been answered.

<http://tinyurl.com/762ekf>

See here for a thread containing a detailed solution:

<http://tinyurl.com/8zk3uh>


I need to edit the subject line of some emails, especially receipts so I
know in the future what it was for, not just "Thanks for your order".

But after the last update or so, I can't seem to find a way do this. Am I
missing something here?

All My Best,
Jeffrey

--
Michel Bintener
Microsoft MVP
Office:mac (Entourage & Word)

*** Please always reply to the newsgroup. ***
 
J

Jeffrey Ellis

Hi, Michael--

Looks like a great script. Thank you.

I followed the instructions, i.e., copy/pasted the script into Script Editor
and saved it as a script into ~/Documents/Microsoft User Data/Entourage
Script Menu Items.

I then selected a message in the list and chose the script from the Scripts
menu. Nothing happens.

I also noticed when I compiled the script, that all the text turned grey.
I'm obviously not a scripter. Can you tell me what I've done amiss?

Thanks.

All My Best,
Jeffrey
 
J

Jeffrey Ellis

I've gotten a bit farther. I figured this might be happening because of the
copy/paste from my browser. I had already eliminated all the ">" characters.
So I also deleted the header after 'details', and then all the extra returns
and spaces.

I then tried to compile again. At this line:


if class of theMessage ‚ incoming message then error -99


I'm now getting:


'Expected 'then', etc., but found unknown token.'


The "," is highlighted.

All My Best,
Jeffrey

Hi, Michael--

Looks like a great script. Thank you.

I followed the instructions, i.e., copy/pasted the script into Script Editor
and saved it as a script into ~/Documents/Microsoft User Data/Entourage Script
Menu Items.

I then selected a message in the list and chose the script from the Scripts
menu. Nothing happens.

I also noticed when I compiled the script, that all the text turned grey. I'm
obviously not a scripter. Can you tell me what I've done amiss?

Thanks.

All My Best,
Jeffrey
 
M

Michel Bintener

Hi.

Make sure to replace the highlighted comma with "≠" (without the quotation
marks). In case you can't see the sign, it is the "does not equal" sign.
After you've done that, the script should work as expected.


I've gotten a bit farther. I figured this might be happening because of the
copy/paste from my browser. I had already eliminated all the ">" characters.
So I also deleted the header after 'details', and then all the extra returns
and spaces.

I then tried to compile again. At this line:


if class of theMessage ‚ incoming message then error -99


I'm now getting:


'Expected 'then', etc., but found unknown token.'


The "," is highlighted.

All My Best,
Jeffrey

--
Michel Bintener
Microsoft MVP
Office:mac (Entourage & Word)

*** Please always reply to the newsgroup. ***
 
E

Ed Kimball

For a little extra help, you can enter the not equal either by option-= or
the equivalent <> (which won't look like ≠ but works the same way in
AppleScript.
 
J

Jeffrey Ellis

Hi, Michael--

That worked perfectly, thanks.

Is there somewhere I can just upload the compiled script for anyone who
might want to download it in the future?

Thanks again :)

All My Best,
Jeffrey
 
J

Jeffrey Ellis

Hi, Ed--

Option-= si, <> no. <>'s pretty standard in, say, php and other languages,
but ScriptEditor didn't like it when I tried to compile.

All My Best,
Jeffrey
 
M

Michel Bintener

Hi Jeffrey,

since the script was written by fellow MVP Barry Wainwright, it might be a
good idea to ask him if he's alright with this before you proceed. If he
doesn't reply to this message within the next few days, I'll write him a
short email. As for posting it: the best place might be the Entourage Help
Page, which is run by MVP Diane Ross. Again, let's wait for Barry's reply,
then we'll see what we can do about this.

Michel


Hi, Michael--

That worked perfectly, thanks.

Is there somewhere I can just upload the compiled script for anyone who
might want to download it in the future?

Thanks again :)

All My Best,
Jeffrey

--
Michel Bintener
Microsoft MVP
Office:mac (Entourage & Word)

*** Please always reply to the newsgroup. ***
 
J

Jeffrey Ellis

Hi, Michael--

Cool.

Could you possibly let me know when (and how) you think it's ok to upload?
Here's my email:

rlinsurf at dhnet dot us.

Thanks again :)

All My Best,
Jeffrey
 
D

Diane Ross

Jeffrey Ellis said:
Is there somewhere I can just upload the compiled script for anyone who
might want to download it in the future?

It was posted 02/22/08:

<http://www.entourage.mvps.org/downloads/scripts/edit_subject.zip>

The Favorite Scripts Page, Entourage Downloads, and Custom Scripts page have
links for many scripts. ScriptBuilders is a repository for all kinds of
scripts including Entourage.

Be sure to check the Favorite Scripts page for more handy scripts:

<http://www.entourage.mvps.org/script/fav_scripts.html>

Custom Scripts
<http://www.entourage.mvps.org/script/custom_scripts.html>

Script Help Page links to several places including ScriptBuilders to
download scripts:

<http://www.entourage.mvps.org/script/>

Entourage Downloads Page

<http://www.entourage.mvps.org/downloads.html>
 
E

Ed Kimball

You can also write it out in plain English with one of these phrases:

is not equal to
does not equal

(I find when posting scripts to the net it's always better to refrain
from using shortcuts, especially shortcuts that use extended characters,
such as option-=, using plain English wording instead.)

Actually, as Jeffrey discovered, to my embarrassment, AppleScript does NOT
accept <> for not equal. My bad.

In addition to the statements JR suggested, you can also use
is not
isn't
isn't equal
doesn't equal

With all those synonyms, I don't understand why AppleScript doesn't also
accept <>. Oh well.
 
E

Ed Kimball

All I can say is it seems the AppleScript engineers tend to prefer plain
English over symbols, in general.

Apparently. But preferring is one thing, excluding others, especially when
they already allow so many synonyms, is another, IMHO.
 
J

Jeffrey Ellis

Got it. Thanks again.

All My Best,
Jeffrey


It was posted 02/22/08:

<http://www.entourage.mvps.org/downloads/scripts/edit_subject.zip>

The Favorite Scripts Page, Entourage Downloads, and Custom Scripts page have
links for many scripts. ScriptBuilders is a repository for all kinds of
scripts including Entourage.

Be sure to check the Favorite Scripts page for more handy scripts:

<http://www.entourage.mvps.org/script/fav_scripts.html>

Custom Scripts
<http://www.entourage.mvps.org/script/custom_scripts.html>

Script Help Page links to several places including ScriptBuilders to
download scripts:

<http://www.entourage.mvps.org/script/>

Entourage Downloads Page

<http://www.entourage.mvps.org/downloads.html>
 
Top