Jump to content

Custom Terminal script causing Alfred 5 to hang?


luckman212
 Share

Recommended Posts

I'm not sure where to post this so I'll start here. 

 

I'm using @vitor's custom iTerm script with Alfred 5.0.2.2073 and iTerm 3.4.16 on macOS 12.5.1 [21G83]

 

I noticed that if iTerm is not already running, any Terminal command action will fail and hang Alfred with a spinning beachball (I captured 2 spindumps of this just a few minutes ago in case you want me to send them in).

 

I've tried adjusting the delay value as suggested elsewhere but that did not make a difference. I understand this could be an iTerm or AppleScript bug, just wondering if anyone else has encountered it.

 

image.thumb.png.a4af690baf6002d3e000452a619723ad.png

Link to comment
Share on other sites

I know why this is happening. My iTerm settings are configured to launch iTerm without opening a new window by default. Because I want iTerm always running so I have it in my Login Items so it just launches and waits until I need it. 

 

But, the script doesn't account for this, so it launches iTerm and just waits forever for a window to appear (which never does...). 

 

I think I can adjust the script myself to account for this, I'll post a PR @vitor once I have it in case you want to incorporate the changes.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...