• 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: How to Run a "sudo" Terminal Command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to Run a "sudo" Terminal Command


  • Subject: Re: How to Run a "sudo" Terminal Command
  • From: Axel Luttgens <email@hidden>
  • Date: Sat, 12 Dec 2015 14:07:02 +0100

> Le 12 déc. 2015 à 13:49, Dave a écrit :
>
> […]
> 		set myShellCommand to myMediaToolPath & " " & "—volume " & myVolumePath & "--applicationpath " & myAppPath -- & "--nointeraction"
> […]
>
> I think maybe I need to do something special with spaces in the file/folder paths?

Hello again Dave,

Indeed, it would probably be safer to apply "quoted form of" to each piece of text liable to contain arbitrary characters.
For example, replace

	myMediaToolPath

with

	(quoted form of myMediaToolPath)

in the above.

Axel
 _______________________________________________
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: 
 >How to Run a "sudo" Terminal Command (From: Dave <email@hidden>)
 >Re: How to Run a "sudo" Terminal Command (From: Axel Luttgens <email@hidden>)
 >Re: How to Run a "sudo" Terminal Command (From: Dave <email@hidden>)

  • Prev by Date: Re: How to Run a "sudo" Terminal Command
  • Next by Date: Re: AS Library Question
  • Previous by thread: RE: How to Run a "sudo" Terminal Command
  • Next by thread: Re: How to Run a "sudo" Terminal Command
  • Index(es):
    • Date
    • Thread