• 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: Dealing with packages: files or folders?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dealing with packages: files or folders?


  • Subject: Re: Dealing with packages: files or folders?
  • From: "Gregory J. Smith" <email@hidden>
  • Date: Fri, 29 Jul 2005 23:05:17 -0600

I tried that. It still complained as if it couldn't tell what a package was.

Gregory J. Smith
email@hidden
http://homepage.mac.com/gregjsmith


On Jul 28, 2005, at 5:40 PM, Christopher Nebel wrote:

AppleScript isn't the issue here -- the Finder is. The Finder attempts to make its scripting view match what you see in its GUI (this is generally considered to be a good thing); therefore, packages are not considered to be folders. However, they do still have elements, just like folders do (though the dictionary lies on this point), so you should be able to fix your script by saying "set folder_list to (every folder of the_folder & every package of the_folder)".

However, you should be very careful here. In general, doing a recursive file tree scan ignoring the package-ness of items is a bad idea -- packages have deliberately constructed contents, and mucking with them the same as you would with any other folder that just happens to be lying around is almost certainly wrong. Not that dipping into packages is verboten by any means, but what you ought to do is locate the packages first, and then process exactly those items.

_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Dealing with packages: files or folders? (From: "Gregory J. Smith" <email@hidden>)
 >Re: Dealing with packages: files or folders? (From: Christopher Nebel <email@hidden>)

  • Prev by Date: unixy paths to alias
  • Next by Date: Re: unixy paths to alias
  • Previous by thread: Re: Dealing with packages: files or folders?
  • Next by thread: Re: Applescript-users Digest, Vol 2, Issue 492
  • Index(es):
    • Date
    • Thread