Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

Hi Folks

I try to copy a file from an FTP-Folder on a Raid to the documents folder of FileMaker Server Advanced 10 on a Mac OSX Server. The case is, that I will daily get files from an external source into the FTP folder, have to copy them to the documents folder as FileMaker allows only this folder for automatical import.

I tryed with the provided functions in ScriptMaster and do the following steps:

0. Register all needed functions

1. Set src and dest pathes (incl. FileName)

2. Check if file exits

3. Copy file

4. Import file

5. Delete dest file

I come until step 2, but there I get the information that the file does not exist. The variables defined are:

$src = /Raid/Backup Datenbanken/DataImport/NF_13.07.2010.txt

$dest = /Server HD/Library/FileMaker Server/Data/Documents/NF_13.07.2010.txt

In step 0. I register CopyFile, DeleteFileOrFolder, CheckWheatherFileExists as it comes with ScriptMaster.

I get until step 2 and there I check if the file exists. I get back a 0 - but the file is physically at the right location, it's there.

Can anybody give me a hand what might be wrong?

Thanks in advance!

Martin

Posted

You need to use valid OS X style paths. The ones you are using start with the name of the hard drive, which is not correct. If you're referencing an item on the startup disk, just start with a / and don't put the name of the hard drive, like this:

/Library/FileMaker Server/Data/Documents/NF_13.07.2010.txt

For hard drives other than the boot drive, prefix them with the word /Volumes, like this:

/Volumes/Raid/Backup Datenbanken/DataImport/NF_13.07.2010.txt

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