 |
 |
Make another machine speak...
|
 |
|
 |
|
Mac Enthusiast
Join Date: Dec 2002
Location: Newport Beach, CA
Status:
Offline
|
|
A while back there was a discussion about a guy who wanted to remotly log in to his wifes machine via the CLI, and make the machine speak certian text.
Can anyone point me to that thread (I've searched), or tell me how to do it? Thanks....
|
Be a traveler, not a tourist
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status:
Offline
|
|
Originally posted by EnVoy:
A while back there was a discussion about a guy who wanted to remotly log in to his wifes machine via the CLI, and make the machine speak certian text.
Can anyone point me to that thread (I've searched), or tell me how to do it? Thanks....
1) SSH into the box.
2) Do something like this:
Code:
/usr/bin/osascript << EOF
set volume 10
say "Hey baby come to bed"
EOF
|
|
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Sep 2000
Location: Cupertino, CA USA
Status:
Offline
|
|
Use Program Linking (setup in the Sharing Preference Pane) and write a script similar to this:
Code:
set the target_app to application "Finder" of machine "eppc://11.111.11.111"
using terms from application "Finder"
tell target_app
say "Hey, I'm over here!"
end tell
end using terms from
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Dec 2002
Location: Newport Beach, CA
Status:
Offline
|
|
1) SSH into the box.
2) Do something like this:
code:
/usr/bin/osascript << EOF
set volume 10
say "Hey baby come to bed"
EOF
Doesn't work, I get this:
[xxxxxxxxxxxxx:~] joe% /usr/bin/osascript << EOF
? set volume 10
? say "Hello"
? EOF
kCGErrorIllegalArgument : initCGDisplayState: cannot map display interlocks.
kCGErrorIllegalArgument : CGSNewConnection cannot get connection port
INIT_Processeses(), could not establish the default connection to the WindowServer.Abort
|
Be a traveler, not a tourist
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Sep 2002
Location: New York, NY
Status:
Offline
|
|
Originally posted by EnVoy:
Doesn't work, I get this:
[xxxxxxxxxxxxx:~] joe% /usr/bin/osascript << EOF
? set volume 10
? say "Hello"
? EOF
kCGErrorIllegalArgument : initCGDisplayState: cannot map display interlocks.
kCGErrorIllegalArgument : CGSNewConnection cannot get connection port
INIT_Processeses(), could not establish the default connection to the WindowServer.Abort
Works on mine.
|
|
Vandelay Industries
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Dec 2002
Location: Newport Beach, CA
Status:
Offline
|
|
Works now, must have done something wrong...
|
Be a traveler, not a tourist
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status:
Offline
|
|
You have to be the user currently logged in to the GUI for that to work. You can use the "su" command if you know the user's password, or "sudo su" if you don't but are an administrator. You can see who's logged in by going
ls -l /dev/console
and seeing who the owner is.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Dec 2002
Location: Newport Beach, CA
Status:
Offline
|
|
Thanks guys, works great...
|
Be a traveler, not a tourist
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|