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?

Share this post

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...