|Mar 12, 2013, 12:11 PM||#1|
[Applescript] Security Framework issue
I was looking for running a shell command as root without asking the password to the user (except the first time), so I've decided to go through the Security Framework making a keychain to store and retrieve it in security but, as long as the Terminal prints the correct password:
The code who give me that problem is:
set rootPassword to word 2 of (do shell script "security find-generic-password -gs \"my_service\" | tail -n 0")
P.S.: I've tried to remove both the tail part and the word 2 of one in the Applescript code and it prints every line except the one that I need.
Last edited by dezzeus; Mar 12, 2013 at 02:36 PM.
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Applescript moving files issue||Liquid80||Mac Programming||2||Oct 3, 2013 12:29 AM|
|Security issue?||DianeK||Mac Basics and Help||4||Aug 31, 2013 12:10 AM|
|One last different AppleScript issue||ring||Mac Programming||3||Aug 7, 2013 10:20 PM|
|AppleScript cache issue?||sswany||Mac Programming||4||Oct 30, 2012 07:54 PM|
|Applescript Entourage Attachment compression issue||nicoboss||Mac Programming||1||Aug 9, 2012 03:10 PM|
All times are GMT -5. The time now is 02:41 PM.