Welcome to the Alfred Folderify repository: An Alfred Workflow β¨
- MacOS
- Alfred 5. Note that the Alfred Powerpack is required to use workflows.
- Download the workflow
- Double click the
.alfredworkflow
file to install
Under the hood, the icon generation is made with folderify made by Lucas Garron.
Install folderify (using Homebrew) :
brew install folderify
Note that you have other installation options for folderify
There are 2 flows in this workflow :
- The first one allows you to assign an generated icon to one or multiple folder(s). It can be triggered by writing
foldicon
keyword. - The second allows you to generate
mask.icns
andmask.iconset
files from one or multiple mask(s). You can invoke this flow with theimgicon
keyword.
You can edit these triggers (flagged with a πΉοΈ
symbol) in the user configuration panel.
π Data Folder
. Set the folder path that will host output logs generated by folderify.
Note that if you change the
Data folder
location after generating logs, you should probably move the file created along in the new folder.
π¨ Color scheme
corresponds to the--color-scheme COLOR_SCHEME
folderify argument and allows you to change the color of the icon folder (slight difference).
π Auto
: will match current system settings.
π Dark
: --color-scheme dark will force dark mode.
π Light
: --color-scheme light will force light mode.
βοΈ Trim margins
corresponds to the--no-trim
folderify argument.
Yes π
: checkbox is ticked, transparent margins are trimmed from all 4 sides.
No π
: checkbox is unticked, --no-trim. Keeps transparent margins from the mask.
Here is a small schema to explain the principle :
π Detailed Logs
: corresponds to the--verbose
folderify argument.
Yes π
: checkbox is ticked, --verbose, detailed output.
No π
: checkbox is unticked, simple output.
-
π« Workflow action
. Open/Reveal in finder the log file, display a post notification or do nothing. -
π· Notification sound
. Set notification sound for this workflow.
As of version 1.4.0, this is no longer possible to generate old folder style (leopard / yosemite). You can still download v2 of folderify here.
Use
foldicon
to trigger this flow.
Choose the mask that will be used for generating the new icon and press β.
To reset a folderβs icon, open its Get Info panel then click the icon and press β«.
Use
imgicon
to trigger this flow.
For both flows, you can use the Alfred Buffer
to select multiple folder(s) (flow 1) or mask(s) (flow 2).
Alfred Buffer
basic commands are :
- β₯β to add a file to the buffer from Alfred's results.
- β₯β to add a file and move to the next item in your list of results.
- β₯β to remove the last item from the buffer.
- β₯β to action all items in the buffer.
- β₯β« to remove all items from the buffer.
To know more on how to use Alfred Buffer
, follow this link.
Note that
Alfred Buffer
is preferred compared to the{query}
, meaning that if you select a folder/image (by clicking on it or by pressing enter β) that is not included in the buffer, it will not be compressed.
For both flows you can use the corresponding Alfred Universal Actions
:
- If you want to start the first flow, select one or multiple folders and select
Modify folder icon
.
- If you want to start the second flow, select one or multiple folders and select
Create folder icon from mask
.
Check the logs of the folderify command under the π Data folder
. The log file contains the 3 parts :
- Date and time of the workflow launch.
- Workflow options.
- Folderify command detailed.
- Folderify output.
Note that each workflow run is separated by an horizontal rule.
MIT License Β© Benjamin Oddou