-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emails won't move to the selected folder #1
Comments
I believe that this is due to Mail having a different menu layout in Ventura. |
I've changed the AppleScript of the second step on the workflow to a more straightforward move command. However, I'm still having trouble dealing with Gmail Accounts. I guess I will keep an eye on how one could use both account and mailbox names in the menu approach, as it used to work even with Gmail accounts. |
... and i even had trouble with every Account (one IMAP and one Exchange-Account). I've testet it under Ventura and Sonoma (current Version / Language set to: German) and it didn't move any Mail :-/ |
@Blog404DE |
@odapg on run argv
tell application "Mail"
try
set mailboxName to item 1 of argv
set theAccount to item 2 of argv
if selection is {} then error
set messageList to (selection as list)
set theMailbox to mailbox mailboxName of account theAccount
repeat with theMessage in messageList
-- set theMessage to the first item of (selection as list)
set theMailbox to mailbox mailboxName of account theAccount
move theMessage to theMailbox
end repeat
end try
end tell
end run But it still didn't move any E-Mails and i have absolutely no idea how to debug a AppleScript inside of Alfred :-( |
@Blog404DE |
thx :-) ... I've tried it with the same result. But i've found a option to debug my problem. With activating the debugging mode in alfred, i've could created some log-Outputs. The first part of the script (creating a list auf mailboxes) is working without any problem (with your version) and i've testet the second script and it seems, the Problem started with the line: Maybe i've got time to dig deeper into the problem next year ... ;-) |
I have absolutely no clue about coding, just what I got from high school and therefore a rudimentary knowledge. I googled for solutions a few days went back and forth. Found in apple communities and in macscripter discussions I used to tweak chatgpts o3-mini-high to follow this path, after several days running to nowhere. Anyways the code works now for me. I use an exchange on premise account and work in a German language environment. What I did: Making sure that folders are not subfolders of the Inbox. The code provided here, worked then. But not for sub folders. There seems to be a problem to get the right path for exchange accounts as you only get the mailbox name but when moving the mail to this mailbox it is expected that you provide the full path. Maybe someone with knowledge comes around to provide a better solution. Till then: I needed to make changes in the sorting script: `use AppleScript version "2.4" -- Yosemite (10.10) or later -- Handler: Retrieve the full mailbox path using an intentional error.
|
Hi,
This is my first time using Alfred (and I haven't used apple script in a long time). But the script doesn't work for me :/
I'm on macOS 13.1 and it's in French (a long time ago it was an issue with apple script, I don't know if it still is).
Could you help me?
The text was updated successfully, but these errors were encountered: