Hi All,
I have hardly any idea on how to make an applescript app. It is a fairly simple app that will allow me to turn read receipts on and off.
This is what I want my application to do:
A Dialog pops up and asks if you want to turn Read Receipts on or off with with two buttons (on and off).
If 'on' is pressed: terminal is opened and then this is typed in:
defaults write com.apple.mail UserHeaders '{"Disposition-Notification-To" = "Name <email@address>"; }'
If 'off' is pressed: terminal is opened and then this is typed in:
defaults delete com.apple.mail UserHeaders
Then terminal is closed.
End of application.
This is all the code I have so far:
tell application "Terminal"
activate
end tell
Thanks guys for the help.
I have hardly any idea on how to make an applescript app. It is a fairly simple app that will allow me to turn read receipts on and off.
This is what I want my application to do:
A Dialog pops up and asks if you want to turn Read Receipts on or off with with two buttons (on and off).
If 'on' is pressed: terminal is opened and then this is typed in:
defaults write com.apple.mail UserHeaders '{"Disposition-Notification-To" = "Name <email@address>"; }'
If 'off' is pressed: terminal is opened and then this is typed in:
defaults delete com.apple.mail UserHeaders
Then terminal is closed.
End of application.
This is all the code I have so far:
tell application "Terminal"
activate
end tell
Thanks guys for the help.