Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Hi,

I have been trying to get either xmlrpc or soap to work from an applescript. It has not worked. I get an appleevent time out when I try to save the script. I have also add a tell finder command to the start of the script and that does not seam to help.

set address to "new york city, new york"

tell application "http://rpc.geocoder.us/service/xmlrpc"

set response to call xmlrpc {method name:"geocode", parameters:{address}}

end tell

I think your address is not very good. This works:

set address to "1728 Meade Ave, San Diego, CA"

tell application "http://rpc.geocoder.us/service/xmlrpc"

set response to call xmlrpc {method name:"geocode", parameters:{address}}

end tell

-- You can also pull out the long and lat of the result (which is returned as a record within a list):

long of item 1 of response

lat of item 1 of response

[P.S. I'm on 10.4.11, so I don't know if you're having a Leopard problem.]

  • Author

Fenton,

Thanks for the quick response. I tried the code you have attached an get the same result.

When I entering it into the "preform applescript" options screen as native code. I hit ok and the spinning wheel comes up and after a minute I get "AppleEvent timed out" dialog box popping up.

I guessing this is a leopard thing, but I appreciate the try.

  • Author

I don not know if this helps anyone. I have taken the code and run it in Apple's Script Editor and it works fine on my Leopard machine. Unfortunately, I am new to Mac and FMP so this process is slow for me.

Yeah, you're right. I can't get it to work within FileMaker either. You could run it as an external AppleScript applet. But that's a little awkward. Here is another method, which uses AppleScript and command line. It gets the latitude and longitude, if that's what you're after.

Geocode.fp7.zip

  • Author

Fenton,

Thanks a bunch! : You have a definitely saved me allot of time. Being new, I would not have found that work around very easily.

I'm still a little surprised FMP did not support this type of call, but there probably is a good reason somewhere.

kmcb

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.