• 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: put sed script in Applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Launching TextEdit with a TEXT document
  • Next by Date: Re: Launching TextEdit with a TEXT document
  • Previous by thread: Re: Shell: put sed script in Applescript - Solved!
  • Next by thread: current date - 1 day?
  • Index(es):
    • Date
    • Thread