Jump to content
Tyler Eich

Location Services for Workflows

Recommended Posts

It is very difficult to get a user's current location via workflow. Alfred, though, can access OS X's Location Services API. A {location} token would make retrieving this data faster, more accurate, and easier. {location:latitude} and {location:longitude} would be cool too  :P

 

Cheers  :)

Share this post


Link to post
Share on other sites

Does anybody have a working solution for retrieving the current user location from a workflow?

 

I've tried using command-line binaries (e.g. whereami), but it seems OS X does not properly register them under Location Services settings unless they are installed as an app. For example, the System Preferences Privacy pane appears buggy when using such binaries, with the binary's entry disappearing at random.

 

Any help would be greatly appreciated! :)

Share this post


Link to post
Share on other sites

It is very difficult to get a user's current location via workflow. Alfred, though, can access OS X's Location Services API. A {location} token would make retrieving this data faster, more accurate, and easier. {location:latitude} and {location:longitude} would be cool too  :P

 

Cheers  :)

 

I'm going to register my disagreement with Alfred providing location services to workflows. Yes, it would be very, very helpful to workflow creators. But turning it on for Alfred would turn it on for _all_ workflows, and I, personally, don't want that.

Share this post


Link to post
Share on other sites

I'm going to register my disagreement with Alfred providing location services to workflows. Yes, it would be very, very helpful to workflow creators. But turning it on for Alfred would turn it on for _all_ workflows, and I, personally, don't want that.

 

I don't want all workflows to have access to my location either.

 

My thought was a permissions system, similar to what OS X implements for apps. Like a checkbox for the workflow that enables the {location} token. On installation (or first run), Alfred asks the user to grant access to location data; if the user denies access, Alfred replaces {location} with an empty string (or something similar). The script is responsible for handling the denied request.

 

It really is a lot to ask, but I've flipped the internet upside down looking for a stable, consistent way to get user location from a script. I've found all manner of command line tools, but none work consistently when bundled in a workflow. I've even build custom app bundles for this purpose; these don't work in a workflow folder either.

Share this post


Link to post
Share on other sites

Join the conversation

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

Guest
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...