Re: Delete
Re: Delete
- Subject: Re: Delete
- From: KOENIG Yvan <email@hidden>
- Date: Thu, 19 Aug 2010 18:02:52 +0200
Le 19 août 2010 à 17:55, Luther Fuller a écrit : I have used code like this ...
(folder menuFolderName of appSup) as alias tell application "System Events" to delete disk item (the result as text)
for a very long time to delete files and I had no problems. It just works. But, notice that it uses the phrase "disk item". This seems to be necessary, and I don't see it being used in the examples submitted in this thread.
Hello Luther
It seems that you read too quickly Axel's message :
--> alias "HD:Users:luttgens:Desktop:testfile" of application "System Events" disk item id (id of ASAlias) --> file "HD:Users:luttgens:Desktop:testfile" of application "System Events" end tell
Beside the first one, all those objects are valid references for a delete operation; for example:
Yvan KOENIG (VALLAURIS, France) jeudi 19 août 2010 18:02:47
|
_______________________________________________
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
References: | |
| >Delete (From: "R. Nelson Byrne" <email@hidden>) |
| >Re: Delete (From: André Renault <email@hidden>) |
| >Re: Delete (From: Axel Luttgens <email@hidden>) |
| >Re: Delete (From: Luther Fuller <email@hidden>) |