• 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: Shell-Perl-AppleScript scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Shell-Perl-AppleScript scripting (From: John Fowler <email@hidden>)
 >Re: Shell-Perl-AppleScript scripting (From: Stevan Reese <email@hidden>)

  • Prev by Date: Re: [OT] Verification required?
  • Next by Date: Re: Shell-Perl-AppleScript scripting
  • Previous by thread: Re: Shell-Perl-AppleScript scripting
  • Next by thread: Re: Shell-Perl-AppleScript scripting
  • Index(es):
    • Date
    • Thread