alfred-terminalfinder icon indicating copy to clipboard operation
alfred-terminalfinder copied to clipboard

Both tf and ft does not work fine

Open shijiebei2009 opened this issue 6 years ago • 5 comments

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

shijiebei2009 avatar Jun 29 '18 08:06 shijiebei2009

  1. Have you tried updating Alfred to v3.6.1?
  2. Have you completed the workflow reinstall and Alfred restart dance, that sometimes somehow magically solves stuff?
  3. Do the scripts (check the src folder) work outside of Alfred?

LeEnno avatar Jun 29 '18 09:06 LeEnno

  1. not tried
  2. yes
  3. have not tried

background: I set alfred in features-> Terminal/Shell ->Application -> Custom->

-- This is v0.7 of the custom script for AlfredApp for iTerm 3.1.1+
-- created by Sinan Eldem www.sinaneldem.com.tr

on alfred_script(q)
	if application "iTerm2" is running or application "iTerm" is running then
		run script "
			on run {q}
				tell application \"iTerm\"
					activate
					try
						select first window
						set onlywindow to true
					on error
						create window with default profile
						select first window
						set onlywindow to true
					end try
					tell the first window
						if onlywindow is false then
							create tab with default profile
						end if
						tell current session to write text q
					end tell
				end tell
			end run
		" with parameters {q}
	else
		run script "
			on run {q}
				tell application \"iTerm\"
					activate
					try
						select first window
					on error
						create window with default profile
						select first window
					end try
					tell the first window
						tell current session to write text q
					end tell
				end tell
			end run
		" with parameters {q}
	end if
end alfred_script

I paste the script, So I don't know if it does not work because of this?

shijiebei2009 avatar Jun 29 '18 09:06 shijiebei2009

I have no idea. Give it a try.

LeEnno avatar Jun 29 '18 09:06 LeEnno

sorry, maybe I didn't say exactly. I mean, if alfred-terminalfinder does not work because of this script, I set this script first, and then alfred-terminalfinder does not work correctly.

shijiebei2009 avatar Jun 29 '18 09:06 shijiebei2009

I think I understood you there, but I'm afraid I can't make those scripts compatible myself. You may debug that yourself and pull request the fix.

LeEnno avatar Jun 29 '18 09:06 LeEnno

I will close this since it's probably out of date. If there are still issues lemme know.

LeEnno avatar Apr 12 '23 20:04 LeEnno