leenno / alfred-terminalfinder Goto Github PK
View Code? Open in Web Editor NEWAlfred workflow to open current Finder window in Terminal/iTerm and vice versa.
License: MIT License
Alfred workflow to open current Finder window in Terminal/iTerm and vice versa.
License: MIT License
For some reason Alfred crashes whenever I use terminalfinder in the last few days. Does anyone else have the same issue?
The fi command in TerminalFinder.alfredworkflow should use "" instead of "Default" to launch a session with the default Profile instead of one with the Profile named Default.
tell myTerm
if not isRunning and termCount is not 0 then
set mySession to current session
else
set mySession to (launch session "Default") -- replace "Default" with "" on this line
end if
tell mySession to write text "cd " & pathList
end tell
The src/fi.scpt.txt file has the correct line already so I guess an export might be all that's needed.
when I type tf
[2018-06-29 16:53:34][ERROR: action.applescript] {
NSAppleScriptErrorBriefMessage = "The result of a numeric operation was too large.";
NSAppleScriptErrorMessage = "The result of a numeric operation was too large.";
NSAppleScriptErrorNumber = "-2702";
NSAppleScriptErrorRange = "NSRange: {87, 12}";
}
when I type ft
[2018-06-29 16:54:06][ERROR: action.applescript] {
NSAppleScriptErrorBriefMessage = "The result of a numeric operation was too large.";
NSAppleScriptErrorMessage = "The result of a numeric operation was too large.";
NSAppleScriptErrorNumber = "-2702";
NSAppleScriptErrorRange = "NSRange: {623, 12}";
}
macos 10.13.5 (17F77)
alfred v3.4
iterm2 Build 3.2.0beta5
As the topic tells, this is the error message I get if I want to open a Finder Window in iTerm (Mavericks).
Any idea?
open -a Warp.app $(osascript -e 'tell application "Finder" to get the POSIX path of (target of front window as alias)')
First of all thanks for this very helpful Workflow 🙂
Can somebody help me out in setting iTerm
as the Terminal app to use?
Do I have to manually adjust the NSAppleScript
or set any other option I am not aware of?
Alfred 2 latest version
alfred-terminalfinder version 1.6.0
User Keyword fi
Starting debug for 'Terminal Finder v1.6.0'
[ERROR: alfred.workflow.action.applescript] {
NSAppleScriptErrorBriefMessage = "Expected class name but found identifier.";
NSAppleScriptErrorMessage = "Expected class name but found identifier.";
NSAppleScriptErrorNumber = "-2741";
NSAppleScriptErrorRange = "NSRange: {417, 8}";
}
Using PI
shortcut to open current Pathfinder location in iTerm is no longer functioning correctly. It will open iTerm, however, it will not apply the expected path
When Finder has focus, calling the fi extension (Finder -> Iterm), with error logging activated via Alfred this error is logged:
Starting debug for 'TerminalFinder'
[INFO: alfred.workflow.input.keyword] Processing output 'alfred.workflow.action.applescript' with arg ''
[ERROR: alfred.workflow.action.applescript] {
NSAppleScriptErrorBriefMessage = "Expected class name but found identifier.";
NSAppleScriptErrorMessage = "Expected class name but found identifier.";
NSAppleScriptErrorNumber = "-2741";
NSAppleScriptErrorRange = "NSRange: {345, 8}";
}
Environment:
OS X EI Capitan Version: 10.11.3
Alfred 2 Version: 2.8.2
iTerm2 Build 2.1.4
I used custom-iterm-applescripts-for-alfred for fixing iTerm integration with Alfred 2.
I have installed branch 2.1.x 's workflow but it opened Terminal with the correct path. Here is a snapshot:
@LeEnno Please let me know if I missed something or needing more detail and log. Thanks very much!
Hi!
When I tried to use fi
or ft
to open the current finder path in Terminal/iTerm, the generated command is clear; cd '/Users/tillchen/Downloads:/'
, which is actually an invalid path due to the colon at the end. I guess this might be caused by the change of macOS Catalina?
Thank you!
"warp" is a good terminal, could you adapter for it?please
If I have just one tab opened in split pane mode, the command 'fi' isn't working anymore. The new tab is showing always the default folder.
iterm version: 2.1.4
Hi, I want to use iterm2 instead of terminal. What should I do? Should I change all the 'Terminal' in the script to 'iTerm'?
This error occurs when using "fi" command
[ERROR: alfred.workflow.action.applescript] {
NSAppleScriptErrorBriefMessage = "Expected class name but found identifier.";
NSAppleScriptErrorMessage = "Expected class name but found identifier.";
NSAppleScriptErrorNumber = "-2741";
NSAppleScriptErrorRange = "NSRange: {417, 8}";
}
Hi team, could you add a license for project?
It works perfectly fine when I open a finder window from terminal, but not vice versa.
You might want to use
tell application "iTerm"
set myterm to (make new terminal)
tell myterm
launch session "Default Session"
tell the last session
write text "cd " & pathList
end tell
end tell
end tell
for opening iTerm. This is much faster.
iTerm2 Build 3.0.5
Alfred 3.0.3
fi
[2016-07-20 12:19:58][ERROR: action.applescript] {
NSAppleScriptErrorBriefMessage = "Expected end of line but found class name.";
NSAppleScriptErrorMessage = "Expected end of line but found class name.";
NSAppleScriptErrorNumber = "-2741";
NSAppleScriptErrorRange = "NSRange: {566, 6}";
}
when i open more than one finder window, the fi can not work well, maybe give a list to choose or open the most front window?
Starting debug for 'TerminalFinder'
[ERROR: alfred.workflow.action.applescript] {
NSAppleScriptErrorBriefMessage = "Expected end of line but found class name.";
NSAppleScriptErrorMessage = "Expected end of line but found class name.";
NSAppleScriptErrorNumber = "-2741";
NSAppleScriptErrorRange = "NSRange: {566, 6}";
}
I've used the lastest workflow.
iTerm2: build 3.0.2
Alfred: 2.8.4
'fi' still not working!
iterm2 3.1 beta 5
macOS 10.12.6
current workflow version
There is always a hotkey window in the background. When I use fi
, however, it open a new tab in hotkey window profile but not bring hotkey window to front. I trie append tell application "System Events" to key code 103
(which F3 is my hotkey) but it doesn't work.
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.