To summarize some of the previous advices and to show beginners how easy it is to use applescript: -- begin commandline osascript -e 'tell application "LiveCode" activate do script "put the internet date" end tell' --end commandline (include the last char which is cr)