Jump to content

osascript Script Filter in Workflow


Recommended Posts

I have a number of VPN accounts that I need to log in and out of throughout the day, so I thought I would create a workflow where I could type "vpn" and then have Alfred show a list of VPN's I could choose from.  The list of choices would come from an AppleScript something like this:

 

 

tell application "System Events"
    set np to network preferences
    get name of every service of np whose kind is 12
end tell
 
This seems like a job from a Script Filter using osascript, but I can't find any information on what that AppleScript should return to get Alfred to display the list of results.  It says "The custom filter must return results in a specific order.  See the documentation for more information."  Unfortunately, I can't find any such documentation.  
 
Any guidance on how to do this?
 
Thanks,  
Rob
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...