Hello,
I’m new to applescript, using a mac longer time. I using Snow Leopard and a german language.
Some worktroughs should being shorter, not more much cklicks and a drag&drop for making a note with an empty to do and a link to the selected email.
Szenario without applescript:
I’m at a account of mail and a mail is selected. Then I clicked to “New Note”(Neue Notiz) and open an empty note. Then I clicked to “New ToDo” (Neue Aufgabe), set the todo in this line.
Then I click on the selected email and move it to the new note. Before I set the mail to note you will be see a green dot with a “+”. The Email now is a file and if I cklick on this “file”, its opened the email to read and e.g. answer it or work with it.
Szenario with applescript:
I’m at a account of mail and a mail is selected. Then I clicked to “New Note” and in this new note are
- created an empty ToDo (Neue Aufgabe)
and - a link of the selected email is under the todo.
–end
I’m searched and dont found an automaticsm for that work, if I click on “New Note”. But I found Quicksilver to make a hotkey of this application from applescript to work it.
In this application is:
tell application "Mail"
activate
end tell
tell application "System Events"
tell process "Mail"
click the menu item "Neue Notiz" of the menu "Ablage" of menu bar 1
click the menu item "Neue Aufgabe" of the menu "Ablage" of menu bar 1
end tell
end tell
Thats the first step, it work without problems. Now the Problem:
I wish set a link to the selected message of the mailboxes and get it in the New Note (under the todo).
So I tried this:
tell application "Mail"
activate
end tell
tell application "System Events"
tell process "Mail"
click the menu item "Neue Notiz" of the menu "Ablage" of menu bar 1
click the menu item "Neue Aufgabe" of the menu "Ablage" of menu bar 1
tell application "Mail"
set auswahl to selected messages of message viewer 1 of application "Mail"
move message to "Neue Notiz"
end tell
end tell
end tell
But “move message to “Neue Notiz”” doesnt work, because “to:Neue Notiz” cant follow “move message”.
I have no idea, what I can do now.
Maybe its important to set the cursor outside of the todo? How I can do it, if its important?
it would be great to help me!
Model: Mac Book Pro
AppleScript: 2.3
Browser: Firefox 12.0
Operating System: Mac OS X (10.6)