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

Re: Getting FMP to print to .ps via AppleScript


  • Subject: Re: Getting FMP to print to .ps via AppleScript
  • From: ehsan saffari <email@hidden>
  • Date: Mon, 10 Feb 2003 12:14:25 -0600

On 10/02/2003 00:00, OzSprings <email@hidden> wrote:

>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)

In a FM script isolate the record(s) that need to be printed, using the
appropriate layout and page setup settings, and print. The print output
ends up in a certain place using a default name (name of the db, i
think)... now using AS, rename the output file and move it to the to
distiller watched folder.

Application AS dictionaries, may not be quite as accurate as one hopes.

cheers
ehsan
_______________________________________________
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: Getting FMP to print to .ps via AppleScript
  • Next by Date: Re: Path to me broken?
  • Previous by thread: Re: Getting FMP to print to .ps via AppleScript
  • Next by thread: Re: Getting FMP to print to .ps via AppleScript
  • Index(es):
    • Date
    • Thread