Re: Dealing with packages: files or folders?
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