• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Regex on OS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Regex on OS X


  • Subject: Re: Regex on OS X
  • From: John Delacour <email@hidden>
  • Date: Wed, 2 Oct 2002 20:18:06 +0100

At 9:39 pm +1000 2/10/02, Malcolm Fitzgerald wrote:

I'm running a standard install of Jaguar. The only thing I can see in /Library/Perl/ is a folder called Darwin.


This script should cater for people with either the standard 5.6.0 installation or the Apple-recommended 5.8.0 installation. podpath is a colon sparated list of directories to search.


"perlfunc"
set podname to result
set pod_ to podname & ".pod"
set html_ to podname & ".html"
set outfile_ to " --outfile=$HOME/pods/" & html_
set outfilePathname to "$HOME/pods/" & html_
try
do shell script "mkdir $HOME/pods/"
end try
set podpath_ to " --podpath=/system/library/perl/pods"
set podpath_ to podpath_ & ":/library/perl/pods"
set infile_ to " --infile=/library/perl/pods/" & pod_
set script_ to "pod2html" & podpath_ & infile_ & outfile_
do shell script script_ & "; open " & outfilePathname

This is not perfect but it does very well.

JD
_______________________________________________
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.

References: 
 >Re: Regex on OS X (From: bill fancher <email@hidden>)
 >Re: Regex on OS X (From: John Delacour <email@hidden>)
 >Re: Regex on OS X (From: Malcolm Fitzgerald <email@hidden>)

  • Prev by Date: Re: Adding a message to a mailbox in Mail
  • Next by Date: What means this?
  • Previous by thread: Re: Regex on OS X
  • Next by thread: Re: Regex on OS X
  • Index(es):
    • Date
    • Thread