• 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: "R. Nelson Byrne" <email@hidden>
  • Date: Thu, 19 Aug 2010 16:36:28 -0700

I should mention that, finally having read the error message from System Events, I gave it what it asked for: a reference.

alias "Hard Time:Desktop Folder:DATAFILE.pdf" returning aFile
tell application "Finder" to get size of aFile
tell application "System Events" to delete (a reference to aFile)


This works just fine.

Moral: don't ask, just do what you're told.

Regards,

Nelson

_______________________________________________
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
  • Follow-Ups:
    • Re: Re Delete
      • From: Axel Luttgens <email@hidden>
    • Re: Re Delete
      • From: Steve Thompson <email@hidden>
  • Prev by Date: InDesign transformation
  • Next by Date: Re: Re Delete
  • Previous by thread: InDesign transformation
  • Next by thread: Re: Re Delete
  • Index(es):
    • Date
    • Thread