fishtech Posted November 13, 2007 Posted November 13, 2007 (edited) 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 November 13, 2007 by Guest
Matthew F Posted November 14, 2007 Posted November 14, 2007 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.
fishtech Posted November 14, 2007 Author Posted November 14, 2007 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.
Recommended Posts
This topic is 6219 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 accountSign in
Already have an account? Sign in here.
Sign In Now