Skip 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.

Export a txt file to AFP server

Featured Replies

Hi,

Mac OSX10.4.x, FMP 8.5. and 8.1 Server Advanced.

I'm looking for a way to define a path in an export script.

A client machine opens a database from the server. The client needs to export a tab-separated text report to an AFP server volume. A new report will always overwrite an older report.

The path to the required location for the report is

myserver.mydomain.com/ServerVolume/ServerFolder/FileName

The client will always have privileges to mount ServerVolume with r/w access, but the problme is the volume may not be mounted at the time.

I tried using 'Open URL... afp://myserver.mydomain.com/ServerVolume' but this gives an error if the volume is already mounted.

How do I define the path in the export script step so the mount/mount-check and export steps are transparent to the user?

Thanks,

ft.

Edited by Guest

I'm not sure what you mean when you say that you get an error if the server is already mounted. In any case you might want to try a "Perform Applescript" step.

See this link for syntax on AFP automounts using AppleScript or the Terminal...

AFP automount

It works for me without errors regardless of whether the volume is already mounted. It will mount a volume without calling up the usual 'Connect to Server' style of dialogue box.

  • Author

Thanks.

mount volume "afp://[ip address]:548/[vol]

works great.

FWIW "Open URL..." gives a message "You are already connected to this server volume" The error message comes from the 'connect to server' dialog box so can't be trapped.

Thanks again,

ft.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.