• 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: Simply deleting a fil
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simply deleting a fil


  • Subject: Re: Simply deleting a fil
  • From: Christopher Nebel <email@hidden>
  • Date: Fri, 17 Apr 2009 14:02:23 -0700

On Apr 17, 2009, at 11:00 AM, Luther Fuller wrote:

It's because you are not working with the correct syntax and correct items.

So I experimented more. It seems that the correct syntax is ...

tell application "System Events" to delete disk item (itemAlias as text)

In other words, 'disk item' needs to be specified as a text path.
But when I looked at the System Events dictionary, it's not clear that this is required.

When I read:

disk item n [inh. item] : An item stored in the file system

I understand that 'n' means name and I never thought that a name may be other thing than a string.

Probably because I'm a mathematician, but I would have thought that 'n' means "number" or "nothing" (or "nonsense"). It would be clearer if the dictionary said something like ...


	disk item [text], path to disk item

Wouldn't it?

It's a dictionary -- the "n" is for "noun".


--Chris Nebel AppleScript Engineering _______________________________________________ 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: 
 >Re: Photomerge (From: Stan Cleveland <email@hidden>)
 >Simply deleting a fil (From: Satyam Satyanarayana <email@hidden>)
 >Re: Simply deleting a fil (From: Yvan KOENIG <email@hidden>)
 >Re: Simply deleting a fil (From: Tim Mansour <email@hidden>)
 >Re: Simply deleting a fil (From: Michelle Steiner <email@hidden>)
 >Re: Simply deleting a fil (From: Luther Fuller <email@hidden>)
 >Re: Simply deleting a fil (From: Yvan KOENIG <email@hidden>)
 >Re: Simply deleting a fil (From: Luther Fuller <email@hidden>)
 >Re: Simply deleting a fil (From: Yvan KOENIG <email@hidden>)
 >Re: Simply deleting a fil (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Simply deleting a fil
  • Next by Date: Re: Simply deleting a fil
  • Previous by thread: Re: Simply deleting a fil
  • Next by thread: Write Text file in Little Endian UTF-16 format
  • Index(es):
    • Date
    • Thread