Jump to content

URL with ampersand (&) in XML arg for quick look


Recommended Posts

I am trying to implement script filter with a quick look in XML arg but I always receive a parse error which is caused by ampersand sign. 

 

In the forum there is a pointer to http://stackoverflow.com/questions/1328538/how-do-i-escape-ampersands-in-xml-so-they-are-rendered-as-entities-in-html and I already tried to use & and & and the parsing is possible but quicklook cannot open the URL. 

 

The URL that needs to get added to XML arg for Quicklook: https://maps.google.de/maps?q=35.6813023,139.7640529&output=embed

 

 

 I am using applescript and use bash with do shell script. 

 

Does anyone else had the same problem and know how to work around?

Link to comment

Sry wrong URL and you are right its not the fault of Alfred. You can use any other URL because the one that I am using is an Google API call to Maps with API Key. 

 

I tried with <quicklookurl> and &amp; but it works only for the first quicklook call but any other will fail with error Parameter is missing. I need to restart Alfred and then it works again for the first time. any idea?

Edited by Acidham
Link to comment

resolved: It seems it is caused due to the response delivered from Google Map API is an image which leads to some strange behaviours. I implemented it now in a way were I save the image first and then use it in quicklook. With this workaround the image will be displayed quite fast. 

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