Jump to content

How do I add a command switch to open files?

Recommended Posts

Is it possible to add a command switch to opening files? E.g. I want to open a powerpoint file to slideshow mode. That will required I use a /s at the back of the command. 



Cheers Bernard Sia


No you can't do that, but if you are a Powerpack member, you could create a result action to do it. This would mean that you select the file in Alfred, press the right arrow, and you would be provided the normal list of options, plus your current one to "Launch in Slideshow Mode"

Link to comment
  • 3 weeks later...

In theory, it's simple enough to add command line options with Alfred (using a workflow), but PowerPoint on Mac doesn't appear to accept any command-line arguments. Indeed, you can't even just open a file with PP directly from the command line.

Opening files works fine with open -a 'Microsoft PowerPoint' /path/to/file, but PP ignores any arguments it's passed, e.g.: open -a 'Microsoft PowerPoint' /path/to/file --args /s has no effect.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...