Re: How do I use if/then with this Apple Mail script?
Re: How do I use if/then with this Apple Mail script?
- Subject: Re: How do I use if/then with this Apple Mail script?
- From: Jim Krenz via AppleScript-Users <email@hidden>
- Date: Sun, 12 Jan 2020 20:53:05 -0800
Interesting approach. I’m will to try it to see if my workflow habits can adapt
to multiple viewer windows.
That said, the i run the script, I get this error:
error "Mail got an error: AppleEvent handler failed." number -10000
Jim
> On Jan 12, 2020, at 8:30 pm, Takaaki Naganoya <email@hidden> wrote:
>
> You can make new message viewer windows with each different target account.
> You can choose target account INBOX by choosing message viewer window.
>
>
> <AppleScript>
> tell application "Mail"
> set aList to id of every account whose enabled is true
>
> repeat with i in aList
> set aMB to mailbox "INBOX" of account id i
>
> set aMV to make new message viewer
> tell aMV
> set selected mailboxes to aMB
> end tell
> end repeat
>
> end tell
> </AppleScript>
>
> Takaaki Naganoya
>
>
>> 2020/01/12 8:26、Jim Krenz via AppleScript-Users
>> <email@hidden>のメール:
>>
>> Hello all,
>>
>> I have made this simple script to go to a specified Mail inbox:
>>
>> tell application "Mail"
>> set selected mailboxes of message viewer 1 to mailbox "INBOX" of
>> account “Nostravinci"
>> end tell
>>
>> What I want to create, is a script that will go to my first inbox, and when
>> triggered again, go to my second mailbox, and so on.
>>
>> I think this can be accomplished with if/then, but if/then mystifies me.
>>
>> Does anyone have any advice or examples that would help me?
>>
>> Thanks!
>>
>> Jim
>> _______________________________________________
>> 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
>
> --
> Takaaki Naganoya
> email@hidden
> http://piyocast.com/as/
>
>
>
_______________________________________________
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