creating new scripts

Hi, I'm newbie. I'm trying to figure out how I can create a script using Shift G command and the directory path of the file has a register ? symbol.

Please advise how I can make my script work.

Thanks a lot!
Penny

Comments

  • JonathanOSXJonathanOSX ForumAdmin admin
    So there are two things of note for the solution.

    First, you can use some modifiers with TypeCommand like Shift, Control, and Option. That will get your Cmd-Shift-G. You could also do that with TypeText command, which leads to the second point.

    TypeText allows you to put modifier keys up and down, so to produce a ? symbol we need to hold down Option and hit the letter "r". That will generate the symbol on the remote machine. The option-r isn't anything special that Eggplant does that's just how you type a ? symbol on Mac OS X.

    So the finished example would look like this.
    TypeCommand "Shift G"
    TypeText "~/My Folder"
    TypeText OptionDown, "r", OptionUp
    TypeText Enter
    

    For further information, including a list of special keys you can use, please see the "Keyboard Commands" section of the Eggplant Reference manual. (Pg. 114)
Sign In or Register to comment.