Jump to content

Opening the terminal app configured for Alfred's use

Recommended Posts

I know i can write Applescript to open Terminal or iTerm, but I'm interested to know if i can use the Alfred-configured choice for the 'shell command' and 'open terminal here' features.

Share this post

Link to post

Sorry for the time lapse in responding and the lack of clarity!


I have a workflow that launches a terminal session, but I don't want it to assume which terminal application to use. Instead, I would like to choose which terminal application to launch based on Alfred's own 'Terminal/Shell > Application' setting (basically, either launch iTerm2 or Terminal.app based on this setting).

Share this post

Link to post
Just read it here :


~/Library/Application Support/Alfred 2/Workflow Data/Alfred.alfredpreferences/preferences/features/terminal/prefs.plist


Read the value of the key 'application', if value is 0, it's Terminal, if it's 1, it's iTerm, 2 = custom

If custom is selectioned, read value of key 'custom'

Share this post

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...