Re: Renaming attachement from message subject?

2005-01-04 Thread Andy Fragen

*This message was transferred with a trial version of CommuniGate(tm) Pro*
Try this.

applescript
tell application PowerMail 5.1.1a1
set theMessages to current messages
repeat with msg in theMessages
set (name of attachments of msg) to (subject of msg)
end repeat
end tell
/applescript

Bear in mind that this will remove the extension (.ra). You could fix
this specifically for .ra files by adding a second line in the repeat
loop like.

set (name of attachments of msg) to (name of attachements of msg)  .ra

-- 
Andy Fragen

On Tue, Jan 4, 2005, InfoXp said:

Hello,

I would like to rename a bunch of attachements from their messages' subjects.

Would anyone know a script -- or how to script that?

My GSM provider forward to my e-mail the voice messages I receive, which
is nice.
And I would like to archive them with a name that tell when/who/etc in
stead of message XXX.ra...
so that I can consult them later without using PowerMail, etc.

Thanks in advance for your help.

All the best,
-Xavier









Renaming attachement from message subject?

2005-01-04 Thread InfoXp

Hello,

I would like to rename a bunch of attachements from their messages' subjects.

Would anyone know a script -- or how to script that?

My GSM provider forward to my e-mail the voice messages I receive, which
is nice.
And I would like to archive them with a name that tell when/who/etc in
stead of message XXX.ra...
so that I can consult them later without using PowerMail, etc.

Thanks in advance for your help.

All the best,
-Xavier