question about behaviour of Appleworks save.
question about behaviour of Appleworks save.
- Subject: question about behaviour of Appleworks save.
- From: Andrew Hurst <email@hidden>
- Date: Mon, 14 Feb 2005 13:44:50 -0800
Hi,
(Power PC G4 OS X 10.3.8)
The following script to save an AppleWorks 6 file results in additional
characters at the front and back of the file that don't appear in a
manual save. The file being opened is an AppleWorks file previously
saved as HTML, in which I need to change a URL link, then re-save. It
opens, converting to text as an untitled document. Then I tinker and
try to save it back replacing the original HTML file. Besides the
crappy tinkering script, what am I doing wrong with the save part?
Thanks,
Andy Hurst
email@hidden
================================================
tell application "AppleWorks 6"
select characters 31 thru 36 of paragraph 11 of the front document
set closingtext to the selection
cut the selection
select characters 13 thru 30 of paragraph 11 of the front document
cut the selection
set standard_logo_spec to standard_logo_spec & closingtext
set characters 13 thru 80 of paragraph 11 of the front document to
standard_logo_spec
save the front document in html_file_spec as file type text with
replacing
close the front document saving no
end tell
=================================================
stuffs this at the beginning of the file:
·BOBO·jÖ∞dHHHHHH–`ˇˇHjÜ|?
ÍnAø|60øˇ«†øˇ«∞í~‡¯6060øsPí~‡¯øˇ«PD"Bí£§ê»øˇ«`øˇ«‡êTøˇ…
ġ˛ŸnZˇˇˇ-åjˇˇFLOM!`
i+ˇˇˇxHHfi@ˇÓˇÓRg(¸HHÿ(dˇhê
ˇˇ°xÜl@/‘d§10µvêjầd∫cê@≥L
jÜêòˇˇˇˇˇˇˇˇT¸f˛ŸDSETr NĘPjÜpjÜtjÜxjÜh‘àjâ6à
J‘àjÜÄ*¯Ä7>EÄ«Â̈˜ˇOT≥Í3^{ò®∞
ôûüߨÑ⣮|õ† J P Ç ’ € Ê
S î õ ≥ ⁄ ˛Qâ œÁ
%
T
É
≤
„ 9 @ Z ï ¥ ‘)Uz§ÊÓˆ˜6
N
(ÿjÜlÿ˘já»—èjâ`òjâÿ
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden