Specifying remote file for remote applescript

i’m trying to do this:

set remoteMachine to machine "eppc://10-9-VM.local"
set remoteFinder to application "Finder" of remoteMachine

tell remoteFinder
	set app_path to "davec:developer:depot" as alias
	open app_file
end tell

all that should do is open a folder which is visible at that very path, on the remote machine. However, apparently the “path” is resolved relative to the LOCAL Finder and not the “remoteFinder”. what?

okay so how do i specify that the path must be resolved against the remote finder, other than the “tell remoteFinder” block?

saw this indicating that if i do NOT use a variable name it will work. and it did.

but why? what if i want or need to use a variable?

Hi,

you can use a variable with this syntax


set remoteMachine to machine "eppc://10-9-VM.local"

using terms from application "Finder"
	tell application "Finder" of remoteMachine
		set app_path to "davec:developer:depot" as alias
		open app_file
	end tell
end using terms from