Hello all,
I am stumped on this issue.
I would like to create an applescript where it displays a dialog asking the location I would like to cd to. it will then open up a terminal window cd'ed to the location I defined.
This is what I have so far:
EDIT: i just changed the line do script "cd ______" to do script "cd" & location
never mind, it works for me!
I am stumped on this issue.
I would like to create an applescript where it displays a dialog asking the location I would like to cd to. it will then open up a terminal window cd'ed to the location I defined.
This is what I have so far:
Code:
set location to ""
display dialog "Enter the location:" default answer location buttons {"OK"} default button 1
set location to text returned of the result
tell application "Terminal"
activate
do script "cd ______"
end tell
never mind, it works for me!