What i am looking to do is make a script, so that when i IM myself a unique message, Adium will disconnect.
I need this because i don't like to be signed on in multiple locations, and if for some reason i want to sign myself off from my home computer, but i am at the library, i'd like to send a message to my screen name that will disconnect adium.
I poked around the script dictionary for Adium, and think i may be able to use the 'content message' or 'content' classes, but i know very little AppleScript.
Thanks in advance for any suggestions.
[OT] AppleScript Gurus: Script to Remotely Disconnect Adium?
- TheSilverFox06
- Grandé
- Posts: 770
- Joined: Fri Dec 03, 2004 10:16 pm
- Location: St. Paul, MN
Just got back from class, looked into it for a min, and it seems that i'd have to set up an SSH client on any computer i want to use prior to being able to remotely connect.
If this is true, I think the AppleScript (if someone knows how to do it) would be a more feasible option.
Thanks for the suggestion though.
If this is true, I think the AppleScript (if someone knows how to do it) would be a more feasible option.
Thanks for the suggestion though.
- Newtylicious
- Muffin
- Posts: 42
- Joined: Sun Dec 19, 2004 7:13 pm
- evands
- Cocoaforge Admin
- Posts: 3152
- Joined: Thu Dec 02, 2004 10:55 pm
- Location: Decatur, GA
- Contact:
For security purposes, Adium doesn't parse incoming IMs for purposes of executing files or triggering scripts...
However, here's a random thought:
Make a new screen name. MBHockeyDisconnect or something.
In your home Adium, set up the events pane with an event:
When MBHockeyDisconnect connects [or is seen, probably would work the same way], execute an applescript
Then select an applescript you've made which is along lines of
(i'm not good at applescript, but it will be something like that or perhaps a "for each account in every account" type thing)
Then, when you want to disconnect your accounts at home, just connect with that account from the library.
However, here's a random thought:
Make a new screen name. MBHockeyDisconnect or something.
In your home Adium, set up the events pane with an event:
When MBHockeyDisconnect connects [or is seen, probably would work the same way], execute an applescript
Then select an applescript you've made which is along lines of
Code: Select all
tell application "Adium"
tell each account to disconnect
end tellThen, when you want to disconnect your accounts at home, just connect with that account from the library.
-
Reikon
Code: Select all
tell application "Adium"
disconnect accounts
end tellCode: Select all
tell application "Adium"
quit
end tell