• 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: Tim Mansour <email@hidden>
  • Date: Fri, 17 Apr 2009 19:04:38 +1000

> set deletePath to POSIX path of (path to documents folder) & "__MACOSX"
> tell application "System Events"
> delete deletePath
> end tell

Why bother with POSIX paths? Why not just:

tell application "Finder" to delete alias ((path to documents folder
as text) & "__MACOSX")

--
Tim Mansour
 _______________________________________________
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:
    • Writeing text to file in UTF-16 little endian
      • From: "Sutapalli Satyanarayana" <email@hidden>
    • Re: Simply deleting a fil
      • From: Michelle Steiner <email@hidden>
    • Re: Simply deleting a fil
      • From: "Sutapalli Satyanarayana" <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>)

  • Prev by Date: applescript & TextEdit : selecting minus sign (-) for type conversion?
  • Next by Date: Re: applescript & TextEdit : selecting minus sign (-) for type conversion?
  • Previous by thread: Re: Simply deleting a fil
  • Next by thread: Re: Simply deleting a fil
  • Index(es):
    • Date
    • Thread