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.

Move File & Delete Folder

Featured Replies

Hi all

 

I have the advanced version of ScriptMaster.

 

I generated a plugin with some of the ScriptMaster File Management commands,

 

Check Whether File Exists

Copy File

DeleteFileOrFolder

Move or Rename File

etc

 

I added this plugin to a runtime solution, on startup, the runtime registers its own plugin. All fine.

 

I have a script that goes to a folder in Program Files, creates a new folder within it, then moves a few files around.

 

Tested it on my PC and a couple of others, all works fine.

 

A few other people running the runtime have reported errors. I have narrowed it down to the fact that they are not Admins.

 

If I try to do what the script it supposed to do manually (just in Windows outside of FileMaker or the Runtime) I tried creating the new folder and Windows gives the message "You'll need to provide administrator permission to copy to this folder" I click 'Continue' and the folder is created.

 

The plugin is obviously hitting this barrier in the background and never creating the folder and then never being able to move files around etc.

 

I cannot expect all users of the runtime to start changing permissions on Windows etc. Is there anyway with ScriptMaster to get around this issue?

 

Thanks

Ed

  • 1 month later...

I have a similar problem on a mac, cannot delete files or folders from scriptmaster plugin. I don't know why.

Hello,

 

I use ScriptMaster to check for files, move and delete them all the time on my Mac Runtime. Have you checked your paths that you are using?

hello again, i use this paths for Mac, but no run correctly: (fmsuit is the last folder)

 

 

filemac:/Macintosh HD/Users/CL/Documents/fmsuit/

 

 

/Macintosh HD/Users/CL/Documents/fmsuit

  • 3 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,
  • 7 months later...

Wow, This was a complete guessing game for me.  I would be nice if 360works documented this.  It would of saved me a couple of hours.

  • 1 month later...

Can this function be used to rename the current (running) file? So far I haven't been able to make it work.

Nothing can change the name of an open file.  FM / FMS has a lock on it and will not allow the OS to do that.

Why would you want that?

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.