I would appreciate help with this one.
I would appreciate help with this one.
- Subject: I would appreciate help with this one.
- From: "R. Nelson Byrne" <email@hidden>
- Date: Mon, 31 Aug 2009 16:23:06 -0700
tell application "Mail"
get properties of mailbox "Business" -->{account:missing value,
class:mailbox, unread count:0, container:account "On My Mac" of
application "Mail", name:"Business"}
get class of (container of mailbox "Business") -->mailbox
(*
little problem, the class should be account, no?
OK, let's redo this except refer to it via a variable
*)
get (container of mailbox "Business") returning account_business --
>account "On My Mac" of application "Mail"
try
get class of account_business
on error class_errormess number class_error_numb
log class_errormess & " Number " & class_error_numb as text-->(*Mail
got an error: Can’t get account "On My Mac". Number -1728*)
end try
(*
Now we get an error instead of a wrong answer!
*)
end tell
Running 10.5.8 on a Dual 2 GHz PowerPC G5 (remember that machine?
remember that OS version?)
Regards,
R. Nelson Byrne _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden