Re: Suggestions for scripted graphing
Re: Suggestions for scripted graphing
- Subject: Re: Suggestions for scripted graphing
- From: Michelle Steiner <email@hidden>
- Date: Sat, 11 Jun 2005 18:26:18 -0700
On Jun 11, 2005, at 5:43 PM, Tim Mansour wrote:
- create 2D graphs in a format to be imported into QuarkXPress or
InDesign, so the likely format would be PDF or EPS.
- simplicity of scripting and customisation of graphs
- fast and preferably no huge memory overheads
Here is a routine that someone here gave me. (sorry, but I forgot
who) It uses Appleworks to create a graph. The data is generated
earlier in the script as a tab-delimited, return-separated string
that is saved to the clipboard. The routine pastes the data into an
AW spreadsheet and then creates a graph from the data.
At this point, the script could capture the graph and save it in
whatever graphics document format that image events can handle. Then
put it in to Xpress or InDesign.
-- Michelle
tell application "AppleWorks 6"
activate
tell (make new document with properties ¬
{document kind:spreadsheet document})
paste
set cellRange to object specifier of selection
make new chart display at end with properties ¬
{range:cellRange, chart kind:bar chart}
(* modify/add chart properties as required *)
end tell
end tell
--
The Constitution is no ceiling of liberties. It is a floor of freedoms.
_______________________________________________
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