• 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: A permission problem?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A permission problem?


  • Subject: Re: A permission problem?
  • From: "koenig.yvan" <email@hidden>
  • Date: Sat, 20 Sep 2014 22:24:29 +0200


Le 20 09 2014 à 21:57, okn <email@hidden> a écrit :


Hi & good day,

I’m still struggling with this script, the part that breaks is:


do shell script "echo " & (quoted form of ExportList) & "|tr -d \"\\t\"|/usr/local/bin/dayone/dayone new”


Then error message:


--------------------------------..————————————————

OmniFocus got an error: sh: /usr/local/bin/dayone

dayone: Permission denied
--------------------------------..————————————————



I repaired the permissions with Disk Utility and in the terminal, if without sudo: Permission denied.

i3:~ okn$ ls -la /usr/local/bin/dayone
ls: /usr/local/bin/dayone: Permission denied

/ Anyone an idea what’s going on here?


do shell script "echo " & (quoted form of ExportList) & "|tr -d \"\\t\"|/usr/local/bin/dayone/dayone new”

As I already wrote, you must quote the passed pathname which contains a space character.

Use what was in your original message :

set destnpath to (quoted form of "/usr/local/bin/dayone new")
set myshellscript to "echo " & (quoted form of ExportList) & "|tr -d \"\\t\"| " & destnpath
do shell script myshellscript

Yvan KOENIG (VALLAURIS, France) samedi 20 septembre 2014 22:24:00




 _______________________________________________
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: 
 >A permission problem? (From: okn <email@hidden>)

  • Prev by Date: A permission problem?
  • Next by Date: Can AppleScript determine if a shell process is running?
  • Previous by thread: A permission problem?
  • Next by thread: Re: A permission problem?
  • Index(es):
    • Date
    • Thread