tell application "Finder"
set these to selection
set folderkind to kind of folder 1 of startup disk
set movetothisfolder to ""
repeat with this in these
if kind of this is folderkind then
if movetothisfolder = "" then
set movetothisfolder to this
end if
set these2 to every item of this
set biggestsize to 0
repeat with this2 in these2
if size of this2 > biggestsize then
set biggestsize to size of this2
set movethis2 to this2
end repeat
move movethis2 to movetothisfolder
end tell
Your email is never published nor shared. Required fields are marked *
You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
CAPTCHA: + seven = 13
Notify me of followup comments via e-mail
Subscribe without commenting E-Mail:
Finder: Move biggest file of folders to first folder
tell application "Finder"
set these to selection
set folderkind to kind of folder 1 of startup disk
set movetothisfolder to ""
repeat with this in these
if kind of this is folderkind then
if movetothisfolder = "" then
set movetothisfolder to this
end if
set these2 to every item of this
set biggestsize to 0
repeat with this2 in these2
if size of this2 > biggestsize then
set biggestsize to size of this2
set movethis2 to this2
end if
end repeat
move movethis2 to movetothisfolder
end if
end repeat
end tell