Re: Mail: Move message to another mailbox
Re: Mail: Move message to another mailbox
- Subject: Re: Mail: Move message to another mailbox
- From: John Delacour <email@hidden>
- Date: Tue, 25 Feb 2003 23:59:31 +0000
- Mac-eudora-version: 6.0a7
At 6:03 pm -0500 25/2/03, Tom Tidland wrote:
Am I supposed to consider this an insult?
"set foo" ?
The point I was making is that using the mail dictionary command "move"
One would think the code would be...
move message at mailbox "name" to mailbox "other_name"
As move is in the dictionary. foo is not. Neither is bar.
You are quite right, and the behaviour of the move verb is quite
clearly given in the dictionary and is the same definition it has
always had in all apps, except that it ought to return a reference
and this is not mentioned.
Moving the message reference to the location reference quite clearly
should work and it is equally clearly absurd to have to use the
syntax that Michelle suggests. This is in the required suite.
JD
(Eudora)
move reference -- the object to move
to location reference -- the new location for the object
Result: reference -- to the object after they have been moved
(Tex-Edit Plus)
move: Move an object to a new location
move reference -- the object to move
to location reference -- the new location for the object
Result: reference -- a reference to the moved object
(* MAIL
move: Move object(s) to a new location.
move reference -- the object for the command
to location reference -- The new location for the object(s).
*)
tell application "Mail"
set msg to item 1 of (get selection)
--message 2 of mailbox "INBOX" of account "xxx" of application "Mail"
set jnk to a reference to mailbox "junk"
--mailbox "junk" of application "Mail"
move the result to end of jnk
--> "NSArgumentsWrongScriptError"
end tell
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.