I've looked in various places and I can't find the answer. I have written a script to launch the Terminal and I want to open a certain directory, like this:
How do I get AppleScript to actually change me to that directory so I don't have to press return? There is probably an easier way of doing it than what I've done.
Many thanks.
Code:
tell application "Terminal"
activate
delay 1
tell application "System Events"
keystroke "cd /Applications/mame0187-64bit"
end tell
end tell
How do I get AppleScript to actually change me to that directory so I don't have to press return? There is probably an easier way of doing it than what I've done.
Many thanks.