• 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: Sun, 21 Sep 2014 19:04:33 +0200


Le 21 09 2014 à 17:59, Thomas Fischer <email@hidden> a écrit :

Hello Omar,

I’m not quite sure what you are talking about.

1. You want to write to the file /usr/local/bin/dayone, but this is only writable for the owner okn, which most likely is not the user AppleScript uses to run the do shell command.

2. You want to pipe the ExportList with tabs removed into '/usr/local/bin/dayone new‘ ?
This is not the same as the dayone above.

3. And don’t you want to write to that file instead of piping into it, i.e.
set myshellscript to "echo " & (quoted form of ExportList) & "|tr -d \"\\t\"> " & destnpath
with „>“ instead of „|“?

Best
Thomas

Am 21.09.2014 um 11:09 schrieb Omar K N <email@hidden>:




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 Thomas

I'm really puzzled because the instruction is targetting the file "/usr/local/bin/dayone new"
but the error message is about "/usr/local/bin/dayone"

As I pointed in my message dated 2014/09/18, both of them are supposed to be symlinks to a file enclosed in an application's package as it's explained in the original web page referenced in Omar's first message :

As noted in [Brett's post] [3], you must have a symbolic link to the Day One.app CLI. I dorked mine up, so there you will have to modify the noted line noted to get this scrip to work properly.

Symbolic Link terminal goodness:

> ln -s "/Applications/Day One/Day One.app/Contents/MacOS/dayone" /usr/local/bin/dayone

At this time, I don't know for sure :
(1) if "/usr/local/bin/dayone new" really exists
(2) if it's a symlink to "/usr/local/bin/dayone"
or a symlink to  "/Applications/Day One/Day One.app/Contents/MacOS/dayone" 
or something else.

According to the error message, I’m just assuming that it's a symlink to  "/usr/local/bin/dayone" which perhaps is not a symlink to "/Applications/Day One/Day One.app/Contents/MacOS/dayone"  as it is supposed to be.

Before Mavericks, writing in the executable code of an application was perhaps permitted but with Mavericks, I’m not sure that it is and it may be why the "with administrator privileges" statement is required.

Yvan KOENIG (VALLAURIS, France) dimanche 21 septembre 2014 19:04:27

 _______________________________________________
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: 
 >Re: A permission problem? (From: Omar K N <email@hidden>)
 >Re: A permission problem? (From: Thomas Fischer <email@hidden>)

  • Prev by Date: Re: A permission problem?
  • Next by Date: Search Contacts for phone number
  • Previous by thread: Re: A permission problem?
  • Next by thread: Re: A permission problem?
  • Index(es):
    • Date
    • Thread