• 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
error "touch: y: Permission denied"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

error "touch: y: Permission denied"


  • Subject: error "touch: y: Permission denied"
  • From: Lists <email@hidden>
  • Date: Wed, 22 May 2013 13:55:23 -0700

I'm unsure of what I'm bumping into here. All my attempts to create an empty text file using the touch command in a "do shell script" fail with a permission error. The command, "touch /Users/j/Desktop/bud.txt," works fine in Terminal.

Anyone know of workarounds? It has to work in AppleScript for my needs.

set x to path to desktop folder from user domain
set y to (POSIX path of x) & "bud.txt"
do shell script "touch y"
-->error "touch: y: Permission denied" number 1

Thanks
J
 _______________________________________________
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: error "touch: y: Permission denied"
      • From: Christopher Stone <email@hidden>
    • Re: error "touch: y: Permission denied"
      • From: Christopher Nebel <email@hidden>
    • Re: error "touch: y: Permission denied"
      • From: John Day <email@hidden>
  • Prev by Date: Re: Applescript in the future
  • Next by Date: Re: error "touch: y: Permission denied"
  • Previous by thread: Re: Re(2): Applescript in the future
  • Next by thread: Re: error "touch: y: Permission denied"
  • Index(es):
    • Date
    • Thread