AppleScript path to application support

Hi, this script works but the folder I want to move "Omnis" ends up in the global "application support" folder.

I'm trying to get it moved to the users "application support" folder.


I can't figure out how to define, and set, the path to [current user]/Library/application support


-----


set dT to (path to desktop) -- this returns the current user's desktop path


set a to (path to application support) -- this returns the current user's "application support" folder


tell application "Finder"


set sourceFolder to folder "Omnis" of dT


set destFolder to folder a


move sourceFolder to destFolder with replacing


end tell



Mac mini, macOS 10.15

Posted on Nov 3, 2020 12:35 PM

Reply

Similar questions

2 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

AppleScript path to application support

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.