• 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
Getting FMP to print to .ps via AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting FMP to print to .ps via AppleScript


  • Subject: Getting FMP to print to .ps via AppleScript
  • From: OzSprings <email@hidden>
  • Date: Sun, 9 Feb 2003 22:20:45 +0000

FMP has supposedly an inbuilt recording function which records a printing process which I can make permanent by immediately creating an FMP script for printing. Unfortunately this does not work properly with printing to .pdf or .ps. FMP forgets the .ps filename, or invents one of its own, and I need to have a stable file name so that FMP can have the .pdf attached to an automatic email. I have five different .pdfs per record. I am creating postscript files in a watched folder on the desktop which Distiller recreates as .pdfs.

I have therefore been trying to create the .ps using Applescript but without much success. According to the FMP AppleScript dictionary, I can state print [reference] -- The object to print, but everytime I state an object (current record, layout ["name"], of filename, etc., and it compiles I get a message saying something like the script can't coerce; or identifier stated where there should be an end of line. I cannot state "PostScript" anywhere, even though I can do this when printing a Quark document via AppleScript.

My script is:

set printer to "PS Printer" [this is a desktop printer in LaserWriter 8 I created specifically to make .ps files using Distiller as the printer driver]
set filename to "Mac HD:Desktop Folder:pdf:in:Annual_data"&".ps" as text
tell application "FileMaker Developer"
activate
print current record [or one of the variations mentioned above eg "print current layout of current record of document "Reports"]
end tell

I have searched through the filemaker.com tech support documents, AppleScript for Applications, Applescript in a Nutshell, the FMP Blueworld archives, but I cannot find anything which can help and at this stage my AppleScript knowledge is pretty woeful.

Thanks for any help
(in desperation)




Oz
_______________________________________________
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: Record sorting routine
  • Next by Date: Saving a document in Safari
  • Previous by thread: Newbie wants to script Mail
  • Next by thread: Re: Getting FMP to print to .ps via AppleScript
  • Index(es):
    • Date
    • Thread