call applescript

Hi,
I use one account to run eggplant, use another account to run VNC, and both eggplant and vnc on the same mac.

I want to call apple script in myeggplant, so I do like this:

.....

do AppleScript {{
tell application "Finder"
activate
open folder "Applications" of startup disk
end tell
}}

it is so strange, it always opens the applications folder of my own account, the folder in the active connection window does not open.
why?

Does applescript support any keyinput function, like typetext in eggplant?

thanks!

Comments

  • SenseTalkDougSenseTalkDoug ForumAdmin admin
    When you call AppleScript from Eggplant, it executes in the same user context where Eggplant is running. AppleScript doesn't know anything about the remote system that Eggplant is connected to. So in general, AppleScript will be useful mainly for interacting with things within the local account (such as reading from an Excel spreadsheet) but not for interacting with the SUT.

    Having said that, though, it is possible to get AppleScript to communicate with another system (as discussed here). I've never tried to use that capability to communicate with another logged-in account on the same system, so I don't know if it's possible or not. But you are welcome to give it a try.
Sign In or Register to comment.