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.

mounting smb network during save as script.

Featured Replies

  • Newbies

The file I am using is stored on our work server. It is accessed by those using Macs and PCs. For PCs the script works fine without any problems saving to the server, but I cannot get it to save to the server using a Mac.

The FileMaker Script I used for PCs is:


Set Variable [$date; Valule:Let (today = Get (CurrentDate); Year (today) & "_" & Month (today) & "_" & Day (today))]

Set Variable [$time; Valule:Let (time = Get (CurrentTime); Hour (time) & "_" & Minute (time) )]

Set Variable [$filename; Valule:Get ( FileName ) & "-" & $date & "-" & $time & "-" & Get ( AccountName ) & ".fp7"]

Set Variable [$outputpath; "filewin://ctn2k3goldman/shared/Fetal Database/Fetal Database Backups/" & $filename]

Save a Copy as ["$outpath";copy]

I was suggested to us an AppleScript to tell the OS to mount the server with a specific account name and password. Unfortunately the person who suggested doing it this way and I do not know how to do AppleScript.

You should not be using FM this way. Filemaker is either shared peer-to-peer or hosted using FM Server. It is not multi-launched from a shared volume.

Furthermore, copying a file that is in use this way is exposing yourself to file corruption.

You need to read up on how to setup a multi-user FM system.

What you need is FileMaker Server and let it take care of the backups for you.

But to answer your question in general: it doesn't work for the mac users because the path you specify is valid for Windows users only (filewin:/...)

You need to construct the correct path for the Macs and then in the script detect if the user is using Windows or OSX and branch accordingly.

To get the path correct for the Macs: the easiest way of doing is from a Mac because it takes all the guesswork out of it.

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.