Jump to content

Export a txt file to AFP server


This topic is 6066 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This topic is 6066 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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