I'm using Pro 12.0v5 and wondered if its possibly to create code to take the address from FM and insert it into Apple Maps.app. Any advise on this will be helpful
You could use the “Open URL” script step and experiment with the parameters described at
In case anyone is confused, that documentation is targeted for opening the Maps app on iOS. But, as I found while writing a blog post on the topic, it does work just fine on Mac OS, too.
Awesome, got it working with the 'Open URL' in scripts and the code:"http://maps.apple.com/?q= " & tb_customers::houseno_name & " " & tb_customers::line_address_1 & "," & tb_customers::town & "," & tb_customers::county & "," & tb_customers::postcode
Thanks for your help guys
Just reading through your blog regarding opening maps or google maps. Ive used the url "http://maps.apple.com" on my mac and as you say it works fine but on the iOS opens up google maps, I changed the URL for the Maps:/ on the iOS its now fine but doesnt work on the mac now. Any ideas how to overcome this so as the Apple Maps.app opens on both OS's
As a suggestion, add a script step to check system platform.
What "bjbk" (and the blog post) said. Apple's documentation is imperfect. The sample file branches based on platform, too.
Not sure how I would go about that, any help would be greatful.
In the sample file on the blog post (the link is at the bottom of the post), look at the "Launch Directions in Apple Maps" script, which includes this:
If ( Get ( SystemPlatform ) = 3 ; // iOS
/* Else */ "http://maps.apple.com/"
& "?daddr=" // destination address
& GetAsURLEncoded ( $address )
By using the Get ( SystemPlatform ) function, you can test what platform either Mac or iOS.
From the Help Files:
Get ( SystemPlatform )
• 1 if the current platform is Intel-based Macs
• -2 if the platform is Windows
• 3 if the platform is iOS
• 4 if the platform is FileMaker WebDirect
Note For information on how functions evaluate differently on the host versus the client, search the FileMaker Knowledge Base available at http://help.filemaker.com.
So add an "If" script step:
UPDATE: jbante beat me to it! See his cacluation.
Thanks jbante and bjbk all sorted now allthough got a bit condused over the number of '/' in the string, not sure what they mean and why some of them are there.
These are escape characters. For example:
An inline comment looks like this:
// my code comment
FileMaker ignores all text after the 2 '/'
A multi line comment: /* FileMaker, Ignore all of this stuff */
FileMaker will ignore anything between the /* */
Hope this make sense. For further discussion, check out the help file.
Despite your following explanation, it seems that you are confusing slashes (comment characters) and backslashes (escape characters):
bjbk wrote:These are escape characters. For example:…Backslash Characters Are Treated As Escape Characters In FileMaker Pro Calculations
jdenver wrote:[…] '/' in the string, not sure what they mean
[…] '/' in the string, not sure what they mean
A relevant help article concerning comments would be: http://www.filemaker.com/13help/en/html/create_db.8.50.html
If that link still doesn't work, just enter 'C style comments' into your favorite search engine.
Correct, I used the wrong term in my explaination. Thank you.
erolst wrote: Despite your following explanation, it seems that you are confusing slashes (comment characters) and backslashes (escape characters):
I grabbed the wrong help article. So sorry for adding confusion.
Thank you for clarifying.
Sorry to hijack this thread, but has anyone managed to get multiple locations pin pointed on Apple Maps using an API??
I have some basic knowledge of FileMaker, but I need help with making a template for my personal needs using Apple Maps. I found that very complicated.
Please, drop a message if you can give me a hand with that. Im ready to pay too.
Have a lovely day!
Retrieving data ...