Re: Regex on OS X
Re: Regex on OS X
- Subject: Re: Regex on OS X
- From: bill fancher <email@hidden>
- Date: Thu, 3 Oct 2002 15:27:20 -0700
On Thursday, October 3, 2002, at 11:28 AM, John Delacour wrote:
At 8:27 pm +1000 3/10/02, Malcolm Fitzgerald wrote:
But I ran foul of privileges, bog standard users aren't allowed to
play in the system folder. I modified the script, at the end of the
do shell script line I appended :
with administrator privileges
then I logged out, logged in as admin, gave my standard login
identity Admin privileges, logged out, logged in as "not a bog
standard user" (now with admin priveleges!) and ran the script. It
does work a charm.
You'll probably find that if you just type
sudo -s
in Terminal, you'll be OK. But don't do this in an unsafe environment.
Don't run as admin just so the rude pod2html can dump scratch files all
over. Try this instead:
set pods to "" & (path to startup disk) & "System:Library:Perl:Pods:"
set ls to list folder pods
set ppt to "Choose a pod"
choose from list ls with prompt ppt default items "perlreftut.pod"
set choice to result as string
set AppleScript's text item delimiters to {"."}
set pod to first text item of choice
set AppleScript's text item delimiters to {""}
do shell script "cd /tmp; pod2html /System/Library/Perl/pods/" & pod &
".pod --outfile=" & pod & ".html; open " & pod & ".html"
--
bill
_______________________________________________
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.