Re: Simply deleting a fil
Re: Simply deleting a fil
- Subject: Re: Simply deleting a fil
- From: Emmanuel Levy <email@hidden>
- Date: Fri, 17 Apr 2009 19:25:55 +0200
Title: Re: Simply deleting a fil
At 9:45 AM -0700 4/17/09, Michelle Steiner wrote:
set foo to ((path to
desktop as text) & "untitled folder")
tell application "System
Events"
delete
folder foo
end tell
This one, though, puts the folder in the
trash:
tell application
"Finder"
set foo to item 1 of (get the
selection)
end tell
tell application "System
Events"
delete
foo
end tell
Thanks Michelle. I've always wondered why I never use System
Events - now I know.
Emmanuel
_______________________________________________
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