Re: Shell-sandwich a file in 2 variable strings
Re: Shell-sandwich a file in 2 variable strings
- Subject: Re: Shell-sandwich a file in 2 variable strings
- From: Gary Lists <email@hidden>
- Date: Sat, 31 Jan 2004 05:44:06 -0500
Gnarlodious wrote [1/31/04 5:29 AM]:
>
How would I prepend a variable string to a file then append a variable
>
string to the same file?
>
>
The closest I can get is
>
>
do shell script "echo " & quoted form of startHTML & " " & htmlFilePOSIX & "
>
" & quoted form of endHTML & ">" & iPathPOSIX
>
>
But in this case the path of htmlFile is written instead of the file's text.
>
Maybe a variation of "cat" will work here, or piped commands.
>
>
-- Gnarlie
Perhaps you don't show it, but where do you read the contents of the
htmlFile?
That's what you need to be writing in that position in the concatenation.
--
Gary
_______________________________________________
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.