Yes! That did it ... For Exchange accounts,
and local folders I'm good now. I still have no way to do this on IMAP,
but fortunately for me, I don't care about IMAP.
I am curious though - when it fails for IMAP,
there's simply no response. No error, no nothing.
I am a computer engineer (half software developer,
half hardware engineer) and I can't find anything I would call an API for
applescript, or a manual, or language reference... Can't find any way
to get any logging out of it, or insert breakpoints or anything.
Nothing tells me the "type of" for any variable or
object ... or what additional arguments are valid ... Basically I just stink at
applescript.
How does one go about figuring out that
"main_account" was actually a list?
How does one go about looking up the syntax that's
available for the "move" command in a specific context ... For example
...
move aMessage to
theFolder
is what I
already had.
How should I
know that this exists:
move aMessage to theFolder in
item 1 of every Exchange account
How should I
know that this doesn't exist:
move aMessage to theFolder in
item 1 of every IMAP account
Thanks a million ...
----- Original Message -----
Sent: Wednesday, March 18, 2009 8:46
AM
Subject: Re: Re: Applescript newbie
trying to do something easy
I think this is what you're missing. It
doesn't do exactly what your script aims to do but only because I'm lazy :-)
It shows the missing bits.
tell
application "Microsoft Entourage"
set main_account to item 1 of every Exchange account
set
theFolder to
"Some Folder"
set theSelectedMessages to selection
repeat with aMessage in theSelectedMessages
move aMessage to theFolder in main_account
end repeat
end tell
Hope this helps
Steve
----------------------------
_______________________________________________ Do not post admin
requests to the list. They will be ignored. AppleScript-Users mailing
list
(email@hidden) Help/Unsubscribe/Update your
http://lists.apple.com/archives/applescript-users
This email sent to
email@hidden
|