Re: How to delete contents of folder in OS X?
Re: How to delete contents of folder in OS X?
- Subject: Re: How to delete contents of folder in OS X?
- From: John Delacour <email@hidden>
- Date: Tue, 15 Jul 2003 22:22:53 +0100
- Mac-eudora-version: 6.0a27
At 8:15 pm -0700 14/7/03, Michelle Steiner wrote:
On Monday, July 14, 2003, at 07:31 PM, Jack Wenrick wrote:
I have tried this on desktop folder (above), and folders on a disk
partition. Both give the same results. The folder gets trashed along
with the contents.
Ditto in 10.2.6
Nasty bug, that.
As Andrew has explained, this is no bug. 'contents' is a reserved
word and has a certain meaning in AppleScript. As a rule it is used
to resolve a reference.
contents of "car"
--> "car"
set c to a reference to "it"'s first character
--> character 1 of "it"
set s to c's contents
--> "i"
tell application "TextEdit"
contents of (a reference to document 1)
end tell
--> document 1 of application "TextEdit"
set {_list1, _list2} to {{}, {}}
repeat with i in words of "a b c"
set end of _list1 to i
set end of _list2 to contents of i
end repeat
{_list1, _list2}
--> {{item 1 of every word of "a b c", item 2 of every word of "a b
c", item 3 of every word of "a b c"}, {"a", "b", "c"}}
JD
_______________________________________________
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.