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

How can I get from the Calculation function the value found in DestinationFolder ?

tell application "Finder"

set DestinationFolder to (path to home folder as text)

end tell

Thanks!

  • Author

How can I get from the Calculation function the value found in DestinationFolder ?

tell application "Finder"

set DestinationFolder to (path to home folder as text)

end tell

Thanks!

Well I found that I can use something like Get (DesktopPath). I will see what else I can do with my calculation function. I had the idea to remove the word "Desktop". However, this will not work on a French OS.

I kind of wonder why you'd need this. As you've shown above, you can get the path easily with AppleScript; and you'd usually use such a Mac path via AppleScript; where you can easily get it (circular logic).

But, for calculation fun, this is a FileMaker to produce exactly the same text. A bit of a PITA, because you need to remove the first "/" in the entire path, then remove "/Desktop/" (which I guess you could just hardcode, but where's the fun in that).

Let ( [

DT_orig = Get (DesktopPath);

len = Length (DT_orig);

DT = Right (DT_orig; len - 1);

pos = Position ( DT; "/"; len; -2);

fm = Left ( DT; pos -1)

];

Substitute ( fm; "/"; ":")

)

  • Author

Thank you very much Fenton.

I am trying to do most of my function using FileMaker Calculation.

The reason I've needed this functionality is because the working folder I've created for my solution are under MacIntosh HD/User/Username/SubFolder1/SubFolder2.

I needed a way to quickly retrieve the MacIntosh HD/User/Username path. I have a field which, using the calculation you've provided me with to populate the image reference. Using this function I can now add the proper path.

It is now working, thanks again!

Daniel

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.