• 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: question about behaviour of Appleworks save.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: question about behaviour of Appleworks save.


  • Subject: Re: question about behaviour of Appleworks save.
  • From: yvan-koenig <email@hidden>
  • Date: Wed, 16 Feb 2005 08:28:41 +0100

Hello

To get rid of the localiatio problem linked to the text translator, there is an easy workaround:

save thru the Finder and not thru AppleWorks.

set html_file_folder to "Macintosh HD:Users:yvankoenig:Documents:"
set html_file_name to "bzz"
set html_file_spec to html_file_folder & html_file_name

set standard_logo_spec to "Yk yk YK yk"

tell application "AppleWorks 6"
activate
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
set tb to text body of front document
close the front document saving no
end tell -- AppleWorks


tell application "Finder"
if exists file html_file_spec then delete file html_file_spec
set NewDoc to make new file with properties ¬
{name:html_file_name, file type:"TEXT", creator type:"BOBO"} at folder html_file_folder
set aliasNewDoc to NewDoc as alias
write tb to aliasNewDoc starting at 0
end tell -- Finder


Yvan KOENIG

_______________________________________________
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


References: 
 >question about behaviour of Appleworks save. (From: Andrew Hurst <email@hidden>)
 >Re: question about behaviour of Appleworks save. (From: yvan-koenig <email@hidden>)

  • Prev by Date: Re: Quark 6.5 Insert text into insertion point Broken?
  • Next by Date: Re: do shell script
  • Previous by thread: Re: question about behaviour of Appleworks save.
  • Next by thread: Minimize all windows of an application?
  • Index(es):
    • Date
    • Thread