Jump to content

Pass to URL Scheme


Recommended Posts

Posted (edited)

Can someone point me to the documentation for "Pass to URL Scheme"? What values can you preface the query with?

 

I am trying to pass both the value of the notes field along with the contact's First and Last names. Is this possible?

Edited by adayzdone
Posted

If you know the URL scheme of the application that you need, then you can just run `open scheme://arguments/etc/whatever` in a bash script or as a terminal command. For instance, open up the terminal and type `open dict://test` Each application can define its own scheme (if the programmer chooses to do so). I'm not sure which ones you want (is this from the address book? Are you opening contacts? Where?).

 

You might have to parse the {query} variable or at least you need to construct it according to the individual scheme specifications.

Posted (edited)

Each application can define its own scheme (if the programmer chooses to do so).

 

Hi Shawn,

Thanks for the reponse. How do you find which applications support a scheme, and if so, what it is?

 

I am trying to create a custom action for Contacts that is triggered by the Notes field. However, rather than just sending the value of the Notes field, I want the First and Last names as well.... or at least a reference to the contact so I can parse it myself.

Edited by adayzdone
Posted

There is an article here on the Address Book's url scheme. Generally, to find out if it has one, I just hop to Google and search for the application + URI scheme (or URL scheme). Not all of them have one, so that's just the best way. Apple probably has some better documentation somewhere.

 

I'm not too sure what else you're looking for or how you mean that you want to trigger something from the Notes field (do you mean search the notes field for the results and then grab the first and last names to parse the content? Or something else?).

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