• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Delete
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Re: Delete
  • Next by Date: InDesign transformation
  • Previous by thread: Re: Delete
  • Next by thread: Re: Delete
  • Index(es):
    • Date
    • Thread