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

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

Recommended Posts

  • Newbies
Posted

Hi All,

 

I am having a database hosted on a FMserver and need to delete/rename a file which is present on the server itself. I am using delete function of scriptmaster but i am not able to delete it. It is returning me a value as '0'. It is not able to find the path of the file. Whenever i enter the path it is changing the file on my machine and not on the server (both have same path). How to fetch the correct path for a file on the server?

Posted

Hi,

 

Have you checked the permissions? FM Server has only limited access to the file system, basically only the documents folder (and another one, I forgot) in the server folder itself.

 

On Mac you may change permissions to give FMS access to any folder but I never tried on Windows.

 

Best,

Alexander

  • 4 weeks later...
Posted

I have the same error, but not in server, in local mac. The same plug-in works correctly in a win 7 but not on a mac, they attach the same database in a server.

 

Any help ???

Posted

Two machines - sames path,

is one volume probably mounted on the other machine?

check /Volumes/

Terminal

open /Volumes/

 

This shows all volumes on your machine, in case of conflicting names the volume still shows up in Finder with its name, but the path is different:

 

i.e. Finder:

HD

HD

 

/Volumes/: 

HD

HD-1

  • 1 month later...
Posted

hello again,

 

I mean i try to delete folder or files in some local machines. The database is on the server, but i want to delete in the local hard disk of my mac, by a script using scriptmaster. 

It runs correctly under windows, but doesn't do anything in a mac...... Maybe i need permissions in a mac, so i have to "say" it that filemaker pro can delete folders....

is it ???

 

help please,

 

joan.

Posted

Most likely a problem with the path to the file. The path structure used by Scriptmaster is not the same as Filemaker's, and is also different betweeen PCs and Macs 

 

As a test, set up a script which puts the result of a SelectFile dialog into a global variable, run it and select the file you are trying to delete.  Now use the stored path from the global variable in the delete function of Scriptmaster and see if that works.

 

Brian

Posted

Yes , i knew and i did it the good path on mac. But it seems Mac has no permission to delete files from a filemaker plug-in.....

  • 4 weeks later...
Posted

i found the "mistake"....

 
so, in mac os, the path has to be without "drive" system.
 
  • bad: "/macintosh hd/users/clb/example"
  • good: "/users/clb/example"
 
I use to work under windows and there u can put all the path. So, the text to use under mac can confuse at all.
 
Best regards,

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