On Sep 21, 2014, at 02:09:000, Omar K N wrote:
Hi & good day Yvan and colleagues,
And I repaired the permissions on this disk, same error. Could there be a permission problem in my system?
Now I set this as shown:
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
but I still get:
OmniFocus got an error: sh: /usr/local/bin/dayone new: Permission denied Although it is rwx:
i3:~ okn$ sudo ls -a -l /usr/local/bin/dayone Password: -rwxr-xr-x 1 okn staff 381072 Aug 4 2012 /usr/local/bin/dayone 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 otherwise denied:
i3:~ okn$ ls -a -l /usr/local/bin/dayone ls: /usr/local/bin/dayone: Permission denied
/Any assistance greatly appreciated!
with best regards, Omar K N Stockholm, Sweden
Hello,
The fact that you are having to use sudo to list the /usr/local/bin directory is a serious problem beyond the present issue. The permissions shown by your listing appear in order, however the user and group are wrong. Check to make sure that you have non-sudo access to all the interveening directories: /usr, /usr/local (the permissions should be 'drwxr-xr-x'). Also, the user and group on everything in /usr/local and on down should be 'root' and 'wheel'.
I would suggest that you: sudo chmod -RP 755 /usr/local/bin/dayone; sudo chown -RP root:wheel /usr/local/bin/dayone;
Other notes:
- as for the AppleScript part, Yvan KOENIG has noted the proper solution (quoting and all); - as for 'dayone' being a symbolic link: I don't see any indication from the DayOne web site that it is supposed to be, and your dayone file certainly is not a symlink (looking at your 'ls' output).
Manoah F. Adams federaladamsfamily.com/developer
|