Hello, Im trying to write a applescript that will take arguments (in my case a string of words) and them print them out in the desired application as keystrokes. Right now the code looks like this: PHP: on run searchbar set test to (item 1 of searchbar) tell application "System Events" tell application "myapp" to activate keystroke test end tell end run I don't know if this is the right way to code it, but I found this pretty much by searching on google. Anyhow, it doesn't work.. So my question is how I should do? I simply want the applescript to take one param that contains a string of words. Then print the entered string out in my app. Thanks in advance! /Joppze.