On Oct 29, 2014, at 17:13 , Brian Christmas <email@hidden> wrote:
Deivy, I tried to use accounts in my testing, as a matter of course, but they don’t work either, either referred to a name or as number.
tell application "Mail"
version
selection
background activity count
color quoted text
default message format
accounts
set fetch interval of account "iCloud" to -1
end tell
On 30 Oct 2014, at 8:06 am, Deivy Petrescu <email@hidden> wrote:
I believe there is a problem with some properties in Mail.
Some of the properties work as expected, the ones that check intervals, apparently do not work with Mail. They work with accounts.
Brian, this is what I mean.
tell application "Mail"
tell account 2 to get its properties
end tell
—>{password:"Account passwords can only be set, not read.", server name:”
xxx.xxx.com", empty sent messages frequency:-1, empty junk messages on quit:false, empty trash frequency:7, name:"applescript", authentication:password, empty sent messages on quit:false, account directory:file “xxxxxxx:", enabled:true, empty trash on quit:false, smtp server:smtp server "smtp.1and1.com:applescript@
dicas.com" of application "Mail", big message warning size:-1, email addresses:{"
email@hidden"}, move deleted messages to trash:true, delete mail on server:true, uses ssl:true, full name:"Deivy Petrescu", include when getting new mail:true, class:pop account, empty junk messages frequency:7, port:110, account type:pop, user name:”xxx.xxx.xxx", delete messages when moved from inbox:false, delayed message deletion interval:7}
some of the interval check apparently return something— "empty junk messages frequency:7, delayed message deletion interval:7", etc.
If you try
tell application "Mail"
get its properties
end tell
You get the same error Robert reported.
Deivy Petrescu