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

scripting printers


  • Subject: scripting printers
  • From: MR <email@hidden>
  • Date: Thu, 20 Mar 2003 16:30:20 -0900

I am new to this list and have checked the archives for an answer to my problem, with no luck. I have been using Applescript in some of my Filemaker Pro scripts and have come across a problem with printing a file to PDF and saving it to a file.

Below is the Filemaker script with two Applescripts that do work. In the middle of the loop you see a print command. I want to substitute an applescript to print the PDF file.

Perform AppleScript [Script Attachability: Script Text:
"mount volume "Filemaker" on server "AK1" in AppleTalk zone
"*" as user name "username" with password "password""]
Go to Layout [weekly_report]
Go to Record [first]
Perform Applescript [ Script Attachability: Script Text:
"set x to cell "report_date_start" as string
set y to cell "report_date_end" as string
try
tell application "Finder"
make new folder at desktop with properties {name: "Rev Rpt "
& x & " to " & y}
end tell
on error my Err
display dialog myErr
end try"]
Loop
Enter Browse mode
Copy [dealer_name]
Enter find mode
Paste [dealer_name]
Perform find
Sort
Enter preview Mode
Print
Enter Browse Mode
Delete All Records
Exit Loop If [Status(CurrentRecordCount) = 0]
Go to Record [first]
End Loop

I can't seem to Applescript the HP printer. When it gets to
the print command it opens the print window. I need to be able to:

select the right printer
save as a PDF file
set destination to a specific file
then select Save.
When the save window pops up it needs to:
select the file made in the second Applescript above
paste in the dealer name as file name
save into the folder.

Can this be done? I can't find anyway to script a printer to do the above!

I hope this is clear. Thanks for any help

Mike
_______________________________________________
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: Re: Unicode search [was Re: the Holy Grail of AppleScript lists]
  • Next by Date: Re: max script size
  • Previous by thread: Re: Unicode search
  • Next by thread: RE: scripting printers
  • Index(es):
    • Date
    • Thread