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.

copy all files from one folder & paste all files into another folder overwriting same files

Featured Replies

Hello ,

By using Applescript script step i want to copy all files from folder name "anj"(Folder name is constant)which is onto Public folder & paste all files into another folder having name "anj" which is in Library folder .if any file is existing then without giving any message it will overwrite that file.

Thanks,

Disclaimer: Overwriting files with no warning is a little dangerous. You are responsible for what happens (not me).

It will however only overwrite matching files, so pretty safe (as these things go).

The following will create the "anj" folder in the user Library folder. And it will move files from the user Public folder. If you want to use the computer level folders then follow the directions in the comments. Curiously the defaults are opposite on the two folders, so you have to add or remove a phrase to switch levels (there is also a system level, stay away from that).

You could add an alert to tell you if there's no files in the Public folder to move. But likely you don't care.

set pub to (path to public folder) as text

-- default is user Public folder (add "from local domain" for computer Library folder)

set pub_anj to pub & "anj"

set lib to (path to library folder from user domain) as text

-- default is computer Library folder (remove "from user domain")

set lib_anj to lib & "anj"

tell application "Finder"

if not (exists folder lib_anj) then

make new folder at lib with properties {name:"anj"}

end if

move files of folder pub_anj to folder lib_anj with replacing

end tell

  • Author

Thank you very much.....

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.