RE: Shell: put sed script in Applescript
RE: Shell: put sed script in Applescript
- Subject: RE: Shell: put sed script in Applescript
- From: "Reese, Steve" <email@hidden>
- Date: Mon, 16 Feb 2004 21:44:59 -0800
- Thread-topic: Shell: put sed script in Applescript
Open the Terminal, type /bin/sh (Applescript executes shell scripts in sh)
Try your sed script without "\"
Once that works, add it back into Applescript with the necessary "\"
You may need and exrta "\" here and ther because "\" also needs to be "escaped" out of Applescript.
s/ A>\\(\\n<\\/ul>\\n<li\)/ a><p>\\1/
Not tested but you get the idea?
stevan
-----Original Message-----
From: Gnarlodious [
mailto:email@hidden]
Sent: Mon 2/16/2004 7:59 PM
To: Applescript
Cc:
Subject: Shell: put sed script in Applescript
This one has me stumped. A multiline sed script I want to run in an
Applescript:
/ A>$/{
$!N
/\n<\/ul>$/{
$!N
s/ A>\(\n<\/ul>\n<li\)/ a><p>\1/
}
}
I've tried all sorts of escaping and quoting, can someone help me out here?
-- Gnarlie
_______________________________________________
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.
_______________________________________________
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.