forgetfulfellow Posted April 28, 2014 Share Posted April 28, 2014 (edited) Hi, I'm currently using a workflow that does not work at desired. I try to open a specific location in iterm using the specific applescript tell the last session write text "cd " & q & "; clear; pwd" end tell Going to regular destinations like: /Users/MyName/Downloads works fine, but going to locations with two words or more like: /Users/MyName/Git Projects/Project1 doesn't work. Does anybody with applescript and iterm knowledge know the fix? Thanks, Nolan Edited April 28, 2014 by forgetfulfellow Link to comment
rice.shawn Posted April 28, 2014 Share Posted April 28, 2014 You need to add in the quoted form of so that the path will be escaped. So something like tell the last session write text "cd " & the quoted form of q & "; clear; pwd" end tell should work. forgetfulfellow 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now