how can i after browsing for folder make it alias

Basically i would like to change me script that saves the folder shoosen so that i can use it in a script.


tell application "Finder"
	activate
	choose folder with prompt "Choose a folder to rename from"
	set theFolder to return
	
end tell

This prompts and lets you chose folder but dont think that i am returning it right.

Normally i use a defined folder. i.e.
property theFolder: "path:to:folder: as alias

and i would like to change that to what ever is returned from the prompt.

Something like this? I’ve removed the Finder because it isn’t required (choose folder is provided by Standard Additions). You can put it back in if you have other reasons for including it.

property theFolder : ""
set theFolder to (choose folder with prompt "Choose a folder to rename from")

– Rob

thats exactly what i want cheers!!

:stuck_out_tongue: