Newbies imran84 Posted January 17, 2013 Newbies Posted January 17, 2013 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?
Opotoc Posted January 21, 2013 Posted January 21, 2013 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
jsubiros Posted February 17, 2013 Posted February 17, 2013 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
Opotoc Posted February 18, 2013 Posted February 18, 2013 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
jsubiros Posted March 27, 2013 Posted March 27, 2013 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.
brian rich Posted March 27, 2013 Posted March 27, 2013 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
jsubiros Posted April 2, 2013 Posted April 2, 2013 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.....
jsubiros Posted April 30, 2013 Posted April 30, 2013 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,
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now