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.

Preserve text case in Open URL

Featured Replies

Here is a snippet of my calculation contained in the Open Script command...

"&city=Somerville&state=MA&country=United States"

it goes to the browser as

"&city=somerville&state=ma&country=united states"

I wish to preserve the text case as the user types it. How?

  • Author

I meant "Open URL" not Open Script. Anyone have an idea for this one?

AppleScript preserves the case. It's a little tricky, because it uses the "open location" command, which FileMaker doesn't support; neither does the Finder. But this works (someone else came up with "loginwindow" idea). OS X only.

set theURL to cell "theURL"

tell application "loginwindow" to open location theURL

  • 3 weeks later...

Thank you, Fenton, for the tip. How do you make this line work?

set theURL to cell "theURL"

I have replaced "theURL" with the address of the calculation field that holds the URL. This address was in the form of Table::FieldName. It didn't work. Do I have to specify the database as well? Or is there another way to specify a cell?

If it's a related field you either have to use syntax that allows AppleScript to get the related field into a variable first, or go to a layout of the related table (where the field is native), or put the related field on the current layout (can be hidden).

But the simple Table Occurrence Name::Field Name (it's not necessarily the table name) won't work if the field's not on the layout. That's probably what's wrong.

Thank you.

Just putting the field on the layout did the trick.

However, the "cell" always refers to the first record and not the currently selected one. Would you know if there is a way to specify that the selected record be chosen instead?

Otherwise I would have to resort to creating a new layout displaying only the record of choice which is extremely cumbersome given the large number of URL calls I make.

Oops. I was only paying attention to the Open part. This assumes you're on the right layout, and the related field is on it.

tell current record of window 1

set theURL to cell "TO::theURL"

end tell

tell application "loginwindow" to open location theURL

  • Author

Wonderful solution, Fenton, thank you!

Thank you so much, Fenton.

You saved me hours of banging my head against the wall.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.