Re: is there a path problem?
Re: is there a path problem?
- Subject: Re: is there a path problem?
- From: "koenig.yvan" <email@hidden>
- Date: Thu, 18 Sep 2014 17:14:04 +0200
-- Modify "/usr/local/bin/dayone/dayone" to "/usr/local/bin/dayone" if you didn't screw it up like I did. 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 password “XXXX" with administrator privileges
Looking more closely at these instructions I pointed the fact that destnpath is defined as a string embedding a space character. So the reported error may be due to the fact that the shell "miss" the four ending characters of the pathname : " new" I guess that it would be useful to quote it.
Maybe time to try :
set myshellscript to "echo " & (quoted form of ExportList) & "|tr -d \"\\t\"| " & (quoted form of destnpath)
Yvan KOENIG (VALLAURIS, France) jeudi 18 septembre 2014 17:12:09
|
_______________________________________________
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