• 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
New window with "select"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

New window with "select"


  • Subject: New window with "select"
  • From: Irwin Poche <email@hidden>
  • Date: Sun, 17 Nov 2002 11:48:04 -0600

With a selection of files on the Desktop, the script below creates a new
folder and moves the selection into it. The last statement has the
undesired effect of opening a Desktop window and selection the newly created
folder.

Can anyone tell me how to avoid this and simply have the new folder selected
on the desktop?

tell application "Finder"
set x to (make new folder)
move selection to x
select x
end tell
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Excel scripting question
  • Next by Date: Re: Excel scripting question
  • Previous by thread: Re: Excel scripting question
  • Next by thread: Launch Default Mail App attached the file
  • Index(es):
    • Date
    • Thread