Re: Shell-Perl-AppleScript scripting
Re: Shell-Perl-AppleScript scripting
- Subject: Re: Shell-Perl-AppleScript scripting
- From: John Fowler <email@hidden>
- Date: Mon, 29 Dec 2003 07:36:53 -0600
Yes, it makes some sense. I'll give it some further consideration and
I appreciate it.
John Fowler
On Dec 28, 2003, at 11:15 PM, Stevan Reese wrote:
#!/usr/bin/perl
BEGIN {
chomp($ARGV [0] = <<'UnLiKeLyStRiNg');
your search string goes here, as is
UnLiKeLyStRiNg
chomp($ARGV [1] = <<'UnLiKeLyStRiNg');
your replace string goes here, as is
UnLiKeLyStRiNg
}
s/$ARGV [0]/$ARGV [1]/g;
save this to /path to myscript/Content/Resources/searchreplace.pl
Add something like this to the beginning of your script
set PathToMe to path to me as text
set PathToMeToo to (quoted form of POSIX path of PathToMe) as text
set PathToResources to PathToMeToo & "/Contents/Resources/"
call the perl script with
do shell script PathToResources & "your arguments"
Does this make any sense?
_______________________________________________
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.