Alfred v0.3.0 Alfred View Source
A library for interoperating with Alfred, intended to make it easy to create tools and workflow extensions for Alfred in Elixir.
This module contains functions to access the Alfred Script Environment variables.
Link to this section Summary
Functions
Retrieves the Alfred version build number
Determines if Alfred is debugging the workflow
Retrieves the Alfred preferences information
Retrieves the Alfred theme information
Gets the Alfred version running the workflow
Gets the Alfred version text
Retrieves the Alfred workflow information
Link to this section Types
Link to this section Functions
Retrieves the Alfred version build number.
From the environment variable alfred_version_build
.
Determines if Alfred is debugging the workflow.
From the environment variable alfred_debug
.
Retrieves the Alfred preferences information.
Returns a map with the following keys:
:path
— from environmentalfred_preferences
:localhash
— from environmentalfred_preferences_localhash
Retrieves the Alfred theme information.
Returns a map with the following keys:
:background_color
— from environmentalfred_theme_background
:id
— from environmentalfred_theme
:selection_background_color
— from environmentalfred_theme_selection_background
:subtext
— from environmentalfred_theme_subtext
Gets the Alfred version running the workflow.
Returns a Version
containing the version information parsed from environment alfred_version
.
Gets the Alfred version text.
From the environment alfred_version
.
Retrieves the Alfred workflow information.
Returns a map with the following keys:
:bundleid
— from environmentalfred_workflow_bundleid
:cache_path
— from environmentalfred_workflow_cache
:data_path
— from environmentalfred_workflow_data
:name
— from environmentalfred_workflow_name
:uid
— from environmentalfred_workflow_uid
:version
— the information from:version_text
parsed into aVersion
struct:version_text
— from environmentalfred_workflow_version