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