Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Capture current browser URL

Status
Not open for further replies.

Zirynx

Technical User
Mar 14, 2006
1
GB
Hello all. Tek-Tips newbie here!

I have a moderate knowledge of FMP (using v6, mac) but it is acquired very much on an 'as I need to know it' basis! So, my current problem is that I need to capture, via a script, the current browser URL, say, from Safari, and enter it into a field in the current record.

I'm familiar with the reverse route, of opening a an existing URL, using the 'Open URL' script function, but for the life of me, I cannot fathom out how to capture one. I've searched and found surprisingly little, other than the suggestion that it may involve Applescript! Ugh, another thing I know no more of than I really need to!

Any help, guidance or pointers much appreciated! Thanks!
 
Don't know how if you're on Mac, but in Windows I use AutoIt to do things like that.


To capture an URL you can make something along these lines:

Opt("WinTitleMatchMode", 2)
WinActivate("Internet Explorer")
WinWaitActive("Internet Explorer")
Send("{ALTDOWN}" & "d" & "{ALTUP}")
Send("^c")
WinActivate("FileMaker")
WinWaitActive("FileMaker")
Send("^v")
Send("{NUMPADENTER}")

JW
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top