Entourage prints:
Jane Doe
ABC Company
blather
blather
John Doe
ABC Company
blather blather
I want it to print ABC Company then the employees name with the blather blather under each employee. I cannot seem to get this done. I know I may change it in address book but with 600+ entries I will not sit here and *\ to change it to company then go look and entourage and see what fields didn’t move over because address book didn’t have them.
Suggestions? Script? Thoughts??
Help and Thanks.
Model: MacBook Pro
AppleScript: 2.1.1
Browser: Firefox 2.0.0.4
Operating System: Mac OS X (10.4)
I don’t have Entourage, but you can almost certainly get Employee, Company, blather1 and blather2 from it as variables in your script, then arrange them however you want them, write them to a text document, and print that. The write part goes like so:
-- You would get these variables from Entourage
-- I've just entered them by example.
set Company to "ABC Corp"
set Empl to "Jane Doe"
set Blather_2 to "Chief Coder"
set Blather_1 to "AppleScript Division"
-- The doings:
set FilePath to ((path to desktop as text) & "EntPrtFile.txt")
set PF to open for access FilePath with write permission
try
set eof of PF to 0 -- erases it if there's previous data in it
write Company & ", " & Empl & return to PF
write Blather_2 & return to PF
write Blather_1 to PF
tell application "TextEdit" to print FilePath
close access PF
on error
close access PF
end try