|
|
10.4: Use Automator to open chosen folder in Terminal
This does not work your terminal window is open to with SSH session. It tries to execute the cd command on the remote host. So unless you always keep your first terminal window local only it may be best to modify this to always create a new window.
10.4: Use Automator to open chosen folder in Terminal
No.
If the front-most window is doing ssh, Terminal (at least, I don't know iTerm), considers itself "busy", then the script will open a new window, as fabrizio points, since the "do command" without reference to any window issues the command in a fresh new window. Then the last version:
on run {input, parameters}
tell application "Terminal"
activate
if (the (count of the window) = 0) or (the busy of window 1 = true) then
do script "cd " & (quoted form of POSIX path of (input as string))
else
do script "cd " & (quoted form of POSIX path of (input as string)) in window 1
end if
end tell
return input
end run
10.4: Use Automator to open chosen folder in Terminal
Yes :)
10.4: Use Automator to open chosen folder in Terminal
Ok, you are wright. You can remove 'ssh' from the 'don't alert on close' preference or look specifically for that kind of process in the title of the front-most window or, finally make _always_ a new window. I prefer not to make new windows when possible.
10.4: Use Automator to open chosen folder in Terminal
I want to right click on a folder or a file. If a file then it should open the terminal in the enclosing folder.
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.20 seconds |
|