Re: How to Run a "sudo" Terminal Command
Re: How to Run a "sudo" Terminal Command
- Subject: Re: How to Run a "sudo" Terminal Command
- From: "S. J. Cunningham" <email@hidden>
- Date: Sat, 12 Dec 2015 13:57:10 -0500
On Dec 12, 2015, at 1:34 PM, S. J. Cunningham wrote:
>
> On Dec 12, 2015, at 12:15 PM, Yvan KOENIG wrote:
>
>> Oops
>>
>> I clicked too fast forgotting important warning :
>> emebdding a password in an AppleScript instruction is playing with matches when security matters (and it often does).
>
> I've been playing with matches since I was seven :)
On a related but somewhat off topic note, is there any way to execute a shell script file directly from the finder without the terminal popping up? I know to mark it executable so I can double click it, but the terminal always pops up to execute it. I also realize I can do it by embedding it in an Applescript application but I was wondering if there is any way to do it directly.
For example:
#!/bin/bash
# Sample Shell Script
echo This is a Sample Shell Script
Steve
------------------
OS X 10.6.8, AppleScript 2.1.2
_______________________________________________
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