Terminal Scripting
Terminal Scripting
- Subject: Terminal Scripting
- From: Kris Jensen <email@hidden>
- Date: Fri, 27 Feb 2004 15:25:05 -0700
I'm trying to:
- make a new Terminal window
- change directories
- start a terminal-based application
Based on various things I've read in the mailing list archives, I've
tried this just to get a new window and change directories:
tell application "Finder"
set dname to POSIX path of ((folder of (path to me)) as string)
end tell
tell application "Terminal"
set scriptCommand to "cd " & dname
activate
do script "echo \"123\""
delay 2
do script scriptCommand in window 1
end tell
But it doesn't work. I don't get a new window.
The event log (for the Terminal section of the script) looks like:
tell application "Terminal"
activate
do script
do script in window 1
end tell
Do I have an obvious (or not so obvious) error?
Thanks for any help.
Kris Jensen
email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.