2
I have an Applescript that changes directory for the front Terminal window to the front Finder window. It works fine, but it also outputs text which clutters my terminal window.
Does anyone have any idea how to make it shut up? I'm pretty terrible at Applescript so any advice/improvements would be appreciated.
Script:
tell application "Finder"
try
set thePath to (quoted form of POSIX path of (target of front window as alias))
tell application "Terminal"
activate
do script "cd " & thePath in front window
end tell
on error error_message
beep
end try
end tell
Example:
david$ cdf
cd '/Users/david/' <---Make this go away
tab 1 of window id 2810 <---This too
david$ cd '/Users/david/' <---Doubt anything can be done about this
david$
Is there a question left to answer? – Daniel Beck – 2010-11-06T16:24:22.797
As it turns out it's not actually working. – David Kanarek – 2010-11-07T03:31:43.827