0

Is there any way to receive the address of the website that is opened in the Windows build of Safari?

I have tried to get it with DDE, and also by trying to directly access the edit control, to no avail. Is there maybe a COM inteface to do it?

Casady
  • 1,426
  • 3
  • 19
  • 39
  • You could look if Safari exposes the required information through [UI Automation](http://en.wikipedia.org/wiki/Microsoft_UI_Automation) similar to [this answer](http://stackoverflow.com/questions/5317642/retrieve-current-url-from-c-sharp-windows-form) which contains the steps for IE, Chrome and Firefox. – Simon Opelt Mar 30 '13 at 15:22
  • 1
    Simon, the answer you've pointed to uses edit.GetCurrentPattern(ValuePattern.Pattern)).Current.Value, which works only with Win32s and .Net Edits. Safari uses a WebKitEdit. – Casady Mar 30 '13 at 18:20
  • If you want Simon to be notified that you responded to his comment, you should use the @ character, otherwise he will not see your response unless he happens to visits this question again (which is unlikely). – Marjan Venema Mar 30 '13 at 19:37
  • you mean like this: @MarjanVenema ? – Casady Mar 30 '13 at 21:05
  • Yep that got into my inbox (click the icon to the left of "StackExchange" in the main site navigation header). Post owners (questions or answers) are automatically notified of all comments to their post. Which is why I don't have to use @ ... – Marjan Venema Mar 30 '13 at 21:20
  • What what I can tell, Safari doesn't make this information available in the way that the mainstream browsers do. – David Heffernan Mar 30 '13 at 21:47
  • @DavidHeffernan After fiddling around for 5 hours this was also my conclusion, and this is why I've created this question here. – Casady Mar 31 '13 at 01:40
  • If you do a search here on SO you'll find that the question has been asked again and again. The answer is always the same. – David Heffernan Mar 31 '13 at 08:33

0 Answers0