Re: Shell: put sed script in Applescript - Solved!
Re: Shell: put sed script in Applescript - Solved!
- Subject: Re: Shell: put sed script in Applescript - Solved!
- From: Laine Lee <email@hidden>
- Date: Wed, 18 Feb 2004 10:02:26 -0600
Here's another possible way.
---------
property newline : ASCII character 10
property tmpfile : "/tmp/execme"
set theShellScript to "command line 1" & newline & "command line 2"
do shell script "echo " & quoted form of theShellScript & " > " & tmpfile
do shell script "chmod +x " & tmpfile
do shell script tmpfile with administrator privileges
The "with administrative privileges" may not be necessary.
---------
--
Laine Lee
email@hidden
http://lonestar.utsa.edu/llee
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.