• 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: i want to delete all files and folders that are unlabeled
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: i want to delete all files and folders that are unlabeled


  • Subject: Re: i want to delete all files and folders that are unlabeled
  • From: Michelle Steiner <email@hidden>
  • Date: Mon, 6 Aug 2007 09:01:24 -0700

On Aug 6, 2007, at 8:39 AM, <email@hidden> <email@hidden> wrote:

(*The first handler is the "on open" handler that runs when you drop
the top folder
on the Neutron Bomb script droplet. The critical thing to recall in the
"on open" handler is that it doesn't return a reference to the item you
drop on it, but it returns a LIST of references to the item or items
you d ropped on it. In this case, we will only be dropping a single
folder on it -- the one at the top of our folder hierarchy -- so
*)

A little-known trick is to use curly braces in the on-open line; it will then pass only the first item dropped, instead of a list; for example:


on open {TheFolder}

-- Michelle

--
America: A nation of people avoiding moderation like it's the plague.


_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >i want to delete all files and folders that are unlabeled (From: <email@hidden>)

  • Prev by Date: i want to delete all files and folders that are unlabeled
  • Next by Date: Re: GUI Scripting to click on "Detect Displays"
  • Previous by thread: i want to delete all files and folders that are unlabeled
  • Next by thread: Text file timeout save and close
  • Index(es):
    • Date
    • Thread