I'm new to AppleScript and after doing:
set folder_name to "New_Folder"
tell application "Finder" to make new folder at desktop
set my_folder to result as alias
tell application "Finder" to set the name of my_folder to folder_name
get my_folder
I get: alias "/Users/frank/Desktop/untitled folder"
I thought alias was dynamic, why my_folder reference is not changing after renaming the folder?
i.e. alias "/Users/frank/Desktop/New_Folder"
How can I accomplish that?