• 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: is there a path problem?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >is there a path problem? (From: okn <email@hidden>)
 >Re: is there a path problem? (From: Kevin Meaney <email@hidden>)

  • Prev by Date: Re: is there a path problem?
  • Next by Date: Re: AppleScript-Users Digest, Vol 11, Issue 349
  • Previous by thread: Re: is there a path problem?
  • Next by thread: Re: AppleScript-Users Digest, Vol 11, Issue 349
  • Index(es):
    • Date
    • Thread