Re: Deleting Folder Contents
Re: Deleting Folder Contents
- Subject: Re: Deleting Folder Contents
- From: Luther Fuller <email@hidden>
- Date: Mon, 11 Oct 2010 12:47:18 -0500
On Oct 11, 2010, at 11:46 AM, Jim Thompson wrote: Why is it 'every item of disk item'?
Isn't it every item of folder or every item or disk?
I've tried many variations on that line. probably tried that, too.
On Oct 11, 2010, at 11:52 AM, Axel Luttgens wrote: Something like this works here:
tell application "System Events" delete (get disk item "x" of folder "a" of desktop folder) end tell
I'm trying to delete 'every item' of the folder without inquiring into its name. I suppose I could get a list of the items in the folder, then delete each item in a repeat loop. But, it ought to be simpler.
I have tried both ...
tell application "System Events" get every item of disk item (folderAlias as text) delete the result end tell
and
tell application "System Events" get every item of folder (folderAlias as text) delete the result end tell
Neither works.
|
_______________________________________________
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