Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

unable to delete or rename file

Featured Replies

  • Newbies

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?

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...

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 ???

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...

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.

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

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...

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,

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.