Il mailcript di posta ha smesso di funzionare su Yosemite

2

Questo script ha smesso di funzionare in Yosemite. Qualsiasi suggerimento sarebbe molto apprezzato.

tell application "Mail"
try


    set _msgs_to_move to (a reference to (every message of mailbox "INBOX" of every account whose flagged status is false and was replied to is true))
    set _msg_list to contents of _msgs_to_move
    if (_msg_list's length > 0) then
        move _msgs_to_move to mailbox "messaggi letti"
    end if
    -- End update for 10.7.0
end try
end tell

Ho ricevuto il seguente errore:

get every message of mailbox "INBOX" of every account whose flagged status = false and was replied to = true
--> error number -1728 from mailbox "INBOX" of every account

Grazie!

Michele

    
posta user1202609 31.12.2014 - 09:43
fonte

2 risposte

1

Grazie al commento di Buscar l'ho risolto:

tell application "Mail"
set accountlist to the name of every account
try
    repeat with n from 1 to (the number of items in accountlist)
        set _msgs_to_move to (a reference to (every message of mailbox "INBOX" of the account (item n of accountlist) whose flagged status is false and was replied to is true))
        set _msg_list to contents of _msgs_to_move
        if (_msg_list's length > 0) then
            move _msgs_to_move to mailbox "messaggi letti"
        end if
    end repeat
end try
end tell
    
risposta data 31.12.2014 - 11:05
fonte
1

Ricevi gli stessi risultati usando

tell application "Mail"
set _msgs_to_move to every message of inbox whose flagged status is false and was replied to is true
    log (count of _msgs_to_move)

end tell
    
risposta data 31.12.2014 - 11:43
fonte

Leggi altre domande sui tag