October 14, 200916 yr I would like to know if there is a way or a sample file that will show how to grab a url from a web browser? Thank you
October 14, 200916 yr Author A Web Browser Sorry If the Web viewer does work I would like to know that as well. Thanks and Sorry I was not specific
October 14, 200916 yr No clue how to do it with a web browser - especially because you might have 20 of them open, which could be safari / ie / firefox / opera etc. and each of which would require a different methodology for obtaining the URL. Not to mention the fact that it would be again different on both OS's. The point is, getting a URL from a web browser just has no real context and so is problematic. Regarding a web viewer, it's much simpler. All you have to do is name your webviewer (in layout mode, bring up the object info window, select the webviewer and then give it a name). After that, whenever you're on the layout, you can obtain the url via the following function: GetLayoutObjectAttribute( "webviewer_object_name" ; "source" )
October 15, 200916 yr Author Thank You Genx. Is it possible just to get the web page address? Not all the other HTML? Just the url posted in the address bar?
October 15, 200916 yr Perform applescript: set AppleScript's text item delimiters to return tell application "Safari" to get URL of every tab of window 1 set theLinks to result as text copy theLinks to cell "Links" of current record
Create an account or sign in to comment