Alfred¶
The SVGtoPPT CLI can be used with Alfred 4 as a workflow for quick execution. It can also be found on Packal, a popular repository for Alfred workflows.
Prerequisites¶
macOS
Tested with 10.15.7
(Catalina) to 12.2.1
(Monterey)
Note
If you don't have Libre Office installed, SVGtoPPT can install it for you
Getting Started¶
- If you haven't yet, download & install Alfred with the button on their homepage
- Download the Alfred workflow file
Install¶
- Double-click the downloaded workflow file to open it in Alfred, then select Import
- Launch Alfred (default is
Cmd
+Space
)
Do you have Libre Office installed?
SVGtoPPT can install Libre Office for you.
Type or copy-paste this into Alfred followed by a space and a folder where you want to install SVGtoPPT:
svgtoppt install complete
If you want to install Libre Office yourself you can download it from their website or use Homebrew:
bashclass=underline
brew install --cask libreoffice
Type or copy-paste this into Alfred followed by a space and a folder where you want to install SVGtoPPT:
svgtoppt install basic
Usage¶
- Launch Alfred (default is
Cmd
+Space
) - Type
svg
, a space, and the name of your SVG file or directory - Select your file from Alfred's search results
- Workflow will work in the background and open the new PPT file in Keynote when finished
- Select all vectors
Ctrl
+A
- Copy (
Ctrl
+C
) and paste (Ctrl
+V
) shapes to other Keynote presentations
Customization¶
The workflow contains environment variables you can change. They are equivalent to the flags offered by the CLI.
Name | Default Value | Description |
---|---|---|
input_svg | none | Filepath of the SVG file to be converted |
template_ppt | where SVGtoPPT was installed | Filepath of the template PPT |
output_directory | Output directory where SVGtoPPT was installed |
Filepath of the directory where PPT files are output |
ppt_name | the name of the SVG file (e.g. my_logo.svg becomes my_logo.ppt ) |
The name of the PPT file that is output |
force_ppt | false |
false : creates a new, unique PPT file each time a command is runtrue : makes it idempotent; has the potential to overwrite an existing PPT file |
where_to_open | keynote |
Where the PPT file is opened in after it's created Options Don't open: none Apple Keynote: keynote Microsoft PowerPoint: power Libre Office: libre Apache OpenOffice: oo |
If you fill in the input_svg
environment variable, you can run SVGtoPPT without having to type an SVG file. In that case, type svg
into Alfred and hit return.