Newbies Ivan Markovic Posted March 28, 2002 Newbies Posted March 28, 2002 I need to send a 'request' to a URL but I don't want to loose focus from FMPro. Everything I have tried on Mac and PC takes me off to the Browser! I don't want to go off to the browser but I want the hit to the URL to be made. The request causes a field to be updated on my webserver and allows basic comms between the FMPro database and the web server. Any ideas?
djgogi Posted March 29, 2002 Posted March 29, 2002 quote: Originally posted by Ivan Markovic: I need to send a 'request' to a URL but I don't want to loose focus from FMPro. Everything I have tried on Mac and PC takes me off to the Browser! I don't want to go off to the browser but I want the hit to the URL to be made. The request causes a field to be updated on my webserver and allows basic comms between the FMPro database and the web server. Any ideas? On Mac try this code: OpenURL[your URL, no dialog] performAppleScript[tell me to activate] HTH Dj
pspafford Posted March 31, 2002 Posted March 31, 2002 Hey Ivan. I don't if it works on the Mac, but this script seems to work on the PC: Open URL ["http://mandolincafe.com"] Pause/Resume Script ["0:00:05"] Send Message ["FileMaker Pro.exe","aevt","odoc"] The Send Message step opens the file FileMaker Pro.exe. (Make sure to click the Bring target application to foreground option). I included the five-second pause because Internet Explorer wants to come to the foreground once the page is loaded, but the Send Message brings FM to the foreground immediately. So you need to give IE five seconds (or whatever is appropriate for your computer) to do it's thing, then FM can take over.
Recommended Posts
This topic is 8277 days old. Please don't post here. Open a new topic instead.
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