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.
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
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$