Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

IMcD23

macrumors regular
Original poster
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:
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
EDIT: i just changed the line do script "cd ______" to do script "cd" & location

never mind, it works for me! :)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.