![]() The script works with paths that do not include spaces. ![]() But escaping the space is not helping at all. The path for the directory I am trying to access has spaces in it. #ITERM2 OPEN TAB IN SAME DIRECTORY CODE#What am I doing wrong? What is this code doing that I don't know? # The idea is to have a tab with Rails server output, and another tab in the project's directory # Open a new tab in Terminal and cd into project's directory e "do script \"cd $1 clear \" in front window" \Ĭd /Users/iamuser/Documents/path/to/project\ file e "tell application \"System Events\" to keystroke \"t\" using " \ Osascript -e "tell application \"Terminal\"" \ bashrc file: # Open a new tab (needs a path as an argument) Here is the script (both functions residing in my. Item #2 doesn't work as expected, the new tab doesn't change directory.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |