FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

mail.app offline while away

 
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Mac
View previous topic :: View next topic  
Author Message
error516
Newbie


Joined: 09 Oct 2004
Posts: 4

PostPosted: Fri Feb 17, 2006 1:37 am    Post subject: mail.app offline while away Reply with quote

A while ago BDAD helped me with a script for entourage. The script would turn activate the "offline" mode in entourage when phone was no longer in bluetooth range. I have since abandoned entourage and now use mail.app, but I can't seem to get the script to work properly. Any ideas???

on entered_proximity()
tell application "Mail"
activate
end tell

tell application "System Events"
tell process "Mail"

click menu item "Go Online" of menu 1 of menu bar item "Mailbox" of menu bar 1

end tell
end tell
end entered_proximity

on left_proximity()
tell application "System Events"
tell process "Mail"

click menu item "Go Offline" of menu 1 of menu bar item "Mailbox" of menu bar 1

end tell
end tell
end left_proximity


thanks for any help.
Back to top
View user's profile Send private message AIM Address
mark hunte
Junior Member


Joined: 20 Dec 2005
Posts: 39

PostPosted: Sun Feb 19, 2006 4:03 am    Post subject: Reply with quote

[code:1]tell application "Mail"
activate
tell application "System Events"
tell process "Mail"

click menu item "Go Offline" of menu 1 of menu bar item "Mailbox" of menu bar 1

end tell
end tell
end tell[/code:1]


and


[code:1]tell application "Mail"
activate
tell application "System Events"
tell process "Mail"

click menu item "Go Online" of menu 1 of menu bar item "Mailbox" of menu bar 1

end tell
end tell
end tell[/code:1]
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Mac All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group