defaults write com.apple.finder AppleShowAllFiles ON
Now it works
tell application "Finder" to get folder ".spring" of home
#folder ".spring" of folder "username" of folder "Users" of startup disk of application "Finder"
…
defaults write com.apple.finder AppleShowAllFiles OFF
Now it doesn’t
tell application "Finder" to get folder ".spring" of home
#Can’t get folder ".spring" of folder "username" of folder "Users" of startup disk of application "Finder"
I need to copy a file to that location.
I would avoid the Finder in this case if possible.
do shell scriptshould be able to do what you want.