Acidham Posted January 24, 2017 Share Posted January 24, 2017 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
vitor Posted January 24, 2017 Share Posted January 24, 2017 Mind sharing your workflow? Because & works fine for me: <quicklookurl>https://maps.google.de/maps?q=35.6813023,139.7640529&output=embed</quicklookurl> Well, almost fine (but that’s not Alfred’s fault): Link to comment
Acidham Posted January 25, 2017 Author Share Posted January 25, 2017 (edited) 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 & 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 January 25, 2017 by Acidham Link to comment
vitor Posted January 25, 2017 Share Posted January 25, 2017 7 hours ago, Acidham said: any idea? Not without having access to your workflow. Otherwise I’m just shooting in the dark. I can’t diagnose the problem further without using the the workflow. Link to comment
Acidham Posted January 25, 2017 Author Share Posted January 25, 2017 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. vitor 1 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now