Issuing "sudo" cmds + password from Rev Scripts
Sivakatirswami
katir at hindu.org
Sat Feb 16 17:26:54 EST 2008
I've been bitten very hard recently with Apple's new quarantine bit set
in extended attributes for downloaded files. I used to be able to open
20-40 text files that I might receive from a remote correspondent, in
BBedit in one go and spellcheck them rapidly... Now I get the dread
"This is a web application downloaded from the internet...." I click
"OK" and only the first of the selected files open.
It is possible to set up folder actions with apple script to apply:
sudo xattr -d com.apple.quarantine /Downloads
to all incoming downloads saved that folder. One can also drop into
terminal and work on the cmd line... very inefficient.. I would like to
make a little Rev utility to run against an existing file set that may
have been moved or saved to a different location.
How do does one deal, from within a Rev script, with the shell
requirement to enter the password before sudo executes? I saw an earlier
thread where one might approach this by doing it thru apples script.
Does that mean it's not possible with transcript alone?
Or perhaps someone knows of such a utility already? I can't find one on
the net and people are complaining about this as recently as Jan 20th...
It will be a simple matter to set up a drag and drop button that gets a
path and runs the cmd against all files in a folder... but I need a way
to supply the password...
More information about the use-livecode
mailing list