rkanter / open-iterm-or-terminal-here... Goto Github PK
View Code? Open in Web Editor NEWGenerates an Applescript app that you can put in your Finder toolbar which will open an iTerm or Terminal tab at the current directory.
License: MIT License
Generates an Applescript app that you can put in your Finder toolbar which will open an iTerm or Terminal tab at the current directory.
License: MIT License
Many AppleScript tools have this problem – any suggestions on how to circumvent this pop-up window on every single launch? I have tried these steps to no obvious effect: https://apple.stackexchange.com/questions/335848/mojave-disable-or-control-the-some-app-name-wants-access-to-control-another
Thanks!
Hi,
I also changed the script to open a new window instead of a new tab. It worked fined on my Intel MacBook Pro, but annoyingly I can't drag the app in the Finder toolbar on my Mac mini M1. Anyone have the same problem ? or even better, a solution ?
Thanks :)
It would be nice to have the option to always create a new window instead of a new tab.
I changed the AppleScript slightly to allow this:
tell application "Finder"
if (count of windows) > 0 then
set thePath to target of front window
else
display dialog "There are no open Finder windows." with icon caution buttons {"OK"} with title "Open iTerm Here..."
return
end if
end tell
if not (exists thePath) then
tell application "Finder" to set theName to name of front window
display dialog "The location of the Finder window \"" & theName & "\" is not a real location (e.g. smart folder, search, network, trash, etc) and cannot opened in iTerm." with icon caution buttons {"OK"} with title "Open iTerm Here..."
return
end if
set thePath to quoted form of POSIX path of (thePath as alias)
tell application "iTerm"
-- Handles the case where iTerm is running but has no windows
set createdWindow to false
create window with default profile
tell current session of current window
write text "cd " & thePath & " && clear"
end tell
activate
end tell
And this works for me, but likely this should be packaged up as an option to the generation script...?
It wasn't immediately obvious that this worked in Catalina, but it does... The documentation should likely be updated?
Thank you for this nifty little tool! I am quite pleased with it.
I noticed the following:
If I were to make a wish, I’d like those scenarios to be
How can I help?
FWIW – I am running this tool on macOS 10.15.3 (19D76).
Thanks!
I've checked permits, it looks all good but I've that
"Not authorized to send Apple events to Finder.
Not authorized to send Apple events to Finder. (-1743)"
Not really an issue but I made an icon with the same style as others in the toolbar. If some are interested... I don't know where else to put it and too lazy right now to fork.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.