Re: move all desktop jpegs to a folder - OS X
Re: move all desktop jpegs to a folder - OS X
- Subject: Re: move all desktop jpegs to a folder - OS X
- From: Irwin Poche <email@hidden>
- Date: Sun, 04 Nov 2001 23:01:10 -0600
It looks like a selection can't be set on the OS X desktop. This script
doesn't use a Finder selection...
tell application "Finder"
activate
set theJPEGs to files in desktop whose file type is "JPEG"
if (count of (theJPEGs)) > 1 then
set newFolder to (text returned of (display dialog "Folder Name ?"
default answer "JPEG Folder"))
make new folder at desktop with properties {name:newFolder}
move theJPEGs to folder newFolder
end if
end tell