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: Timothy Bates <email@hidden>
- Date: Mon, 05 Nov 2001 16:26:17 +1100
You CAN set the selection in the 10.1 finder, but you don't say
set selection to every file of folder (path to desktop folder)
You say:
tell application "Finder"
select every file of folder (path to desktop folder)
end tell
On 5/11/01 4:01 PM, "Irwin Poche" <email@hidden> wrote:
>
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
>
_______________________________________________
>
applescript-users mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/applescript-users
Dr Timothy Bates <
mailto:email@hidden>
Macquarie Centre for Cognitive Science (MACCS)
Macquarie University
Ph 61 (2) 9850 8623
Fx 61 (2) 9850 6059