• 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: AppleWorks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleWorks


  • Subject: Re: AppleWorks
  • From: T&B <email@hidden>
  • Date: Thu, 01 Feb 2001 08:30:39 +1100

This script works with AppleWorks 5, but it doesn't with AW 6.

You should tell us what "desn't" means. ie what error, how far does it get?

tell application "AppleWorks 6"
activate
make new document at beginning with properties {document kind:+constant
docKSS ;, name:"x" & shortdate}

As shown in the dictionaries, AppleWorks 6 uses different constants for document kinds than AppleWorks 5. Replace above with:

make new document at beginning with properties {document kind:spreadsheet document, name:"x" & shortdate}

I assume that you have already assigned a value to shortDate.

paste

AppleWorks 6 improves scripting access to cells, so you should probably use variables instead of copy and paste. Something like:

tell spreadsheet of front document
set cell "A1" to variableFromOtherApp
end tell

end tell
with Scripteditor, you can record the following script:
tell application "AppleWorks 6"
activate
select window "Ohne Titel (TK)"

Unfortunately, "window" doesn't understand the "select" event (it should). You can select the document to give the same result (unless you have two windows of the same document):

select document "Ohne Titel"

Note no document type (eg (SS)).

Who can help me?

For AppleWorks scripting info, resources and tutorials, see:
http://www.tandb.com.au/appleworks/

Tom
T&B


  • Prev by Date: Re: a Smile, Script Debugger, Scripter
  • Next by Date: Re: Problems openning files
  • Previous by thread: Re: a Smile, Script Debugger, Scripter
  • Next by thread: Re: Problems openning files
  • Index(es):
    • Date
    • Thread