On Mon, Apr 19, 2004, the following words from Christian Roth
[EMAIL PROTECTED], emerged from a plethora of SPAM ...

>I had an AppleScript in 4.x working that did a 
>
>  move theMsg to message container "name"
>
>
>This does no longer seem to work in the 5 beta, where I now have to write
>
>  set the storage of theMsg to the message container "name"
>
>
>Is this a deliberate change, a bug or have I been just doing something wrong?

If your script has changed for you, I assume this means that CTM has
improved their AppleScript implementation in PowerMail. Hopefully, it's
all good.

Storage is a property of a message, so it makes sense to be able to
change an object's property by setting it. I don't think your syntax is
odd at all. It sounds like a reasonable English phrase. In all the
scripts I've just now checked, I've been using, "set the storage of ..."
which I think is consistent with a few other applications. CTM probably
tried to make the other workable, yet inconsistent usage, obsolete to be
more consistent with other applications like Palm Desktop and Address
Book, as they use similar syntax. 

tell application "PowerMail"
        set the targetFldr to "_Miscellaneous"
        set the msgSub to "complete me please"
        set the msgTxt to "It's Howdy Doody time!"
        set the unfinishedMsg to make new message with properties
{subject:msgSub, content:msgTxt, storage:message container targetFldr}
        open the unfinishedMsg
end tell

or

tell application "PowerMail"
        set the targetFldr to "_Miscellaneous"
        set the msgSub to "please, complete me please"
        set the msgTxt to "It's Howdy Doody time!"
                set the unfinishedMsg to make new message at message container
targetFldr with properties {subject:msgSub, content:msgTxt}
        open the unfinishedMsg
end tell

Both of the above work with 10.2.8 and PowerMail 4.2.1. Do they both work
in PM 5 beta? Your broken script could just be an accidental result of
their AS modifications, instead of a direct sabotage. I'm glad the AS is
improving, even if a few older scripts do break. Doesn't look like a bug
to me, but I'm no expert.

Still trying to figure out a good time in my schedule to undertake a beta
email app. I think I'll definitely wait until after my new DVD burner
arrives this week. I've been to busy to run my PM to FileMaker scripts
lately, so I don't want to take chances. This is the PM version I've been
hoping would come soon so I can make up my mind whether or not to switch
to another email application - sounds thus far like there will be
improvements in PM 5 to really appreciate - well worth a few broken scripts.

-- 
Sometimes even to live is an act of courage.
- Lucius Annaeus Seneca, writer and philosopher

* 867 PowerBook G4 * OS X 10.2.8 * 768 MB Ram *


Reply via email to