• 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
Taking values to a document
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Taking values to a document


  • Subject: Taking values to a document
  • From: Christopher MJ Tangora <email@hidden>
  • Date: Fri, 9 Jan 2004 22:50:01 -0500

Hello all,

I have done some scripts to automate our newspapers workflow, but now I have ran into a problem. I know this is simple, but before I start raking through the Applescript Language guide to piece something together, I was hoping someone could lend me a hand...

I have two scripts. I want to have values from each added to a separate text document. How can I insert values into a text document? Say for example..

... script ...
-- settting up the info a record format...

set report_data to {}
copy ("PDF Library Report for " & pubdate & return & return) to the end of report_data
copy ("Number of files in Oman: " & (oman_bw_files + oman_color_files) & return) to the end of report_data
copy ("Number of files copied over from Oman: " & (in_bw_files + in_color_files) & return) to the end of report_data


now how would I get these values into a text document? And then how could I set it up so that I could import more data from a second script. I am thinking of doing it as such, but would like to see a way with less coding (the below is just theoretical, not code)

set text of report (which is an alias to file) to item 1 of report_data
set report_working to text of report
set text of report to (report_working & item 2 of report_data)
set report_working to text of report
etc.
etc.

I went the route I did so that I could get the copy "Number of..." in the document. If I could just insert the text into the end of "pargraph 1", par. 3 and par 4 that would be great too. I have been swamped with breakdowns so I have not been able to think clearly. If there are any questions I will be in at 9 am EST on Monday and will reply as soon as I can. Thank you all in advance for your help.




Chris Tangora

Desktop Specialist
Production Services
Daytona Beach News-Journal Corporation
Daytona Beach, Florida
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Acrobat out of bounds again...
  • Next by Date: Re: parsing Unix date
  • Previous by thread: Acrobat out of bounds again...
  • Next by thread: Bug in Image Events (?)
  • Index(es):
    • Date
    • Thread