Jump to content

Get current folder to apple script


Recommended Posts

I want to use this script:

Quote

 

tell application "Finder"

set top_folder to (choose folder)

repeat with this_folder in (get folders of top_folder)

move every item of this_folder to top_folder

end repeat

end tell

 

 

But instead of "choose folder" just auto use the current selected folder.

 

How can i do that?

 

"get selection" doesn't work.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...