image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old April 13th, 2007, 04:30 PM
Registered User
 
Join Date: Aug 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
beenje is on a distinguished road
applescript on remote machine problem

Hi,

I'm trying to write an applescript to execute actions on a remote machine.
I have one iMac Core Duo and a Mac mini G4 both installed with Mac OS 10.4.9.
The IP address of my mac mini is 192.168.1.61.

I wrote this script that I execute from my iMac:

Code:
set remMachine to "eppc://benjamin@192.168.1.61"

tell application "Safari" of machine remMachine to activate
If I run this script when Safari is already opened on the mac mini, it works fine (it sets a Safari window in the foreground).
But if Safari is NOT opened when I run the script, I get the following error:
Code:
Erreur d'AppleScript
Erreur dans Safari : Cannot find process on host
Have the same behaviour with other applications. It works fine to send commands when they are already opened but I can't launch them.
According to the examples I found on the web, this should work...
Or? How do I launch an application on a remote machine using applescript?

Thanks

Benjamin

PS: I have another solution: run a ssh command to execute an applescript directly on the remote machine. But I'd like to understand why this doesn't work
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 07:19 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.