Skip to main content
Module

x/alfredo/mod.ts>AlfredEnv

Your Alfred workflows on steroids with Deno
Latest
interface AlfredEnv
import { type AlfredEnv } from "https://deno.land/x/alfredo@0.4.3/mod.ts";

Properties

optional
workflowName: string

Name of the currently running workflow

optional
workflowVersion: string

Current workflow version

optional
workflowUid: string

Unique ID of the currently running workflow

optional
workflowBundleId: string

The bundle ID of the current running workflow

optional
workflowData: string

Location of the non-volatile workflow data

Recommended location: ~/Library/Application Support/Alfred/Workflow Data/[bundle id]

optional
workflowCache: string

Location of the volatile workflow data

Recommended location: ~/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/[bundle id]

optional
preferences: string

This is the location of the Alfred.alfredpreferences. If a user has synced their settings, this will allow you to find out where their settings are regardless of sync state.

optional
preferencesLocalHash: string

From Alfred 2.4, non-synced preferences are moving out of the standard macOS preferences due to a Yosemite issue with prefs inheritance between Alfred Preferences.app and Alfred 2.app.

Any local (Mac-specific) preferences are now stored within Alfred.alfredpreferences under …/preferences/local/[alfred_preferences_localhash]/ instead and use Alfred's own preferences framework.

optional
theme: string

Current theme used

optional
themeBackground: string

If you're creating icons on the fly, this allows you to find out the colour of the theme background.

optional
themeSelectionBackground: string

The colour of the selected result.

themeSubtext: number

Find out what subtext mode the user has selected in the Appearance preferences.

Usability note: This is available so developers can tweak the result text based on the user's selected mode, but a workflow's result text should not be bloated unnecessarily based on this, as the main reason users generally hide the subtext is to make Alfred look cleaner.

optional
version: string

Find out which version and build the user is currently running. This may be useful if your workflow depends on a particular Alfred version's features.

optional
versionBuild: string

Find out which version and build the user is currently running. This may be useful if your workflow depends on a particular Alfred version's features.

debug: boolean

If the user currently has the debug panel open for this workflow. This variable is only set if the user is debugging