Re: Launch remote script
Re: Launch remote script
- Subject: Re: Launch remote script
- From: Axel Luttgens <email@hidden>
- Date: Sun, 01 Apr 2007 12:10:21 +0200
On 21/03/07 20:20, Rich Sweeny wrote:
Hi,
I am having problems launching a script on a remote machine. I even tried
a very simple script. On the remote machine I have a script called
beep.scpt.
on run(x)
beep x
end run
>From another machine I will run this:
set remoteMachine to "eppc://username:email@hidden.0.4"
tell application "Finder" of machine remoteMachine
set k to item "BootX:beep.scpt"
run script alias k with parameters {3}
end tell
And this is what I get:
Finder got an error: alias (document file "beep.scpt" of startup disk)
doesn't understand the run script message.
I get a similar behavior here, with OS X 10.4.9 on both local and remote
machines.
IIRC, this used to work in the past.
(does someone have the opportunity to try on earlier OS versions,
perhaps Panther?).
The problem seems to be directly related to the "run script" command
used remotely:
tell application "Finder" of machine remoteMachine
beep 3
--> three beeps on the remote machine
run script "beep 3"
--> Finder got an error: \"beep 3\"
doesn't understand the run script message.
end tell
As if the "run script" command were disabled in case of remote invocation.
It may be the result of security-based measures (or a side-effect of
such measures), but I couldn't find any reference about this.
Axel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden