Re: AppleWorks
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