Expand description
Useful environment variables in Alfred workflows.
See https://www.alfredapp.com/help/workflows/script-environment-variables/
§Usage
This crate is re-exported from the powerpack
crate, so you can access it
using powerpack::env
.
use powerpack::env;
let cache_dir = env::workflow_cache();
Functions§
- is_
debug - Whether or not the user currently has the Alfred debug panel open.
- preferences
- The location of the
Alfred.alfredpreferences
directory. - try_
workflow_ cache_ or_ default - The workflow cache directory or sensible default value.
- try_
workflow_ data_ or_ default - The workflow data directory or sensible default value.
- var
- Fetches the environment variable
key
from the current process. - var_os
- Fetches the environment variable
key
from the current process. - version
- The Alfred version that is currently running.
- version_
build - The Alfred build version that is currently running.
- workflow_
bundle_ id - The bundle ID of the currently running workflow.
- workflow_
cache - The recommended directory for volatile workflow data.
- workflow_
cache_ or_ default - The workflow cache directory or sensible default value.
- workflow_
data - The recommended directory for non-volatile workflow data.
- workflow_
data_ or_ default - The workflow data directory or sensible default value.
- workflow_
name - The name of the currently running workflow.
- workflow_
uid - The unique ID of the currently running workflow.
- workflow_
version - The version of the currently running workflow.