Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

  • Newbies
Posted

I have been trying to use some of the file system functions provided in the ScriptMaster.fp7 demo file with a webdav, in scripts fired server-side, but with no success.

FileMaker Server 11

Mac OS 10.6.6

Plugin: 4.122

• The test scripts I have created successfully fire on a FMP client (11Adv), copying files both among external drives, mounted network resources, and a webdav resource.

• However, when I try to run these scripts-server (this is where they must run from for this project) targeted at the webdav, they return errors or no result.

• I do modify the file paths when running server-side to correctly reference the volumes and file locations.

• The server-side scripts DO work when only local or external drives ("/Volumes/...") are used, but NOT with the webdav.

• The ScriptMaster function ListAllFilesinDirectory() DOES return a path for the webdav when run on "/Volumes/". However, the path here does not work when plugged into a ScriptMaster function.

• I have tried using both CopyFile() and CheckWhetherFileExists() without success. I assume I am doing something wrong in trying to access the webdav or using the wrong path to it, since these functions execute correctly with other drives.

The text of the script line I am using is:

CheckWhetherFileExists( "/Volumes/webdav.name.com/pathtofile/file")

CopyFile( "/Volumes/drivename/pathtofile/file" ; "/Volumes/webdav.name.com/pathtofile/file" )

Note again that these functions fire correctly on a client using the webdav, but I need them on the server, and that the webdav is mounted on the desktop of the FMP server and shows up in the /Volumes folder.

Thanks for any suggestions!

John

Posted

I believe that this is a permissions issue on your server.

FileMaker server runs as a different user from the one you log in as. Mounted drives and volumes will need to be mounted for the user trying to access them, in this case as filemaker server. This can be tricky to set up if you're not working on a domain. The easiest solution is to set a username and password on your remote machine/webdav server that has access to the storage location, and then set your filemaker server to run as a user with the same password on your FMS machine.

  • Newbies
Posted

David,

Thanks for the reply and the suggestion. It does seem that permissions could be the problem.

I do not have access to or control the system that serves the webdav, so I cannot create a user there that FMS could use to access the resource.

Perhaps I could mount the webdav from within the script itself? I'm not sure how the FMS user would then view the webdav but perhaps it would allow access.

While I'm not a newbie to FM generally, this is something I have never attempted before, and it's a bit of stumbling around for me. I appreciate the pointer, and I'll continue looking in that direction. If you have any other suggestions, I'm certainly open to them.

Thanks again!

John

  • 1 month later...
Posted

I believe that this is a permissions issue on your server.

FileMaker server runs as a different user from the one you log in as. Mounted drives and volumes will need to be mounted for the user trying to access them, in this case as filemaker server. This can be tricky to set up if you're not working on a domain. The easiest solution is to set a username and password on your remote machine/webdav server that has access to the storage location, and then set your filemaker server to run as a user with the same password on your FMS machine.

I have really been struggling with this same issue. I have a couple of scripts that use Scripmaster external functions to interact with a Network Drive (a NAS). The scripts are used to list folder contents, copy, rename, and otherwise manipulate files on the NAS. These scripts work perfectly when I execute them manually from FMPro11 running on my FMServer hardware, but fail when I try to schedule them to run periodically on FMServer11. I too believe it is a permissions problem, and based on what I have read in this thread, I have tried creating every combination of matching username/password on my NAS and FMServer PC, but I can not get the server based Scripmaster scripts to access the files on the NAS. (I am operating in a WORKGROUP environment, using Windows 7 Pro on the FMServer platform.)

I would appreciate any specific direction, as I am feeling pretty dumb about now.

Thanks

  • 4 months later...

This topic is 4904 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.