• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: move all desktop jpegs to a folder - OS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: move all desktop jpegs to a folder - OS X (From: Irwin Poche <email@hidden>)

  • Prev by Date: Re: move all desktop jpegs to a folder - OS X
  • Next by Date: Re: when quit is not quit
  • Previous by thread: Re: move all desktop jpegs to a folder - OS X
  • Next by thread: Re: move all desktop jpegs to a folder - OS X
  • Index(es):
    • Date
    • Thread