You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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
Question marked as Top-ranking reply

Posted on Nov 3, 2020 1:06 PM

Use the following:


set a to (path to application support from user domain)


(185480)

Similar questions

2 replies

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.